[vlc-devel] [PATCH 1/3] avcodec:video: don't try hardware acceleration if "none" is enabled
Rémi Denis-Courmont
remi at remlab.net
Fri Aug 4 16:31:57 CEST 2017
Le 4 août 2017 15:54:55 GMT+03:00, Steve Lhomme <robux4 at videolabs.io> a écrit :
>---
> modules/codec/avcodec/video.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
>diff --git a/modules/codec/avcodec/video.c
>b/modules/codec/avcodec/video.c
>index 590aa9460f..14668db0c4 100644
>--- a/modules/codec/avcodec/video.c
>+++ b/modules/codec/avcodec/video.c
>@@ -1490,6 +1490,14 @@ static enum PixelFormat ffmpeg_GetFormat(
>AVCodecContext *p_context,
> can_hwaccel = true;
> }
>
>+ char * var = var_InheritString(p_dec, "avcodec-hw");
>+ if (var == NULL || !strcmp( var, "none" ))
>+ {
>+ msg_Dbg( p_dec, "disable hardware decoders" );
>+ can_hwaccel = false;
>+ }
>+ free(var);
>+
>/* If the format did not actually change (e.g. seeking), try to reuse
>the
>* existing output format, and if present, hardware acceleration
>back-end.
> * This avoids resetting the pipeline downstream. This also avoids
>--
>2.12.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
Hell no. We have had enough bugs with second-guessing the module loader already.
--
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170804/b56545bf/attachment.html>
More information about the vlc-devel
mailing list