[vlc-commits] decoder: don't create and release an unused decoder device for regular decoders
Steve Lhomme
git at videolan.org
Fri Oct 18 09:47:16 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 10 14:36:02 2019 +0200| [e0b36fdf71b7e0b0d3be950e6d707b0b30926a02] | committer: Steve Lhomme
decoder: don't create and release an unused decoder device for regular decoders
Decoders that don't use a decoder device don't need to create one in the first
place.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0b36fdf71b7e0b0d3be950e6d707b0b30926a02
---
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 3d8e98694d..612e9d0a8a 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 );
}
More information about the vlc-commits
mailing list