niimaq: make sure timelist exists before modifying it

Caused seg fault unless delay was introduced (e.g. with debugging messages
on). Still need to investigate why we don't get a timestamp before the
first frame.
This commit is contained in:
Joshua M. Doe 2012-06-28 13:17:25 -04:00
parent 248db4f3f7
commit fa883c1ca1

View File

@ -761,7 +761,8 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer)
/* search linked list for frame time */
g_mutex_lock (niimaqsrc->frametime_mutex);
{
if (G_LIKELY (niimaqsrc->timelist)
&& g_slist_length (niimaqsrc->timelist) > 0) {
/* remove all old frametimes from the list */
frametime = niimaqsrc->timelist->data;
while (frametime->number < copied_number) {