rtspsrc: Fix build

This commit is contained in:
Thibault Saunier 2017-10-05 14:35:27 -03:00
parent ffcd173c09
commit 125e835045

View file

@ -2244,7 +2244,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
gboolean playing; gboolean playing;
GstSegment seeksegment = { 0, }; GstSegment seeksegment = { 0, };
GList *walk; GList *walk;
gchar *seek_style = NULL; const gchar *seek_style = NULL;
if (event) { if (event) {
GST_DEBUG_OBJECT (src, "doing seek with 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) { if (format == GST_FORMAT_TIME) {
gboolean seekable = gboolean seekable =
src->cur_protocols != GST_RTSP_LOWER_TRANS_UDP_MCAST; 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 */ /* seeking without duration is unlikely */
seekable = seekable && src->seekable >= 0.0 && src->segment.duration && seekable = seekable && src->seekable >= 0.0 && src->segment.duration &&