phoenix: use callbacks to count buffers and detect errors

This way we can detect dropped frames
This commit is contained in:
Joshua M. Doe
2011-11-04 10:29:42 -04:00
parent 6ae2b319c8
commit 5aece979c5
2 changed files with 89 additions and 34 deletions

View File

@@ -71,6 +71,13 @@ struct _GstPhoenixSrc
//INT32 connector;
gchar *config_filepath;
gboolean buffer_ready;
guint buffer_ready_count;
gboolean timeout_occurred;
gboolean fifo_overflow_occurred;
GMutex *mutex;
GCond *cond;
};
struct _GstPhoenixSrcClass