Ticket #3260: mythdvd_fix_for_ticket_3260.diff

File mythdvd_fix_for_ticket_3260.diff, 561 bytes (added by skamithi, 18 years ago)

remove qbubblesort for audio tracks. its meant for the subtitle tracks since they are sometimes not sorted when parsed by AVformatdecoder::scanstreams. Audio tracks look sorted already and the qbubblesort doesn't take into account audio streams of different codecs.

  • libs/libmythtv/avformatdecoder.cpp

     
    15531553    {
    15541554        if (tracks[kTrackTypeAudio].size() > 1)
    15551555        {
    1556             qBubbleSort(tracks[kTrackTypeAudio]);
    15571556            int trackNo = ringBuffer->DVD()->GetTrack(kTrackTypeAudio);
    15581557            if (trackNo >= (int)GetTrackCount(kTrackTypeAudio))
    15591558                trackNo = GetTrackCount(kTrackTypeAudio) - 1;