Hi,in some cases default producer length 15000 is not enough, but changing it to other big value could break other product that uses mltframework. attached patch makes possible to override this value throw environment variable.
-- ________________________________________ Maksym Veremeyenko
>From e1c4a7fa199e057778fcdd5f0aa2dd9c9c987500 Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko <ve...@m1.tv> Date: Thu, 18 Sep 2014 20:54:15 +0300 Subject: [PATCH 3/3] introduce MLT_DEFAULT_PRODUCER_LENGTH env var to override default hardcoded value --- src/framework/mlt_producer.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index a45d52b..25a3f8d 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -93,8 +93,10 @@ int mlt_producer_init( mlt_producer self, void *child ) mlt_properties_set_double( properties, "_frame", 0 ); mlt_properties_set_double( properties, "_speed", 1.0 ); mlt_properties_set_position( properties, "in", 0 ); - mlt_properties_set_position( properties, "out", 14999 ); - mlt_properties_set_position( properties, "length", 15000 ); + char *e = getenv("MLT_DEFAULT_PRODUCER_LENGTH"); + int p = (e)?atol(e):15000; + mlt_properties_set_position( properties, "out", p - 1 ); + mlt_properties_set_position( properties, "length", p ); mlt_properties_set( properties, "eof", "pause" ); mlt_properties_set( properties, "resource", "<producer>" ); -- 1.7.7.6
------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel