From: Søren Bøg Date: Sun, 19 Aug 2007 20:52:54 +0000 (+0200) Subject: Overlay - Updated test program X-Git-Tag: 0.9.0-test0~1495^2~12 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d8a9f942b19c45fdafc913ce0734a73239b8c0d8;p=vlc Overlay - Updated test program Overlay - Updated test program --- diff --git a/extras/misc/overlay-test.c b/extras/misc/overlay-test.c index 4b0f10b838..0d8189e935 100644 --- a/extras/misc/overlay-test.c +++ b/extras/misc/overlay-test.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -235,9 +236,26 @@ int main( int i_argc, char *ppsz_argv[] ) { DataCreate(); printf( " done\n" ); + printf( "Making FIFOs..." ); + if( mkfifo( ppsz_argv[1], S_IRWXU ) ) { + if( errno != EEXIST ) { + printf( " failed\n" ); + exit( -1 ); + } + printf( " input already exists..." ); + } + if( mkfifo( ppsz_argv[2], S_IRWXU ) ) { + if( errno != EEXIST ) { + printf( " failed\n" ); + exit( -1 ); + } + printf( " output already exists..." ); + } + printf( " done\n" ); + printf( "Please make sure vlc is running.\n" "You should append parameters similar to the following:\n" - "--sub-filter overlay --overlay-input %s --overlay-output %s\n", + "--sub-filter overlay{input=%s,output=%s}\n", ppsz_argv[1], ppsz_argv[2] ); printf( "Opening FIFOs..." );