[vlc-devel] [PATCH 29/42] decoder: don't create and release an unused decoder device for regular decoders
Steve Lhomme
robux4 at ycbcr.xyz
Wed Oct 16 16:59:04 CEST 2019
Decoders that don't use a decoder device don't need to create one in the first
place.
---
src/input/decoder_helpers.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
index 3d8e98694db..612e9d0a8a6 100644
--- a/src/input/decoder_helpers.c
+++ b/src/input/decoder_helpers.c
@@ -78,8 +78,6 @@ void decoder_Destroy( decoder_t *p_dec )
int decoder_UpdateVideoFormat( decoder_t *dec )
{
- vlc_decoder_device *dec_dev = decoder_GetDecoderDevice( dec );
- if (dec_dev) vlc_decoder_device_Release( dec_dev );
return decoder_UpdateVideoOutput( dec, NULL );
}
--
2.17.1
More information about the vlc-devel
mailing list