Ticket #11095: patch-videodescrip.diff

File patch-videodescrip.diff, 939 bytes (added by Yeechang Lee <ylee@…>, 12 years ago)

Patch for libs/libmythtv/mythplayer.cpp

  • libs/libmythtv/mythplayer.cpp

    diff -ur mythtv-0.25.2.orig/libs/libmythtv/mythplayer.cpp mythtv-0.25.2/libs/libmythtv/mythplayer.cpp
    old new  
    43834383        return;
    43844384
    43854385    bool interlaced = is_interlaced(m_scan);
    4386     if (height == 480 || height == 576)
    4387         infoMap["videodescrip"] = "SD";
    4388     else if (height == 720 && !interlaced)
    4389         infoMap["videodescrip"] = "HD_720_P";
    4390     else if (height == 1080 || height == 1088)
     4386    if (width == 1920)
    43914387        infoMap["videodescrip"] = interlaced ? "HD_1080_I" : "HD_1080_P";
     4388    else if (width == 1280 && !interlaced)
     4389        infoMap["videodescrip"] = "HD_720_P";
     4390    else if (width >= 1280)
     4391        infoMap["videodescrip"] = "HD";
     4392    else infoMap["videodescrip"] = "SD";
    43924393}
    43934394
    43944395bool MythPlayer::GetRawAudioState(void) const