Commit 9b251c40 authored by Björn Isacsson's avatar Björn Isacsson
Browse files

Added Mac support for fakecapture.c

parent 06605d5e
......@@ -8,6 +8,18 @@
static int frame_nr = START_FRAME;
#ifdef __MACH__
#include <sys/time.h>
clock_gettime is not implemented on OSX
int clock_gettime(int clk_id, struct timespec* t) {
struct timeval now;
if(gettimeofday(&now, NULL));
return rv;
t->tv_sec = now.tv_sec;
t->tv_nsec = now.tv_usec * 1000;
return 0;
media_stream *
capture_open_stream(const char *media_type, const char *media_props)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment