From fcf51d34854006aaa9011c752fa1c2cfac8a7cd9 Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Tue, 1 Oct 2013 13:15:19 +0200 Subject: [PATCH] stream: Correct control comparison https://bugzilla.gnome.org/show_bug.cgi?id=709176 --- gst/rtsp-server/rtsp-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index e5576a1131..91512bed61 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -391,7 +391,7 @@ gst_rtsp_stream_has_control (GstRTSPStream * stream, const gchar * control) g_mutex_lock (&priv->lock); if (priv->control) - res = g_strcmp0 (priv->control, control); + res = (g_strcmp0 (priv->control, control) == 0); else { guint streamid; sscanf (control, "stream=%u", &streamid);