From de49812990871e1705b64051c35161d5e6400269 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 14:11:38 +0000 Subject: gentoo resync : 24.12.2018 --- .../mlt/files/mlt-6.12.0-frei0r-w-tractor.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 media-libs/mlt/files/mlt-6.12.0-frei0r-w-tractor.patch (limited to 'media-libs/mlt/files/mlt-6.12.0-frei0r-w-tractor.patch') diff --git a/media-libs/mlt/files/mlt-6.12.0-frei0r-w-tractor.patch b/media-libs/mlt/files/mlt-6.12.0-frei0r-w-tractor.patch new file mode 100644 index 000000000000..e655f805f539 --- /dev/null +++ b/media-libs/mlt/files/mlt-6.12.0-frei0r-w-tractor.patch @@ -0,0 +1,37 @@ +From 30621f28fd3a21a4162de17a12d943e811566b5e Mon Sep 17 00:00:00 2001 +From: Dan Dennedy +Date: Wed, 5 Dec 2018 11:14:54 -0800 +Subject: [PATCH] Fix frei0r producer not working with tractor. + +Reported in https://forum.shotcut.org/t/color-bars-working-not- +correctly/8308 +--- + src/modules/frei0r/producer_frei0r.c | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/src/modules/frei0r/producer_frei0r.c b/src/modules/frei0r/producer_frei0r.c +index 9a90f6b6b..d1547f6c5 100644 +--- a/src/modules/frei0r/producer_frei0r.c ++++ b/src/modules/frei0r/producer_frei0r.c +@@ -26,12 +26,7 @@ + + static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable ) + { +- +- // Obtain properties of frame +- mlt_properties properties = MLT_FRAME_PROPERTIES( frame ); +- +- // Obtain the producer for this frame +- mlt_producer producer = mlt_properties_get_data( properties, "producer_frei0r", NULL ); ++ mlt_producer producer = mlt_frame_pop_service( frame ); + + // Choose suitable out values if nothing specific requested + if ( *width <= 0 ) +@@ -83,6 +78,7 @@ int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int index ) + mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( profile ) ); + + // Push the get_image method ++ mlt_frame_push_service( *frame, producer ); + mlt_frame_push_get_image( *frame, producer_get_image ); + } + \ No newline at end of file -- cgit v1.2.3