mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
rtspsrc: make parse_range return result
Make the parse_range function return if the parsing succeeded or failed.
This commit is contained in:
parent
2ff87c0fb9
commit
6fbca707bb
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue