mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
decodebin3: Don't forward select streams if we are handling it
Since the introduction of the "SELECTABLE" query, the usage of selection was clarified. We don't need to forward the GST_EVENT_SELECT_STREAMS at this point. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7002>
This commit is contained in:
parent
38bae910ad
commit
dd01275e00
1 changed files with 2 additions and 8 deletions
|
@ -3528,7 +3528,6 @@ ghost_pad_event_probe (GstPad * pad, GstPadProbeInfo * info,
|
|||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_SELECT_STREAMS:
|
||||
{
|
||||
GstPad *peer;
|
||||
GList *streams = NULL;
|
||||
guint32 seqnum = gst_event_get_seqnum (event);
|
||||
|
||||
|
@ -3556,18 +3555,13 @@ ghost_pad_event_probe (GstPad * pad, GstPadProbeInfo * info,
|
|||
dbin->pending_select_streams = g_list_copy (streams);
|
||||
SELECTION_UNLOCK (dbin);
|
||||
|
||||
/* Send event upstream */
|
||||
if ((peer = gst_pad_get_peer (pad))) {
|
||||
gst_pad_send_event (peer, event);
|
||||
gst_object_unref (peer);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
}
|
||||
/* Finally handle the switch */
|
||||
if (streams) {
|
||||
handle_stream_switch (dbin, streams, seqnum);
|
||||
g_list_free_full (streams, g_free);
|
||||
}
|
||||
|
||||
gst_event_unref (event);
|
||||
ret = GST_PAD_PROBE_HANDLED;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue