mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
audiorate: Fix unsigned integer comparision
next_offset uses a magic "-1" value for unset values. Use that value and not checking whether it's positive (it always is, it's unsigned) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8286>
This commit is contained in:
parent
344ef36b5a
commit
65b4d26db6
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ gst_audio_rate_setcaps (GstAudioRate * audiorate, GstCaps * caps)
|
|||
prev_rate = audiorate->info.rate;
|
||||
audiorate->info = info;
|
||||
|
||||
if (audiorate->next_offset >= 0 && prev_rate > 0 && prev_rate != info.rate) {
|
||||
if (audiorate->next_offset != -1 && prev_rate > 0 && prev_rate != info.rate) {
|
||||
GST_DEBUG_OBJECT (audiorate,
|
||||
"rate changed from %d to %d", prev_rate, info.rate);
|
||||
|
||||
|
|
Loading…
Reference in a new issue