From c94469339a3c88ce41ea304f4a0e411d8a840846 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 1 Jul 2021 13:18:09 +0300 Subject: [PATCH] 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: --- gst/rtpmanager/gstrtpptdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c index 4744b60..e588a3f 100644 --- a/gst/rtpmanager/gstrtpptdemux.c +++ b/gst/rtpmanager/gstrtpptdemux.c @@ -744,8 +744,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; -- 2.7.4