Commit 7f52b2ae authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: don't overwrite existing files on stream-output (close #7752)

parent 5ccd1fde
......@@ -902,7 +902,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[composedOptions appendFormat:@"}:standard{mux=%@", [self.currentProfile objectAtIndex:0]];
// add output destination
[composedOptions appendFormat:@",dst=%@,access=file}", _outputDestination];
[composedOptions appendFormat:@",access=file{no-overwrite},dst=%@}", _outputDestination];
} else {
/* streaming */
if ([[[_stream_type_pop selectedItem] title] isEqualToString:@"RTP"])
......
/*****************************************************************************
* output.m: MacOS X Output Dialog
*****************************************************************************
* Copyright (C) 2002-2007 VLC authors and VideoLAN
* Copyright (C) 2002-2013 VLC authors and VideoLAN
* $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
* Benjamin Pracht <bigben AT videolan DOT org>
* Felix Paul Kühne <fkuehne -at- videolan -dot- org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -349,7 +350,7 @@
[self setSoutMRL:o_sout_options];
return;
} else
[o_mrl_string appendFormat: @"std{access=file,mux=%@,dst=\"%@\"}", o_mux_string, [o_file_field stringValue]];
[o_mrl_string appendFormat: @"std{access=file{no-overwrite},mux=%@,dst=\"%@\"}", o_mux_string, [o_file_field stringValue]];
}
else if ([o_mode isEqualToString: _NS("Stream")]) {
o_mode = [o_stream_type titleOfSelectedItem];
......
/*****************************************************************************
* wizard.m: MacOS X Streaming Wizard
*****************************************************************************
* Copyright (C) 2005-2012 VLC authors and VideoLAN
* Copyright (C) 2005-2013 VLC authors and VideoLAN
* $Id$
*
* Authors: Felix Paul Khne <fkuehne at videolan dot org>,
......@@ -1460,7 +1460,7 @@ static VLCWizard *_o_sharedInstance = nil;
{
/* we are just transcoding and dumping the stuff to a file */
[o_opts_string appendFormat:
@":sout=#%@%@standard{mux=%@,dst=%@,access=file}",
@":sout=#%@%@standard{mux=%@,access=file{no-overwrite},dst=%@}",
o_duplicateCmd,
o_trnscdCmd,
[[o_encapFormats objectAtIndex: [[o_userSelections objectForKey:@"encapFormat"] intValue]] objectAtIndex:0],
......
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