mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
audiodecoder: 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 1226439
This commit is contained in:
parent
a5cf0a4572
commit
d357f28260
1 changed files with 1 additions and 1 deletions
|
@ -2183,7 +2183,7 @@ gst_audio_decoder_do_seek (GstAudioDecoder * 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