decodebin3: Remove un-needed variable

We don't do anything with the unknown streams. Detecting that a list of
requested streams don't apply to a given collection should be handled
before-hand

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6774>
This commit is contained in:
Edward Hervey 2024-03-25 15:09:14 +01:00 committed by GStreamer Marge Bot
parent 3acb219b76
commit 48cbb1c96f

View file

@ -4024,9 +4024,7 @@ handle_stream_switch (GstDecodebin3 * dbin, GList * select_streams,
/* List of slots to (de)activate. */
GList *slots_to_deactivate = NULL;
GList *slots_to_activate = NULL;
/* List of unknown stream id, most likely means the event
* should be sent upstream so that elements can expose the requested stream */
GList *unknown_streams = NULL;
GList *streams_to_reassign = NULL;
GList *future_request_streams = NULL;
GList *pending_streams = NULL;
@ -4056,7 +4054,6 @@ handle_stream_switch (GstDecodebin3 * dbin, GList * select_streams,
pending_streams = g_list_append (pending_streams, (gchar *) sid);
} else {
GST_DEBUG_OBJECT (dbin, "We don't have a slot for stream '%s'", sid);
unknown_streams = g_list_append (unknown_streams, (gchar *) sid);
}
} else if (slot->output == NULL) {
/* There is a slot on which this stream is active or pending */
@ -4186,11 +4183,6 @@ handle_stream_switch (GstDecodebin3 * dbin, GList * select_streams,
dbin->selection_updated = TRUE;
SELECTION_UNLOCK (dbin);
if (unknown_streams) {
GST_FIXME_OBJECT (dbin, "Got request for an unknown stream");
g_list_free (unknown_streams);
}
if (slots_to_activate && !slots_to_reassign) {
for (tmp = slots_to_activate; tmp; tmp = tmp->next) {
MultiQueueSlot *slot = (MultiQueueSlot *) tmp->data;