summaryrefslogtreecommitdiffstats
path: root/demux/demux_mng.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 00:35:04 +0200
committerwm4 <wm4@nowhere>2013-07-08 00:35:04 +0200
commitc4f33d784a058325b26ba82f34c43dab0cb19dc8 (patch)
treef2440ba82efc84193ba7f4599416bea3989c17a1 /demux/demux_mng.c
parentaac5d758c5a60f13162bc2b500618389bfd92602 (diff)
downloadmpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.bz2
mpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.xz
demux: remove some old stream header functions
Diffstat (limited to 'demux/demux_mng.c')
-rw-r--r--demux/demux_mng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demux/demux_mng.c b/demux/demux_mng.c
index bd86b3e3b8..4b2077d31f 100644
--- a/demux/demux_mng.c
+++ b/demux/demux_mng.c
@@ -423,7 +423,8 @@ static demuxer_t * demux_mng_open(demuxer_t * demuxer)
}
// create a new video stream header
- sh_video = new_sh_video(demuxer, 0);
+ struct sh_stream *sh = new_sh_stream(demuxer, STREAM_VIDEO);
+ sh_video = sh->video;
// Make sure the demuxer knows about the new video stream header
// (even though new_sh_video() ought to take care of it).