[vlc-commits] decoder: remove locally stored decoder device
Steve Lhomme
git at videolan.org
Fri Oct 18 09:47:18 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 11 09:51:47 2019 +0200| [369b612cb137de5ef50b83384783705a9ba4ffaa] | committer: Steve Lhomme
decoder: remove locally stored decoder device
It's kept in the input resources and will come embedded in the video context.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=369b612cb137de5ef50b83384783705a9ba4ffaa
---
src/input/decoder.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index bd28d3787e..21f8154f94 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 );
More information about the vlc-commits
mailing list