summaryrefslogtreecommitdiffstats
path: root/stream
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 /stream
parentaac5d758c5a60f13162bc2b500618389bfd92602 (diff)
downloadmpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.bz2
mpv-c4f33d784a058325b26ba82f34c43dab0cb19dc8.tar.xz
demux: remove some old stream header functions
Diffstat (limited to 'stream')
-rw-r--r--stream/tv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 1fcb13037d..83a0052563 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -708,7 +708,8 @@ static demuxer_t* demux_open_tv(demuxer_t *demuxer)
funcs = tvh->functions;
demuxer->priv=tvh;
- sh_video = new_sh_video(demuxer, 0);
+ struct sh_stream *sh_v = new_sh_stream(demuxer, STREAM_VIDEO);
+ sh_video = sh_v->video;
/* get IMAGE FORMAT */
int fourcc;
@@ -786,7 +787,8 @@ static demuxer_t* demux_open_tv(demuxer_t *demuxer)
goto no_audio;
}
- sh_audio = new_sh_audio(demuxer, 0);
+ struct sh_stream *sh_a = new_sh_stream(demuxer, STREAM_AUDIO);
+ sh_audio = sh_a->audio;
funcs->control(tvh->priv, TVI_CONTROL_AUD_GET_SAMPLERATE,
&sh_audio->samplerate);