From 06bfc0697b8fa8d7272124868706cd896b423257 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 16 Dec 2014 16:42:13 +0100 Subject: [PATCH] rtsp-stream: Fix compiler warnings rtsp-stream.c:1351:3: error: non-void function 'gst_rtsp_stream_get_retransmission_time' should return a value [-Wreturn-type] g_return_if_fail (GST_IS_RTSP_STREAM (stream)); ^ rtsp-stream.c:1384:3: error: non-void function 'gst_rtsp_stream_get_retransmission_pt' should return a value [-Wreturn-type] g_return_if_fail (GST_IS_RTSP_STREAM (stream)); ^ --- gst/rtsp-server/rtsp-stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index 24569ddcf5..96a86cb273 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -1348,7 +1348,7 @@ gst_rtsp_stream_get_retransmission_time (GstRTSPStream * stream) { GstClockTime ret; - g_return_if_fail (GST_IS_RTSP_STREAM (stream)); + g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), 0); g_mutex_lock (&stream->priv->lock); ret = stream->priv->rtx_time; @@ -1381,7 +1381,7 @@ gst_rtsp_stream_get_retransmission_pt (GstRTSPStream * stream) { guint rtx_pt; - g_return_if_fail (GST_IS_RTSP_STREAM (stream)); + g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), 0); g_mutex_lock (&stream->priv->lock); rtx_pt = stream->priv->rtx_pt; -- 2.34.1