mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
videodecoder: Fix broken boolean expression
We can seek with end_type==NONE and end_type==SET && end_position=-1. The check for end_type!=NONE made the second condition impossible. CID 1226440
This commit is contained in:
parent
d357f28260
commit
0a19783291
1 changed files with 1 additions and 1 deletions
|
@ -1287,7 +1287,7 @@ gst_video_decoder_do_seek (GstVideoDecoder * dec, GstEvent * event)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (end_type != GST_SEEK_TYPE_NONE ||
|
if ((end_type != GST_SEEK_TYPE_SET && end_type != GST_SEEK_TYPE_NONE) ||
|
||||||
(end_type == GST_SEEK_TYPE_SET && end_time != GST_CLOCK_TIME_NONE)) {
|
(end_type == GST_SEEK_TYPE_SET && end_time != GST_CLOCK_TIME_NONE)) {
|
||||||
GST_DEBUG_OBJECT (dec, "unsupported seek: end time");
|
GST_DEBUG_OBJECT (dec, "unsupported seek: end time");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue