changeset 26876:d99d0f7c0e80

Initialize sh_audio/sh_video->ds
author reimar
date Tue, 27 May 2008 17:35:38 +0000
parents c276296cb6f8
children 4ab1cfcee430
files libmpdemux/demuxer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Tue May 27 17:33:13 2008 +0000
+++ b/libmpdemux/demuxer.c	Tue May 27 17:35:38 2008 +0000
@@ -269,6 +269,7 @@
         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 @@
         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];