From 53bc4d1803d72f65dcec91573e187c8e1bbce0c2 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 16 Oct 2009 00:50:31 +0100 Subject: [PATCH] resindvd: Fix a small flaw - if any audio stream exists, use it Don't create a dummy audio stream if only non-AC3 tracks exist. --- ext/resindvd/resindvdsrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index 01263bcc5d..998cfa5f71 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -1890,9 +1890,11 @@ rsn_dvdsrc_prepare_streamsinfo_event (resinDvdSrc * src) (int) a->audio_format); continue; } -#endif if (a->audio_format == 0) have_audio = TRUE; +#else + have_audio = TRUE; +#endif GST_DEBUG_OBJECT (src, "Audio stream %d is format %d, substream %d", i, (int) a->audio_format, phys_id);