summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-07-01 13:18:09 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-07-08 13:14:24 +0000
commit2f557706ce62954e651792f4b85e766adce0721b (patch)
treeabb504b2f93c68cd2b46b1c905fe90be64bb0659
parent71813280b8e58e620e54d817aaa4248b2ca0dc51 (diff)
downloadgstreamer-plugins-good-2f557706ce62954e651792f4b85e766adce0721b.tar.gz
rtpptdemux: Remove pads also in PAUSED->READY
They're based on per-stream information and that should be reset whenever going to READY state. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1027>
-rw-r--r--gst/rtpmanager/gstrtpptdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c
index d8d54ba1d..56ce75161 100644
--- a/gst/rtpmanager/gstrtpptdemux.c
+++ b/gst/rtpmanager/gstrtpptdemux.c
@@ -742,8 +742,8 @@ gst_rtp_pt_demux_change_state (GstElement * element, GstStateChange transition)
switch (transition) {
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
- case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
+ case GST_STATE_CHANGE_PAUSED_TO_READY:
case GST_STATE_CHANGE_READY_TO_NULL:
gst_rtp_pt_demux_release (ptdemux);
break;