From 3bc5d3d3b5a7e1ab34c7dfe30d90d3406ec247cd Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 30 Aug 2019 22:42:58 +0200 Subject: [PATCH] rtspsrc: normalize variable to boolean --- gst/rtsp/gstrtspsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index ae79e03cde..6ba2b61fcf 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2903,7 +2903,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event) /* If an accurate seek was requested, we want to clip the segment we * output in ONVIF mode to the requested bounds */ - src->clip_out_segment = flags & GST_SEEK_FLAG_ACCURATE; + src->clip_out_segment = !!(flags & GST_SEEK_FLAG_ACCURATE); if (playing) gst_rtspsrc_play (src, &seeksegment, FALSE, seek_style);