rtpssrcdemux: Remove pads and reset the element also in READY->NULL
authorSebastian Dröge <sebastian@centricular.com>
Thu, 1 Jul 2021 10:18:45 +0000 (13:18 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 1 Jul 2021 10:19:53 +0000 (13:19 +0300)
Mostly for completeness.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1018>

gst/rtpmanager/gstrtpssrcdemux.c

index 132c52d..9713131 100644 (file)
@@ -998,9 +998,9 @@ gst_rtp_ssrc_demux_change_state (GstElement * element,
     case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
       break;
     case GST_STATE_CHANGE_PAUSED_TO_READY:
+    case GST_STATE_CHANGE_READY_TO_NULL:
       gst_rtp_ssrc_demux_reset (demux);
       break;
-    case GST_STATE_CHANGE_READY_TO_NULL:
     default:
       break;
   }