mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
hlsdemux: put boolean values into gboolean variables
And remove superfluous assignments.
This commit is contained in:
parent
7f8d9d1df2
commit
17f0faa368
1 changed files with 3 additions and 4 deletions
|
@ -309,12 +309,11 @@ gst_hls_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
||||||
target_pos = reverse ? stop : start;
|
target_pos = reverse ? stop : start;
|
||||||
|
|
||||||
/* Snap to segment boundary. Improves seek performance on slow machines. */
|
/* 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 =
|
snap_nearest =
|
||||||
(flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST;
|
(flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST;
|
||||||
snap_before = flags & GST_SEEK_FLAG_SNAP_BEFORE;
|
snap_before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||||
snap_after = flags & GST_SEEK_FLAG_SNAP_AFTER;
|
snap_after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||||
|
|
||||||
/* FIXME: Here we need proper discont handling */
|
/* FIXME: Here we need proper discont handling */
|
||||||
for (walk = hlsdemux->client->current->files; walk; walk = walk->next) {
|
for (walk = hlsdemux->client->current->files; walk; walk = walk->next) {
|
||||||
|
|
Loading…
Reference in a new issue