diff options
author | wm4 <wm4@nowhere> | 2013-11-23 21:37:56 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-23 21:37:56 +0100 |
commit | 904c73d2d214c729fbeedc13c8b47afab91e296b (patch) | |
tree | 0b903a73ac8f0c3239f5cb52459f203dce866b16 /demux/demux_mf.c | |
parent | 639e672bd153e06cfc01ced6c2a48b45870e8f31 (diff) | |
download | mpv-904c73d2d214c729fbeedc13c8b47afab91e296b.tar.bz2 mpv-904c73d2d214c729fbeedc13c8b47afab91e296b.tar.xz |
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.
Diffstat (limited to 'demux/demux_mf.c')
-rw-r--r-- | demux/demux_mf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_mf.c b/demux/demux_mf.c index 6042771241..fbcf3da961 100644 --- a/demux/demux_mf.c +++ b/demux/demux_mf.c @@ -196,7 +196,7 @@ static int demux_open_mf(demuxer_t *demuxer, enum demux_check check) struct sh_stream *sh = new_sh_stream(demuxer, STREAM_VIDEO); sh_video = sh->video; - sh_video->gsh->codec = codec; + sh->codec = codec; sh_video->disp_w = 0; sh_video->disp_h = 0; sh_video->fps = mf_fps; |