resindvd: Fix a small flaw - if any audio stream exists, use it
authorJan Schmidt <thaytan@noraisin.net>
Thu, 15 Oct 2009 23:50:31 +0000 (00:50 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 16 Oct 2009 10:09:14 +0000 (11:09 +0100)
Don't create a dummy audio stream if only non-AC3 tracks exist.

ext/resindvd/resindvdsrc.c

index 01263bcc5dd25945fc3e598c6f5d3fe9710125a1..998cfa5f717ba16d553ff9a5ae6c3bde3834f6ac 100644 (file)
@@ -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);