From 099b0b31dbf65f0ca03c52f1ed70933a3957d391 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sun, 25 Jan 2004 17:24:49 +0000 Subject: [PATCH] test cvs git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@91 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/tests/dan.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/tests/dan.c b/src/tests/dan.c index d62abdf..8f0dca5 100644 --- a/src/tests/dan.c +++ b/src/tests/dan.c @@ -19,22 +19,24 @@ int main( int argc, char **argv ) // Start the consumer... int vstd = mlt_video_standard_ntsc; //mlt_consumer consumer = mlt_factory_consumer( "bluefish", &vstd ); - mlt_consumer consumer = mlt_factory_consumer( "westley", "PAL" ); + mlt_consumer consumer = mlt_factory_consumer( "westley", NULL ); // Create the producer(s) - mlt_producer dv1 = mlt_factory_producer( "libdv", file1 ); - mlt_producer_set_in_and_out( dv1, 0, 5 ); - + mlt_producer dv1 = mlt_factory_producer( "westley", file1 ); + //mlt_producer_set_in_and_out( dv1, 0, 5 ); + mlt_producer dv2 = mlt_factory_producer( "libdv", file2 ); //mlt_producer_set_in_and_out( dv2, 10.0, 30.0 ); -#if 0 +#if 1 // Connect the consumer to the producer - mlt_consumer_connect( consumer, mlt_producer_service( dv2 ) ); + mlt_consumer_connect( consumer, mlt_producer_service( dv1 ) ); // Do stuff until we're told otherwise... - fprintf( stderr, "Press return to continue\n" ); - fgets( temp, 132, stdin ); + mlt_consumer_start( consumer ); +// fprintf( stderr, "Press return to continue\n" ); +// fgets( temp, 132, stdin ); + mlt_consumer_stop( consumer ); mlt_consumer_close( consumer ); return 0; #endif -- 1.7.4.4