decodebin3: Reset main group id on PAUSED->READY state change

The main_input stream-id would not get reset when going to READY state.
This would cause warnings when trying to reuse the same decodebin3, since
you would get a new STREAM_START event with a new stream-id, which would
collide with the now stale stream-id
This commit is contained in:
Dimitrios Katsaros 2020-01-17 14:26:29 +01:00 committed by GStreamer Merge Bot
parent 36cada4542
commit e0a195b7bf

View file

@ -2929,6 +2929,8 @@ gst_decodebin3_change_state (GstElement * element, GstStateChange transition)
dbin->slots = NULL;
dbin->current_group_id = GST_GROUP_ID_INVALID;
/* Free inputs */
/* Reset the main input group id since it will get a new id on a new stream */
dbin->main_input->group_id = GST_GROUP_ID_INVALID;
}
break;
default: