[vlc-devel] [PATCH] video_output: use vout_GetDevice for filters
Alexandre Janniaux
ajanni at videolabs.io
Tue Jun 2 12:45:19 CEST 2020
It has the exact same effect, except that it will create the decoder
device if it has not been created instead of returning NULL.
---
src/video_output/video_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 480dfe75f37..e927823d4cd 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -973,7 +973,7 @@ static vlc_decoder_device * VoutHoldDecoderDevice(vlc_object_t *o, void *sys)
{
VLC_UNUSED(o);
vout_thread_t *vout = sys;
- return vout->p->dec_device ? vlc_decoder_device_Hold( vout->p->dec_device ) : NULL;
+ return vout_GetDevice(vout);
}
static const struct filter_video_callbacks vout_video_cbs = {
--
2.26.2
More information about the vlc-devel
mailing list