From 904c73d2d214c729fbeedc13c8b47afab91e296b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 Nov 2013 21:37:56 +0100 Subject: demux: remove gsh field from sh_audio/sh_video/sh_sub This used to be needed to access the generic stream header from the specific headers, which in turn was needed because the decoders had access only to the specific headers. This is not the case anymore, so this can finally be removed again. Also move the "format" field from the specific headers to sh_stream. --- demux/demux_raw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demux/demux_raw.c') diff --git a/demux/demux_raw.c b/demux/demux_raw.c index 7fed124ae3..5ab82893e3 100644 --- a/demux/demux_raw.c +++ b/demux/demux_raw.c @@ -87,8 +87,8 @@ static int demux_rawaudio_open(demuxer_t *demuxer, enum demux_check check) sh = new_sh_stream(demuxer, STREAM_AUDIO); sh_audio = sh->audio; - sh_audio->gsh->codec = "mp-pcm"; - sh_audio->format = aformat; + sh->codec = "mp-pcm"; + sh->format = aformat; sh_audio->wf = w = talloc_zero(sh, MP_WAVEFORMATEX); w->wFormatTag = 0; sh_audio->channels = channels; @@ -175,8 +175,8 @@ static int demux_rawvideo_open(demuxer_t *demuxer, enum demux_check check) sh = new_sh_stream(demuxer, STREAM_VIDEO); sh_video = sh->video; - sh_video->gsh->codec = decoder; - sh_video->format = imgfmt; + sh->codec = decoder; + sh->format = imgfmt; sh_video->fps = fps; sh_video->disp_w = width; sh_video->disp_h = height; -- cgit v1.2.3