Commit d8a9f942 authored by Søren Bøg's avatar Søren Bøg Committed by Jean-Paul Saman

Overlay - Updated test program

Overlay - Updated test program
parent 75c7e26e
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <errno.h>
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
...@@ -235,9 +236,26 @@ int main( int i_argc, char *ppsz_argv[] ) { ...@@ -235,9 +236,26 @@ int main( int i_argc, char *ppsz_argv[] ) {
DataCreate(); DataCreate();
printf( " done\n" ); 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" printf( "Please make sure vlc is running.\n"
"You should append parameters similar to the following:\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] ); ppsz_argv[1], ppsz_argv[2] );
printf( "Opening FIFOs..." ); printf( "Opening FIFOs..." );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment