1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 23:07:02 +00:00

"-o -" -> use stdout

makes users of obscure OSs like window$ happy as they have no /dev/stdout


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20465 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2006-10-27 12:25:59 +00:00
parent 9e171eda7b
commit 88f9acb2b4

View File

@ -718,7 +718,10 @@ vo_spudec=spudec_new_scaled(stream->type==STREAMTYPE_DVD?((dvd_priv_t *)(stream-
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);