Ticket #4976: bug4976.diff

File bug4976.diff, 1.1 KB (added by Markus Schulz <msc@…>, 4 years ago)

quick hack

  • libs/libmythtv/avformatdecoder.cpp

     
    28242824    if ((ctrack >= 0) && (ctrack < (int)numStreams)) 
    28252825        return ctrack; // audio already selected 
    28262826 
    2827 #if 0 
     2827#if 1 
    28282828    // enable this to print streams 
    28292829    for (uint i = 0; i < atracks.size(); i++) 
    28302830    { 
     
    28392839        AudioInfo item(codec_ctx->codec_id, 
    28402840                       codec_ctx->sample_rate, codec_ctx->channels, 
    28412841                       do_ac3_passthru || do_dts_passthru); 
    2842         VERBOSE(VB_AUDIO, LOC + " * " + item.toString()); 
     2842        VERBOSE(VB_AUDIO, LOC + " * " + item.toString() + QString("langid=%1 lang_idx=%2").arg(atracks[i].language).arg(atracks[i].language_index)); 
    28432843    } 
    28442844#endif 
    28452845 
     
    28762876            if (wlang == atracks[i].language) 
    28772877                selTrack = i; 
    28782878 
    2879             if (windx == atracks[i].language_index) 
    2880                 break; 
     2879//            if (windx == atracks[i].language_index) 
     2880//                break; 
    28812881        } 
    28822882    } 
    28832883