changeset 26082:026b1ac69d47

Add language info to sh_sub_t and sh_audio_t.
author eugeni
date Fri, 29 Feb 2008 17:25:33 +0000
parents 2cb4aabb7dd8
children 19fa7a56ed04
files libmpdemux/demuxer.c libmpdemux/stheader.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Thu Feb 28 19:41:40 2008 +0000
+++ b/libmpdemux/demuxer.c	Fri Feb 29 17:25:33 2008 +0000
@@ -255,6 +255,7 @@
 #ifdef USE_ASS
     if (sh->ass_track) ass_free_track(sh->ass_track);
 #endif
+    free(sh->lang);
     free(sh);
 }
 
@@ -289,6 +290,7 @@
     mp_msg(MSGT_DEMUXER,MSGL_DBG2,"DEMUXER: freeing sh_audio at %p\n",sh);
     if(sh->wf) free(sh->wf);
     if(sh->codecdata) free(sh->codecdata);
+    free(sh->lang);
     free(sh);
 }
 
--- a/libmpdemux/stheader.h	Thu Feb 28 19:41:40 2008 +0000
+++ b/libmpdemux/stheader.h	Fri Feb 29 17:25:33 2008 +0000
@@ -49,6 +49,7 @@
   int codecdata_len;
   double pts;  // last known pts value in output from decoder
   int pts_bytes; // bytes output by decoder after last known pts
+  char* lang; // track language
 } sh_audio_t;
 
 typedef struct {
@@ -105,6 +106,7 @@
 #ifdef USE_ASS
   ass_track_t* ass_track;  // for SSA/ASS streams (type == 'a')
 #endif
+  char* lang; // track language
 } sh_sub_t;
 
 // demuxer.c: