matroskademux: fix decoder glitches with H264 content
authorStéphane Cerveau <scerveau@collabora.com>
Wed, 5 May 2021 11:20:04 +0000 (13:20 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Thu, 20 May 2021 13:07:07 +0000 (15:07 +0200)
commit918d8820213bad0a905dc58c31ffa2f5cf37d9cb
tree6b1f82ef405a6a031de58d1a1f9f0bf3218902a2
parentc75bd325395d89e21501d209f539828a009ccd4c
matroskademux: fix decoder glitches with H264 content

To avoid decoder starvation causing glitches on screen,
the demuxer shall clip only when the buffer is a key frame
and the lace time is greater than the stop time.

Fixes gst-editing-services#128

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/973>
gst/matroska/matroska-demux.c