[vlc-devel] [PATCH 28/39] decoder: remove locally stored decoder device

Steve Lhomme robux4 at ycbcr.xyz
Wed Oct 2 16:23:43 CEST 2019


It's kept in the input resources and will come embedded in the video context.
---
 src/input/decoder.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 6aa912aa7e2..e4b5dcce5f1 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -123,7 +123,6 @@ struct decoder_owner
     audio_output_t *p_aout;
 
     vout_thread_t   *p_vout;
-    vlc_decoder_device *p_dec_dev; // TEMPORARY
 
     /* -- Theses variables need locking on read *and* write -- */
     /* Preroll */
@@ -612,14 +611,11 @@ static int CreateVoutIfNeeded(struct decoder_owner *p_owner, vout_thread_t **pp_
     p_owner->p_vout = p_vout;
     if ( pp_dec_dev )
     {
-        if ( p_owner->p_dec_dev != NULL )
-            vlc_decoder_device_Release( p_owner->p_dec_dev );
         if( p_vout == NULL && *pp_dec_dev != NULL )
         {
             vlc_decoder_device_Release( *pp_dec_dev );
             *pp_dec_dev = NULL;
         }
-        p_owner->p_dec_dev = *pp_dec_dev ? vlc_decoder_device_Hold(*pp_dec_dev) : NULL;
     }
 
     DecoderUpdateFormatLocked( p_owner );
@@ -1995,9 +1991,6 @@ static void DeleteDecoder( decoder_t * p_dec )
     const enum es_format_category_e i_cat =p_dec->fmt_in.i_cat;
     decoder_Clean( p_dec );
 
-    if ( p_owner->p_dec_dev )
-        vlc_decoder_device_Release( p_owner->p_dec_dev );
-
     if (p_owner->vctx)
         vlc_video_context_Release( p_owner->vctx );
 
-- 
2.17.1



More information about the vlc-devel mailing list