Merge pull request #773 from CrHasher/yadif_hwdfix
authorJoakim Plate <elupus@ecce.se>
Tue, 10 Apr 2012 23:37:13 +0000 (16:37 -0700)
committerJoakim Plate <elupus@ecce.se>
Tue, 10 Apr 2012 23:37:13 +0000 (16:37 -0700)
Disable Yadif activated by mistake for first frame decode

1  2 
xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp

@@@ -662,9 -706,15 +662,15 @@@ int CDVDVideoCodecFFmpeg::FilterOpen(co
    if (m_pFilterGraph)
      FilterClose();
  
 -  if (filters.IsEmpty())
 +  if (filters.IsEmpty() && !scale)
      return 0;
  
+   if (m_pHardware)
+   {
+     CLog::Log(LOGWARNING, "CDVDVideoCodecFFmpeg::FilterOpen - skipped opening filters on hardware decode");
+     return 0;
+   }
    if (!(m_pFilterGraph = m_dllAvFilter.avfilter_graph_alloc()))
    {
      CLog::Log(LOGERROR, "CDVDVideoCodecFFmpeg::FilterOpen - unable to alloc filter graph");