diff options
author | phintuka <phintuka> | 2012-07-18 11:55:33 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2012-07-18 11:55:33 +0000 |
commit | 2b5a50ba57bb7c87961d11ef0687ece658ae9c0d (patch) | |
tree | d1eff8869c49dff7637c9656c78b069227ad3c57 | |
parent | 058c6e9bbecaf6f2bf53c56295576856a842802c (diff) | |
download | xineliboutput-2b5a50ba57bb7c87961d11ef0687ece658ae9c0d.tar.gz xineliboutput-2b5a50ba57bb7c87961d11ef0687ece658ae9c0d.tar.bz2 |
Fix audio track selection for media files without track map / language codes
(http://sourceforge.net/projects/xineliboutput/forums/forum/540657/topic/3710295)
-rw-r--r-- | xine_input_vdr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 95ec2bb9..32078532 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.362 2012-05-11 07:37:27 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.363 2012-07-18 11:55:33 phintuka Exp $ * */ @@ -136,7 +136,7 @@ typedef struct { # include <linux/unistd.h> /* syscall(__NR_gettid) */ #endif -static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.362 2012-05-11 07:37:27 phintuka Exp $"; +static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.363 2012-07-18 11:55:33 phintuka Exp $"; static const char log_module_input_vdr[] = "[input_vdr] "; #define LOG_MODULENAME log_module_input_vdr #define SysLogLevel iSysLogLevel @@ -3697,6 +3697,10 @@ static void slave_track_maps_changed(vdr_input_plugin_t *this) cnt += snprintf(tracks+cnt, sizeof(tracks)-cnt-32, "%s%d:%s ", i==current?"*":"", i, trim_str(lang)); n++; + } else if (i < this->slave.stream->audio_track_map_entries) { + cnt += snprintf(tracks+cnt, sizeof(tracks)-cnt-32, + "%s%d:%d ", i==current?"*":"", i, i); + n++; } tracks[sizeof(tracks)-1] = 0; if(n>1) |