changed: Since m_uSurfacesCount is not used by VDPAU & VAAPI, don't pass it into...
authorArno <arnova@Jax.(none)>
Tue, 13 Sep 2011 15:53:10 +0000 (17:53 +0200)
committerarnova <nospam@void.org>
Tue, 13 Sep 2011 16:48:49 +0000 (18:48 +0200)
xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp

index 5b519b4..0092b2d 100644 (file)
@@ -78,7 +78,7 @@ enum PixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
         
       CLog::Log(LOGNOTICE,"CDVDVideoCodecFFmpeg::GetFormat - Creating VDPAU(%ix%i)", avctx->width, avctx->height);
       CVDPAU* vdp = new CVDPAU();
-      if(vdp->Open(avctx, *cur, ctx->m_uSurfacesCount))
+      if(vdp->Open(avctx, *cur))
       {
         ctx->SetHardware(vdp);
         return *cur;
@@ -104,13 +104,13 @@ enum PixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
     if(*cur == PIX_FMT_VAAPI_VLD && g_guiSettings.GetBool("videoplayer.usevaapi"))
     {
       VAAPI::CDecoder* dec = new VAAPI::CDecoder();
-      if(dec->Open(avctx, *cur, ctx->m_uSurfacesCount))
+      if(dec->Open(avctx, *cur))
       {
         ctx->SetHardware(dec);
         return *cur;
       }
       else
-        dec->Release();      
+        dec->Release();
     }
 #endif
     cur++;