matroska-mux: Fix sparse stream crash
authorJan Schmidt <jan@centricular.com>
Tue, 27 Oct 2020 12:43:49 +0000 (23:43 +1100)
committerJan Schmidt <jan@centricular.com>
Tue, 27 Oct 2020 14:55:06 +0000 (01:55 +1100)
commit0e84f42055d7a40f2b8a94224894d8d429ce2f12
tree64bc43a70e6a828b7f13b4ea65c09f5f966f60c0
parente0b708ea4a868b23f51e295de7f5e726dc34df59
matroska-mux: Fix sparse stream crash

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/656
introduced an invalid memory access when debug is enabled, by casting
the wrong pointer to a GstCollectPad. Fixing that showed the original
change was incorrect and leads to an infinite loop in the
testsuite. This patch fixes both problems.

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