mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
queue: start pushing again on RECONFIGURE
When we got NOT_LINKED before and we receive a RECONFIGURE event, start pushing again on the source pad. See https://bugzilla.gnome.org/show_bug.cgi?id=676304
This commit is contained in:
parent
6c62146031
commit
c955ddc712
1 changed files with 18 additions and 1 deletions
|
@ -1249,7 +1249,24 @@ gst_queue_handle_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
event, GST_EVENT_TYPE (event));
|
event, GST_EVENT_TYPE (event));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
res = gst_pad_push_event (queue->sinkpad, event);
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
|
case GST_EVENT_RECONFIGURE:
|
||||||
|
GST_QUEUE_MUTEX_LOCK (queue);
|
||||||
|
if (queue->srcresult == GST_FLOW_NOT_LINKED) {
|
||||||
|
/* when we got not linked, assume downstream is linked again now and we
|
||||||
|
* can try to start pushing again */
|
||||||
|
queue->srcresult = GST_FLOW_OK;
|
||||||
|
gst_pad_start_task (pad, (GstTaskFunction) gst_queue_loop, pad, NULL);
|
||||||
|
}
|
||||||
|
GST_QUEUE_MUTEX_UNLOCK (queue);
|
||||||
|
|
||||||
|
res = gst_pad_push_event (queue->sinkpad, event);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
res = gst_pad_event_default (pad, parent, event);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue