From 125e835045ff4070b71b8e631f3f0d2c61335907 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 5 Oct 2017 14:35:27 -0300 Subject: [PATCH] rtspsrc: Fix build --- gst/rtsp/gstrtspsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 55f9d93d58..12587c8f93 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2244,7 +2244,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event) gboolean playing; GstSegment seeksegment = { 0, }; GList *walk; - gchar *seek_style = NULL; + const gchar *seek_style = NULL; if (event) { GST_DEBUG_OBJECT (src, "doing seek with event"); @@ -2571,7 +2571,7 @@ gst_rtspsrc_handle_src_query (GstPad * pad, GstObject * parent, if (format == GST_FORMAT_TIME) { gboolean seekable = src->cur_protocols != GST_RTSP_LOWER_TRANS_UDP_MCAST; - GstClockTime start, duration = src->segment.duration; + GstClockTime start = 0, duration = src->segment.duration; /* seeking without duration is unlikely */ seekable = seekable && src->seekable >= 0.0 && src->segment.duration &&