changeset 13957:f3dada6ab8e4

added language identifier (if any) to the caller during probing phase
author nicodvb
date Mon, 15 Nov 2004 20:56:10 +0000
parents 5d8f11a627ae
children 5f00592069fe
files libmpdemux/demux_ts.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Mon Nov 15 15:29:39 2004 +0000
+++ b/libmpdemux/demux_ts.c	Mon Nov 15 20:56:10 2004 +0000
@@ -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;
 				}
 			}