playbin: Fix wrong AV element pair selection when rank is very large value
authorSeungha Yang <seungha@centricular.com>
Sat, 6 Jun 2020 11:22:28 +0000 (20:22 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 6 Jun 2020 11:22:28 +0000 (20:22 +0900)
commit9c3cff287e239d9fc68322d5b464adc1684e8216
tree7126c736f53b8ecade0936010e56d76e3547b1af
parentcc516695b0916d9c8e1147d158048902c0eac40f
playbin: Fix wrong AV element pair selection when rank is very large value

If user set very high rank to an element (e.g., integer max),
integer overflow can happen while multiplication operation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/690>
gst/playback/gstplaybin2.c
gst/playback/gstplaybin3.c