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.
This commit is contained in:
Jan Schmidt 2009-10-16 00:50:31 +01:00
parent 03120c8316
commit 53bc4d1803

View file

@ -1890,9 +1890,11 @@ rsn_dvdsrc_prepare_streamsinfo_event (resinDvdSrc * src)
(int) a->audio_format); (int) a->audio_format);
continue; continue;
} }
#endif
if (a->audio_format == 0) if (a->audio_format == 0)
have_audio = TRUE; have_audio = TRUE;
#else
have_audio = TRUE;
#endif
GST_DEBUG_OBJECT (src, "Audio stream %d is format %d, substream %d", i, GST_DEBUG_OBJECT (src, "Audio stream %d is format %d, substream %d", i,
(int) a->audio_format, phys_id); (int) a->audio_format, phys_id);