[vlc-commits] image: implement the get_device to provide a decoder device to the decoder
Steve Lhomme
git at videolan.org
Mon Dec 9 11:51:06 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 9 08:08:52 2019 +0200| [11392f5c355beed48186b3c4f7f345fe9e49d7b7] | committer: Steve Lhomme
image: implement the get_device to provide a decoder device to the decoder
The decoder device is created with a NULL window. This can work with some
decoder devices but in some case none will be created and we just get NULL.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11392f5c355beed48186b3c4f7f345fe9e49d7b7
---
src/misc/image.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/misc/image.c b/src/misc/image.c
index c94ca6a04c..15b2aeec04 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -656,6 +656,12 @@ vlc_fourcc_t image_Mime2Fourcc( const char *psz_mime )
return 0;
}
+static vlc_decoder_device * image_get_device( decoder_t *p_dec )
+{
+ VLC_UNUSED(p_dec);
+ return NULL; // no hardware decoding for now
+}
+
static decoder_t *CreateDecoder( image_handler_t *p_image, const es_format_t *fmt )
{
decoder_t *p_dec;
@@ -672,6 +678,7 @@ static decoder_t *CreateDecoder( image_handler_t *p_image, const es_format_t *fm
static const struct decoder_owner_callbacks dec_cbs =
{
.video = {
+ .get_device = image_get_device,
.queue = ImageQueueVideo,
},
};
More information about the vlc-commits
mailing list