[MPlayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.19,1.20
Nico Sabbi CVS
syncmail at mplayerhq.hu
Mon Nov 15 21:56:13 CET 2004
CVS change done by Nico Sabbi CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv6676
Modified Files:
demux_ts.c
Log Message:
added language identifier (if any) to the caller during probing phase
Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- demux_ts.c 11 Oct 2004 06:57:57 -0000 1.19
+++ demux_ts.c 15 Nov 2004 20:56:10 -0000 1.20
@@ -1967,7 +1967,18 @@
}
else
{
+ uint8_t *lang = NULL;
tss->type = es->type;
+
+ if(is_audio)
+ lang = pid_lang_from_pmt(priv, es->pid);
+ if(lang != NULL)
+ {
+ memcpy(es->lang, lang, 3);
+ es->lang[3] = 0;
+ }
+ else
+ es->lang[0] = 0;
return 1;
}
}
More information about the MPlayer-cvslog
mailing list