From: Tim-Philipp Müller Date: Wed, 6 Jan 2016 14:54:30 +0000 (+0000) Subject: hlsdemux: put boolean values into gboolean variables X-Git-Tag: 1.19.3~507^2~7277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17f0faa368fa8cfb542819fd8af5f5f418ecb7d4;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: put boolean values into gboolean variables And remove superfluous assignments. --- diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 5da4fc6..5c0dbc1 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -309,12 +309,11 @@ gst_hls_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek) target_pos = reverse ? stop : start; /* Snap to segment boundary. Improves seek performance on slow machines. */ - snap_before = snap_after = snap_nearest = FALSE; - keyunit = flags & GST_SEEK_FLAG_KEY_UNIT; + keyunit = ! !(flags & GST_SEEK_FLAG_KEY_UNIT); snap_nearest = (flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST; - snap_before = flags & GST_SEEK_FLAG_SNAP_BEFORE; - snap_after = flags & GST_SEEK_FLAG_SNAP_AFTER; + snap_before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE); + snap_after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER); /* FIXME: Here we need proper discont handling */ for (walk = hlsdemux->client->current->files; walk; walk = walk->next) {