From 6fbca707bbede9c464165ef48f12aa4080c1ceed Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Jun 2010 13:56:07 +0200 Subject: [PATCH] rtspsrc: make parse_range return result Make the parse_range function return if the parsing succeeded or failed. --- gst/rtsp/gstrtspsrc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 50a620b506..da77b952c4 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4797,7 +4797,7 @@ cleanup_error: } } -static void +static gboolean gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range, GstSegment * segment) { @@ -4814,7 +4814,7 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range, GST_DEBUG_OBJECT (src, "failed to parse range %s", range); src->range = NULL; gst_segment_init (segment, GST_FORMAT_TIME); - return; + return FALSE; } GST_DEBUG_OBJECT (src, "range: type %d, min %f - type %d, max %f ", @@ -4861,6 +4861,8 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range, * there that we want to keep. */ if (seconds != -1) gst_segment_set_duration (segment, GST_FORMAT_TIME, seconds); + + return TRUE; } static gboolean