rtsp-stream: remove unused variable:
authorMatthew Waters <matthew@centricular.com>
Mon, 28 Mar 2022 10:03:16 +0000 (21:03 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 28 Mar 2022 10:30:23 +0000 (10:30 +0000)
Fixes:

../gst/rtsp-server/rtsp-stream.c:2670:9: error: variable 'n_messages' set but not used [-Werror,-Wunused-but-set-variable]
  guint n_messages = 0;
        ^

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2046>

subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-stream.c

index 90aa1915c53be726c48083b881d4c3b7f95c38ce..f3b34a0e74c52675c3582101b623da4a109fc5fb 100644 (file)
@@ -2667,7 +2667,6 @@ send_tcp_message (GstRTSPStream * stream, gint idx)
   GstSample *sample;
   GstBuffer *buffer;
   GstBufferList *buffer_list;
-  guint n_messages = 0;
   gboolean is_rtp;
   GPtrArray *transports;
 
@@ -2699,10 +2698,6 @@ send_tcp_message (GstRTSPStream * stream, gint idx)
 
   /* We will get one message-sent notification per buffer or
    * complete buffer-list. We handle each buffer-list as a unit */
-  if (buffer)
-    n_messages += 1;
-  if (buffer_list)
-    n_messages += 1;
 
   transports = priv->tr_cache;
   if (transports)