theoradec: Set telemetry options only if they are nonzero
authorZebediah Figura <z.figura12@gmail.com>
Wed, 21 Oct 2020 19:55:40 +0000 (14:55 -0500)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 22 Oct 2020 08:05:20 +0000 (08:05 +0000)
commite999318fd7f6384fed9962597b326ec77ebf452d
treea6c9a4240104b7d43b1acf8c952be215ce26abb8
parentc9d15fec7e5bc6c0eb2d736f467318c4fcacb17e
theoradec: Set telemetry options only if they are nonzero

Setting telemetry options, even to zero, causes libtheora to enable an expensive code path. For large enough videos (e.g. 1920x1080) this can increase the time to decode each frame by 30-40 ms, which can be enough to cause noticeable stutter.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/887>
ext/theora/gsttheoradec.c