summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-09 15:15:28 +0100
committerwm4 <wm4@nowhere>2013-02-10 17:25:57 +0100
commita0987186b91680df473a7273a1eec130d0dd1a60 (patch)
tree4f8d450f381333f5a52a1b9843bce8b1bb012ba8 /demux/demux.c
parent4d016a92c876e98797c362d05468bf27d5a85414 (diff)
downloadmpv-a0987186b91680df473a7273a1eec130d0dd1a60.tar.bz2
mpv-a0987186b91680df473a7273a1eec130d0dd1a60.tar.xz
demux_lavf: remove code duplication
Also move the lang field into the general stream header. (SH_COMMON is an old hack to "share" code between audio/video/sub headers.) There should be no functional changes, other than not printing stream info in verbose mode or with slave mode. (The frontend already prints stream info, and this is just a leftover when individual demuxers did this, and slave mode remains broken.)
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 32ef281f8c..2ebd79b863 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -361,7 +361,7 @@ struct sh_sub *new_sh_sub_sid_lang(struct demuxer *demuxer, int id, int sid,
{
struct sh_sub *sh = new_sh_sub_sid(demuxer, id, sid);
if (lang && lang[0] && strcmp(lang, "und")) {
- sh->lang = talloc_strdup(sh, lang);
+ sh->gsh->lang = talloc_strdup(sh, lang);
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SID_%d_LANG=%s\n", sid, lang);
}
return sh;