From 58846451f0e1db00d40d5068250bf9b81a6a5e4e Mon Sep 17 00:00:00 2001 From: lorenm Date: Mon, 5 Mar 2007 17:42:25 +0000 Subject: truncate mencoder's output file if it exists, instead of overwriting just part of it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22469 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_smb.c') diff --git a/stream/stream_smb.c b/stream/stream_smb.c index a9132eda69..c70207ee92 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -104,7 +104,7 @@ static int open_f (stream_t *stream, int mode, void *opts, int* file_format) { if(mode == STREAM_READ) m = O_RDONLY; else if (mode == STREAM_WRITE) //who's gonna do that ? - m = O_RDWR|O_CREAT; + m = O_RDWR|O_CREAT|O_TRUNC; else { mp_msg(MSGT_OPEN, MSGL_ERR, "[smb] Unknown open mode %d\n", mode); m_struct_free (&stream_opts, opts); -- cgit v1.2.3