mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
36cada4542
commit
e0a195b7bf
1 changed files with 2 additions and 0 deletions
|
@ -2929,6 +2929,8 @@ gst_decodebin3_change_state (GstElement * element, GstStateChange transition)
|
||||||
dbin->slots = NULL;
|
dbin->slots = NULL;
|
||||||
dbin->current_group_id = GST_GROUP_ID_INVALID;
|
dbin->current_group_id = GST_GROUP_ID_INVALID;
|
||||||
/* Free inputs */
|
/* 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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue