uridecodebin: Don't force floating reference for future reusable decodebin
authorSeungha Yang <seungha@centricular.com>
Tue, 20 Apr 2021 17:05:36 +0000 (02:05 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 20 Apr 2021 17:40:06 +0000 (02:40 +0900)
commite7855606876f558490e62d0af8cc79db1f12edb0
tree9673013dd74d0d7cbd7a9f51c08f602d564d3e6e
parent3a1816bf3f04622b63e9cb1aba3a3a09c110d9be
uridecodebin: Don't force floating reference for future reusable decodebin

uridecodebin assumes that refcount of decodebins stored in pending_decodebins
are floating but it might not be true in case that refcount of the decodebin
was touched in other places. To avoid the floating refcount issue,
hold strong reference.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1113>
gst/playback/gsturidecodebin.c