[vlc-devel] commit: Overlay - Updated test program ( Søren Bøg )
git version control
git at videolan.org
Wed Apr 9 12:44:48 CEST 2008
vlc | branch: master | Søren Bøg <avacore at videolan.org> | Sun Aug 19 22:52:54 2007 +0200| [d8a9f942b19c45fdafc913ce0734a73239b8c0d8]
Overlay - Updated test program
Overlay - Updated test program
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8a9f942b19c45fdafc913ce0734a73239b8c0d8
---
extras/misc/overlay-test.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/extras/misc/overlay-test.c b/extras/misc/overlay-test.c
index 4b0f10b..0d8189e 100644
--- a/extras/misc/overlay-test.c
+++ b/extras/misc/overlay-test.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
+#include <errno.h>
#include <string.h>
#include <math.h>
@@ -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..." );
More information about the vlc-devel
mailing list