[vlc-devel] [PATCH 29/39] decoder: remove locally stored decoder device
Steve Lhomme
robux4 at ycbcr.xyz
Mon Oct 7 16:30:36 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 af777e51815..421f5bb7847 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
/* -- Theses variables need locking on read *and* write -- */
/* Preroll */
@@ -617,14 +616,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;
}
@@ -2004,9 +2000,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