[vlc-commits] avcodec: do not clobber the direct rendering flag

Rémi Denis-Courmont git at videolan.org
Sun Sep 27 21:55:00 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 26 21:14:34 2015 +0300| [1e66f3f66742cce4f8b26dc56fab5b7f253f8428] | committer: Rémi Denis-Courmont

avcodec: do not clobber the direct rendering flag

The direct rendering flag used to gated certain code paths from
hardware decoding. Nowadays, the flag is not checked when hardware
decoding is active, so there are no needs to clobber it anymore.

This allows using direct rendering when falling back from hardware
decoding to software decoding.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e66f3f66742cce4f8b26dc56fab5b7f253f8428
---

 modules/codec/avcodec/video.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 04606f9..1ba047f 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1160,10 +1160,6 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
         if (va->description != NULL)
             msg_Info(p_dec, "Using %s for hardware decoding", va->description);
 
-        /* FIXME this will disable direct rendering
-         * even if a new pixel format is renegotiated
-         */
-        p_sys->b_direct_rendering = false;
         p_sys->p_va = va;
         p_context->draw_horiz_band = NULL;
         return pi_fmt[i];



More information about the vlc-commits mailing list