matroskamux: Fix audio-only stream conditions
authorSebastian Dröge <sebastian@centricular.com>
Tue, 31 Dec 2024 09:42:04 +0000 (11:42 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 6 Jan 2025 15:28:36 +0000 (17:28 +0200)
commit8cb9cf1e272a2e3c6c08170abd8e9cbf37877f6f
treed7ba894e605d94112700ed53c3a6c75a9d15e88c
parentd78e01b65cbfb029db8961e7cd6d1066fa069db5
matroskamux: Fix audio-only stream conditions

The num_a_streams and related counters are used for pad numbers and don't give
the absolute number of streams in this run of the muxer.

Also, consider the output audio-only if there are more than 1 audio stream too.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4142

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