changeset 12521:27ed4672c619

Added "audio_id", "video_id", "dvdsub_id" to the call to "demux_open()". (Thanks to Nico Sabbi for suggesting this.)
author rsf
date Wed, 02 Jun 2004 06:48:25 +0000
parents 94e66acdb706
children 897bda2dfe29
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Wed Jun 02 02:34:39 2004 +0000
+++ b/libmpdemux/demux_rtp.cpp	Wed Jun 02 06:48:25 2004 +0000
@@ -119,6 +119,7 @@
 
 int rtspStreamOverTCP = 0; 
 
+extern "C" int audio_id, video_id, dvdsub_id;
 extern "C" demuxer_t* demux_open_rtp(demuxer_t* demuxer) {
   Boolean success = False;
   do {
@@ -263,7 +264,8 @@
   // code to recognize this:
   if (demux_is_multiplexed_rtp_stream(demuxer)) {
     stream_t* s = new_ds_stream(demuxer->video);
-    demuxer_t* od = demux_open(s, DEMUXER_TYPE_UNKNOWN, -1, -1, -1, NULL);
+    demuxer_t* od = demux_open(s, DEMUXER_TYPE_UNKNOWN,
+			       audio_id, video_id, dvdsub_id, NULL);
     demuxer = new_demuxers_demuxer(od, od, od);
   }