niimaqsrc: improve timestamping

_create often locks the mutex before the start_frame_callback, resulting
in bad timestamps. Also an estimated duration causes d3dvideosink to give
poor display, so comment this out for now.
This commit is contained in:
Joshua M. Doe
2014-03-12 15:08:35 -04:00
parent ef42c2243d
commit 61288388c5
2 changed files with 20 additions and 8 deletions

View File

@@ -72,12 +72,13 @@ struct _GstNiImaqSrc {
SESSION_ID sid;
gboolean session_started;
GstClockTime base_time;
GstDateTime *start_time;
gboolean start_time_sent;
GMutex mutex;
GCond cond;
gint buffers_available;
};
struct _GstNiImaqSrcClass {