mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00

This adds support for building rpidistro version of VLC with hardware acceleration through MMAL. The version of VLC located in meta-openembedded/meta-multimedia/recipes-multimedia/vlc uses mainline VLC and doesn't give all the proper flags. The series of patches attached to commit gives necessarly vlc mmal flags. * https://code.videolan.org/videolan/vlc/-/issues/24617 * https://bugs.gentoo.org/723006 The build fails with errors such as "multiple definition of `pf_enable_graphic_buffers'" when omxil is enabled. The issue seems to be due to compiler flags. Adding -fcommon to both cflags and cxxflags yields a full compile. Signed-off-by: Vincent Davis Jr <vince@underview.tech>
17 lines
702 B
Diff
17 lines
702 B
Diff
Upstream-status: Pending
|
|
|
|
--- a/modules/video_chroma/chain.c
|
|
+++ b/modules/video_chroma/chain.c
|
|
@@ -280,8 +280,9 @@ static int BuildTransformChain( filter_t
|
|
return VLC_SUCCESS;
|
|
|
|
/* Lets try resize+chroma first, then transform */
|
|
- msg_Dbg( p_filter, "Trying to build chroma+resize" );
|
|
- EsFormatMergeSize( &fmt_mid, &p_filter->fmt_out, &p_filter->fmt_in );
|
|
+ msg_Dbg( p_filter, "Trying to build chroma+resize, then transform" );
|
|
+ es_format_Copy( &fmt_mid, &p_filter->fmt_out );
|
|
+ video_format_TransformTo(&fmt_mid.video, p_filter->fmt_in.video.orientation);
|
|
i_ret = CreateChain( p_filter, &fmt_mid );
|
|
es_format_Clean( &fmt_mid );
|
|
if( i_ret == VLC_SUCCESS )
|