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 , 19 years ago) |
|---|
-
avformatdecoder.cpp
1340 1340 /* force_xv */ force_xv); 1341 1341 bool vcd, idct, mc; 1342 1342 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 1343 1350 video_codec_id = mcid; 1344 1351 if (!force_xv && kCodec_NORMAL_END < mcid && kCodec_STD_XVMC_END > mcid) 1345 1352 { … … 2801 2808 int video_width = GetNVP()->GetVideoWidth(); 2802 2809 if (dvd_xvmc_enabled && GetNVP() && GetNVP()->getVideoOutput()) 2803 2810 { 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 2805 2818 bool indvdmenu = ringBuffer->InDVDMenuOrStillFrame(); 2806 2819 if ((indvdmenu && dvd_xvmc_active) || 2807 2820 ((!indvdmenu && !dvd_xvmc_active)))
