summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-05-04 13:04:31 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-05-04 13:04:31 +0000
commit5f2fbbd76b490f84335e93da87b8677bdb6ba872 (patch)
treec99d730175a58b3aac5ad348a2d0ca0195eb50b8
parentfb80e5799097b2e99b1cea1b284f708de5a77efd (diff)
gst/rtsp/gstrtspsrc.c: Ignore errors when trying to use the keep-alive messages.
Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send_keep_alive): Ignore errors when trying to use the keep-alive messages.
-rw-r--r--ChangeLog5
-rw-r--r--gst/rtsp/gstrtspsrc.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ba27a1d..0f711bdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-05-04 Wim Taymans <wim@fluendo.com>
+ * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send_keep_alive):
+ Ignore errors when trying to use the keep-alive messages.
+
+2007-05-04 Wim Taymans <wim@fluendo.com>
+
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_handle_src_event),
(gst_rtspsrc_handle_src_query), (gst_rtspsrc_sink_chain),
(gst_rtspsrc_stream_configure_manager),
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);