summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/gstrtspsrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtsp/gstrtspsrc.c')
-rw-r--r--gst/rtsp/gstrtspsrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index e7064b33..500160d4 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2042,6 +2042,7 @@ gst_rtspsrc_send_keep_alive (GstRTSPSrc * src)
RTSPMessage request = { 0 };
RTSPMessage response = { 0 };
RTSPResult res;
+ RTSPStatusCode code;
GST_DEBUG_OBJECT (src, "creating server keep-alive");
@@ -2051,7 +2052,8 @@ gst_rtspsrc_send_keep_alive (GstRTSPSrc * src)
if (res < 0)
goto send_error;
- if (!gst_rtspsrc_send (src, &request, &response, NULL))
+ /* let us handle the error code because we don't care */
+ if (!gst_rtspsrc_send (src, &request, &response, &code))
goto send_error;
rtsp_message_unset (&request);