matroska-mux: Fix sparse stream crash
!656 (merged) 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.
Edited by Jan Schmidt