[vlc-devel] [PATCH 30/42] decoder: remove locally stored decoder device

Steve Lhomme robux4 at ycbcr.xyz
Wed Oct 16 16:59:05 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 bd28d3787e4..21f8154f944 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -124,7 +124,6 @@ struct decoder_owner
 
     vout_thread_t   *p_vout;
     enum vlc_vout_order vout_order;
-    vlc_decoder_device *p_dec_dev; // TEMPORARY
     bool            vout_thread_started;
 
     /* -- Theses variables need locking on read *and* write -- */
@@ -627,14 +626,11 @@ static int CreateVoutIfNeeded(struct decoder_owner *p_owner,
     p_owner->vout_order = *order;
     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 );
@@ -2025,9 +2021,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