Ticket #3125: disable_dvd_xvmc_if_codec_change_fails_svn.diff

File disable_dvd_xvmc_if_codec_change_fails_svn.diff, 1.5 KB (added by skamithi, 19 years ago)

patch against svn trunk. previous patch against mythtv-vid.

  • avformatdecoder.cpp

     
    13401340                        /* force_xv     */ force_xv);
    13411341                    bool vcd, idct, mc;
    13421342                    enc->codec_id = myth2av_codecid(mcid, vcd, idct, mc);
     1343                    if (ringBuffer->isDVD() && (mcid == video_codec_id) &&
     1344                            dvd_video_codec_changed)
     1345                    {
     1346                        dvd_video_codec_changed = false;
     1347                        dvd_xvmc_enabled = false;
     1348                    }
     1349
    13431350                    video_codec_id = mcid;
    13441351                    if (!force_xv && kCodec_NORMAL_END < mcid && kCodec_STD_XVMC_END > mcid)
    13451352                    {
     
    28012808                int video_width = GetNVP()->GetVideoWidth();
    28022809                if (dvd_xvmc_enabled && GetNVP() && GetNVP()->getVideoOutput())
    28032810                {
    2804                     bool dvd_xvmc_active = GetNVP()->getVideoOutput()->hasMCAcceleration();
     2811                    bool dvd_xvmc_active = false;
     2812                    if (video_codec_id > kCodec_NORMAL_END &&
     2813                        video_codec_id < kCodec_STD_XVMC_END)
     2814                    {
     2815                        dvd_xvmc_active = true;
     2816                    }
     2817
    28052818                    bool indvdmenu   = ringBuffer->InDVDMenuOrStillFrame();
    28062819                    if ((indvdmenu && dvd_xvmc_active) ||
    28072820                        ((!indvdmenu && !dvd_xvmc_active)))