Skip to content

Commit

Permalink
VAAPIContext: Fix codec typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Feb 11, 2019
1 parent bd69eb3 commit 2407448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/vaapicontext.cpp
Expand Up @@ -205,7 +205,7 @@ MythCodecID VAAPIContext::GetBestSupportedCodec(AVCodecContext *CodecContext,
if (Decoder != "vaapi")
return result;

if (!MythOpenGLInterop::IsCodecSupported(kCodec_MPEG2_VAAPI2))
if (!MythOpenGLInterop::IsCodecSupported(kCodec_MPEG2_VAAPI))
{
LOG(VB_GENERAL, LOG_WARNING, "Render device does not support VAAPI");
return result;
Expand Down Expand Up @@ -402,7 +402,7 @@ void VAAPIContext::HWDecoderInitCallback(void*, void* Wait, void *Data)

int VAAPIContext::HwDecoderInit(AVCodecContext *Context)
{
if (!Context || !MythOpenGLInterop::IsCodecSupported(kCodec_MPEG2_VAAPI2))
if (!Context || !MythOpenGLInterop::IsCodecSupported(kCodec_MPEG2_VAAPI))
return -1;

if (gCoreContext->IsUIThread())
Expand Down

0 comments on commit 2407448

Please sign in to comment.