[MPlayer-cvslog] r20465 - trunk/mencoder.c

michael subversion at mplayerhq.hu
Fri Oct 27 14:26:00 CEST 2006


Author: michael
Date: Fri Oct 27 14:25:59 2006
New Revision: 20465

Modified:
   trunk/mencoder.c

Log:
"-o -" -> use stdout
makes users of obscure OSs like window$ happy as they have no /dev/stdout


Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	(original)
+++ trunk/mencoder.c	Fri Oct 27 14:25:59 2006
@@ -718,7 +718,10 @@
 spudec_set_forced_subs_only(vo_spudec,forced_subs_only);
 
 // set up output file:
-muxer_f=fopen(out_filename,"wb");
+if(!strcmp(out_filename, "-"))
+    muxer_f=stdout;
+else
+    muxer_f=fopen(out_filename,"wb");
 if(!muxer_f) {
   mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_CannotOpenOutputFile, out_filename);
   mencoder_exit(1,NULL);



More information about the MPlayer-cvslog mailing list