From 2b5a50ba57bb7c87961d11ef0687ece658ae9c0d Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 18 Jul 2012 11:55:33 +0000 Subject: Fix audio track selection for media files without track map / language codes (http://sourceforge.net/projects/xineliboutput/forums/forum/540657/topic/3710295) --- xine_input_vdr.c | 8 ++++++-- 1 file 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 /* 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) -- cgit v1.2.3