mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-12 12:21:30 +00:00
adaptivedemux: Fix REMOVE_SNAP_FLAGS() macro
!(flag1 | flag2 | flag3) is always evaluation to 0. ~ was meant here instead of !. CID 1352032.
This commit is contained in:
parent
3ebfefd220
commit
c22a8a6224
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ gst_adaptive_demux_can_seek (GstAdaptiveDemux * demux)
|
||||||
#define IS_SNAP_SEEK(f) (f & (GST_SEEK_FLAG_SNAP_BEFORE | \
|
#define IS_SNAP_SEEK(f) (f & (GST_SEEK_FLAG_SNAP_BEFORE | \
|
||||||
GST_SEEK_FLAG_SNAP_AFTER | \
|
GST_SEEK_FLAG_SNAP_AFTER | \
|
||||||
GST_SEEK_FLAG_SNAP_NEAREST))
|
GST_SEEK_FLAG_SNAP_NEAREST))
|
||||||
#define REMOVE_SNAP_FLAGS(f) (f & !(GST_SEEK_FLAG_SNAP_BEFORE | \
|
#define REMOVE_SNAP_FLAGS(f) (f & ~(GST_SEEK_FLAG_SNAP_BEFORE | \
|
||||||
GST_SEEK_FLAG_SNAP_AFTER | \
|
GST_SEEK_FLAG_SNAP_AFTER | \
|
||||||
GST_SEEK_FLAG_SNAP_NEAREST))
|
GST_SEEK_FLAG_SNAP_NEAREST))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue