Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-3499

TVPlugin: Audio stream is not selected correctly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0 RC 1
    • None
    • TvPlugin
    • None
    • Operating System: Windows 7
      Platform: Intel

    Description

      http://forum.team-mediaportal.com/submit-patches-mediaportal-tv-server-etc-325/tvplugin-audio-stream-not-selected-correctly-73722/

      When you have setup Prefer-AC3 but NOT Prefer-AC3 over language and you have a stream with MPEG and AC3 both with correct language MP selects MPEG stream instead of AC3 stream. This is caused by a useless if condition which skips the scanning of additional streams after finding the first one.

      During introduction of unit tests I also found another bug:
      this scenario:
      1 dual mono audio track (dan/eng)

      lang. prefs: "dan"

      result: stereo.
      it should instead choose the left audio track as this matches the user lang. selection

      now the GetPreferedAudioStreamIndex method has 25+ unit tests to insure code/logic validity.

      Attachments

        Activity

          People

            gibman Elo Rasmussen (Inactive)
            gibman Elo Rasmussen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: