diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-20 18:29:02 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-11-21 07:59:15 +0100 |
commit | 27d256d4caca3aec4342ce5d5d18502315939dbd (patch) | |
tree | 970810e62ff3c12e76a36387f8671d5a075b18b1 | |
parent | 2386e91c3642f3a83de6a74c981e0b9ac85a3dd1 (diff) |
rtsp-media: Fix previous commit
We only want to count dynamic payloaders
-rw-r--r-- | gst/rtsp-server/rtsp-media.c | 4 |
1 files 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; |