rtsp-stream: remove unused variable:

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>
This commit is contained in:
Matthew Waters 2022-03-28 21:03:16 +11:00 committed by GStreamer Marge Bot
parent b8a5e7a4e4
commit 67e364b34d

View 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)