mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
hlsdemux: simplify snap flags checking
Replace: if (boolean) var = true; with: var = (boolean);
This commit is contained in:
parent
b8e0c365c4
commit
5d87f68f6c
1 changed files with 4 additions and 6 deletions
|
@ -309,12 +309,10 @@ gst_hls_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
||||||
/* 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;
|
snap_before = snap_after = snap_nearest = FALSE;
|
||||||
keyunit = flags & GST_SEEK_FLAG_KEY_UNIT;
|
keyunit = flags & GST_SEEK_FLAG_KEY_UNIT;
|
||||||
if ((flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST)
|
snap_nearest =
|
||||||
snap_nearest = TRUE;
|
(flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST;
|
||||||
else if (flags & GST_SEEK_FLAG_SNAP_BEFORE)
|
snap_before = flags & GST_SEEK_FLAG_SNAP_BEFORE;
|
||||||
snap_before = TRUE;
|
snap_after = flags & GST_SEEK_FLAG_SNAP_AFTER;
|
||||||
else if (flags & GST_SEEK_FLAG_SNAP_AFTER)
|
|
||||||
snap_after = TRUE;
|
|
||||||
|
|
||||||
/* 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