From 27d256d4caca3aec4342ce5d5d18502315939dbd Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 20 Nov 2017 18:29:02 +0100 Subject: rtsp-media: Fix previous commit We only want to count dynamic payloaders --- gst/rtsp-server/rtsp-media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 0a9898b..f9914b0 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -1808,6 +1808,8 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media) priv->dynamic = g_list_prepend (priv->dynamic, elem); g_mutex_unlock (&priv->lock); + priv->nb_dynamic_elements++; + have_elem = TRUE; more_elem_remaining = TRUE; mode |= GST_RTSP_TRANSPORT_MODE_PLAY; @@ -1825,8 +1827,6 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media) gst_object_unref (pad); gst_object_unref (elem); - priv->nb_dynamic_elements++; - have_elem = TRUE; more_elem_remaining = TRUE; mode |= GST_RTSP_TRANSPORT_MODE_RECORD; -- cgit v1.2.3