qtkitvideosrc: reset the queue condition to NO_FRAMES in unlockStop.
Fixes a segfault in create: when going PLAYING -> PAUSED -> PLAYING.
This commit is contained in:
parent
ec6c307334
commit
0b6e0b7b13
@ -245,6 +245,8 @@ openFailed:
|
|||||||
|
|
||||||
g_assert (device != nil);
|
g_assert (device != nil);
|
||||||
|
|
||||||
|
GST_INFO ("setting up session");
|
||||||
|
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
gst_structure_get_int (s, "width", &width);
|
gst_structure_get_int (s, "width", &width);
|
||||||
gst_structure_get_int (s, "height", &height);
|
gst_structure_get_int (s, "height", &height);
|
||||||
@ -351,7 +353,7 @@ openFailed:
|
|||||||
{
|
{
|
||||||
[queueLock lock];
|
[queueLock lock];
|
||||||
stopRequest = NO;
|
stopRequest = NO;
|
||||||
[queueLock unlock];
|
[queueLock unlockWithCondition:NO_FRAMES];
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
@ -385,6 +387,8 @@ openFailed:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_INFO ("got new frame");
|
||||||
|
|
||||||
if ([queue count] == FRAME_QUEUE_SIZE)
|
if ([queue count] == FRAME_QUEUE_SIZE)
|
||||||
[queue removeLastObject];
|
[queue removeLastObject];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user