From d8a9f942b19c45fdafc913ce0734a73239b8c0d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20B=C3=B8g?= Date: Sun, 19 Aug 2007 22:52:54 +0200 Subject: [PATCH] Overlay - Updated test program Overlay - Updated test program --- extras/misc/overlay-test.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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..." ); -- 2.39.2