[MPlayer-cvslog] r26908 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Tue May 27 19:35:38 CEST 2008


Author: reimar
Date: Tue May 27 19:35:38 2008
New Revision: 26908

Log:
Initialize sh_audio/sh_video->ds


Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	(original)
+++ trunk/libmpdemux/demuxer.c	Tue May 27 19:35:38 2008
@@ -269,6 +269,7 @@ sh_audio_t* new_sh_audio_aid(demuxer_t *
         mp_msg(MSGT_DEMUXER,MSGL_V,MSGTR_FoundAudioStream,id);
         demuxer->a_streams[id] = sh;
         sh->aid = aid;
+        sh->ds = demuxer->audio;
         // set some defaults
         sh->samplesize=2;
         sh->sample_format=AF_FORMAT_S16_NE;
@@ -303,6 +304,7 @@ sh_video_t* new_sh_video_vid(demuxer_t *
         mp_msg(MSGT_DEMUXER,MSGL_V,MSGTR_FoundVideoStream,id);
         demuxer->v_streams[id] = sh;
         sh->vid = vid;
+        sh->ds = demuxer->video;
           mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VIDEO_ID=%d\n", vid);
     }
     return demuxer->v_streams[id];



More information about the MPlayer-cvslog mailing list