niimaq: add some debug statements and FIXME
This commit is contained in:
parent
d5409fca8a
commit
c705237e2e
@ -782,13 +782,16 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
||||
}
|
||||
|
||||
if (frametime->number == copied_number) {
|
||||
GST_DEBUG_OBJECT (niimaqsrc,
|
||||
"Found buffer date-timestamp in list generated by callback");
|
||||
timestamp = frametime->time;
|
||||
|
||||
/* remove frame time as we no longer need it */
|
||||
niimaqsrc->timelist =
|
||||
g_slist_delete_link (niimaqsrc->timelist, niimaqsrc->timelist);
|
||||
} else {
|
||||
timestamp = GST_CLOCK_TIME_NONE;
|
||||
GST_WARNING_OBJECT (niimaqsrc,
|
||||
"Did NOT find buffer date-timestamp in list generated by callback");
|
||||
}
|
||||
}
|
||||
g_mutex_unlock (niimaqsrc->frametime_mutex);
|
||||
@ -796,7 +799,7 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
||||
/* set timestamp */
|
||||
if (timestamp == GST_CLOCK_TIME_NONE) {
|
||||
GST_WARNING_OBJECT (niimaqsrc, "No timestamp found; callback failed?");
|
||||
timestamp = GST_CLOCK_TIME_NONE;
|
||||
/* FIXME: the clock isn't valid before the first FVAL callback? */
|
||||
/*clock = gst_element_get_clock (GST_ELEMENT (niimaqsrc));
|
||||
GST_BUFFER_TIMESTAMP (*buffer) =
|
||||
GST_CLOCK_DIFF (gst_element_get_base_time (GST_ELEMENT (niimaqsrc)), gst_clock_get_time (clock));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user