decodebin3: Reset main group id on PAUSED->READY state change
authorDimitrios Katsaros <patcherwork@gmail.com>
Fri, 17 Jan 2020 13:26:29 +0000 (14:26 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Jan 2020 09:33:37 +0000 (09:33 +0000)
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

gst/playback/gstdecodebin3.c

index 4bc615c..a36d611 100644 (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: