Commit 93b8dfeb authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed format-security warnings introduced in recent clang releases

parent 2ef2e73f
...@@ -207,11 +207,11 @@ static VLCBookmarks *_o_sharedInstance = nil; ...@@ -207,11 +207,11 @@ static VLCBookmarks *_o_sharedInstance = nil;
input_thread_t * p_input = pl_CurrentInput(VLCIntf); input_thread_t * p_input = pl_CurrentInput(VLCIntf);
if (!p_input) { if (!p_input) {
NSBeginCriticalAlertSheet(_NS("No input"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, _NS("No input found. A stream must be playing or paused for bookmarks to work.")); NSBeginCriticalAlertSheet(_NS("No input"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, @"%@",_NS("No input found. A stream must be playing or paused for bookmarks to work."));
return; return;
} }
if (p_old_input != p_input) { if (p_old_input != p_input) {
NSBeginCriticalAlertSheet(_NS("Input has changed"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, _NS("Input has changed, unable to save bookmark. Suspending playback with \"Pause\" while editing bookmarks to ensure to keep the same input.")); NSBeginCriticalAlertSheet(_NS("Input has changed"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, @"%@",_NS("Input has changed, unable to save bookmark. Suspending playback with \"Pause\" while editing bookmarks to ensure to keep the same input."));
vlc_object_release(p_input); vlc_object_release(p_input);
return; return;
} }
...@@ -262,12 +262,12 @@ clear: ...@@ -262,12 +262,12 @@ clear:
- (IBAction)extract:(id)sender - (IBAction)extract:(id)sender
{ {
if ([o_tbl_dataTable numberOfSelectedRows] < 2) { if ([o_tbl_dataTable numberOfSelectedRows] < 2) {
NSBeginAlertSheet(_NS("Invalid selection"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, _NS("Two bookmarks have to be selected.")); NSBeginAlertSheet(_NS("Invalid selection"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, @"%@",_NS("Two bookmarks have to be selected."));
return; return;
} }
input_thread_t * p_input = pl_CurrentInput(VLCIntf); input_thread_t * p_input = pl_CurrentInput(VLCIntf);
if (!p_input) { if (!p_input) {
NSBeginCriticalAlertSheet(_NS("No input found"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, _NS("The stream must be playing or paused for bookmarks to work.")); NSBeginCriticalAlertSheet(_NS("No input found"), _NS("OK"), @"", @"", o_bookmarks_window, nil, nil, nil, nil, @"%@",_NS("The stream must be playing or paused for bookmarks to work."));
return; return;
} }
......
...@@ -1725,7 +1725,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1725,7 +1725,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if (latestLog) { if (latestLog) {
[[NSWorkspace sharedWorkspace] openFile: latestLog withApplication: @"Console"]; [[NSWorkspace sharedWorkspace] openFile: latestLog withApplication: @"Console"];
} else { } else {
NSBeginInformationalAlertSheet(_NS("No CrashLog found"), _NS("Continue"), nil, nil, o_msgs_panel, self, NULL, NULL, nil, _NS("Couldn't find any trace of a previous crash.")); NSBeginInformationalAlertSheet(_NS("No CrashLog found"), _NS("Continue"), nil, nil, o_msgs_panel, self, NULL, NULL, nil, @"%@", _NS("Couldn't find any trace of a previous crash."));
} }
} }
......
...@@ -228,7 +228,7 @@ static VLCPrefs *_o_sharedMainInstance = nil; ...@@ -228,7 +228,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
{ {
NSBeginInformationalAlertSheet(_NS("Reset Preferences"), _NS("Cancel"), NSBeginInformationalAlertSheet(_NS("Reset Preferences"), _NS("Cancel"),
_NS("Continue"), nil, o_prefs_window, self, _NS("Continue"), nil, o_prefs_window, self,
@selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil, @selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil, @"%@",
_NS("Beware this will reset the VLC media player preferences.\n" _NS("Beware this will reset the VLC media player preferences.\n"
"Are you sure you want to continue?")); "Are you sure you want to continue?"));
} }
......
...@@ -682,7 +682,7 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam ...@@ -682,7 +682,7 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
} else if (sender == o_sprefs_reset_btn) } else if (sender == o_sprefs_reset_btn)
NSBeginInformationalAlertSheet(_NS("Reset Preferences"), _NS("Cancel"), NSBeginInformationalAlertSheet(_NS("Reset Preferences"), _NS("Cancel"),
_NS("Continue"), nil, o_sprefs_win, self, _NS("Continue"), nil, o_sprefs_win, self,
@selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil, @selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil, @"%@",
_NS("Beware this will reset the VLC media player preferences.\n" _NS("Beware this will reset the VLC media player preferences.\n"
"Are you sure you want to continue?")); "Are you sure you want to continue?"));
else if (sender == o_sprefs_showAll_btn) { else if (sender == o_sprefs_showAll_btn) {
......
...@@ -596,7 +596,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -596,7 +596,7 @@ static VLCWizard *_o_sharedInstance = nil;
} else { } else {
/* show a sheet that the user didn't select a file */ /* show a sheet that the user didn't select a file */
NSBeginInformationalAlertSheet(_NS("No input selected"), NSBeginInformationalAlertSheet(_NS("No input selected"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("No new stream or valid playlist item has been selected.\n\n" _NS("No new stream or valid playlist item has been selected.\n\n"
"Choose one before going to the next page.")); "Choose one before going to the next page."));
} }
...@@ -658,7 +658,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -658,7 +658,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* complain to the user that "" is no valid dest. */ /* complain to the user that "" is no valid dest. */
NSBeginInformationalAlertSheet(_NS("No valid destination"), NSBeginInformationalAlertSheet(_NS("No valid destination"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("A valid destination has to be selected " _NS("A valid destination has to be selected "
"Enter either a Unicast-IP or a Multicast-IP." "Enter either a Unicast-IP or a Multicast-IP."
"\n\nIf you don't know what this means, have a look at " "\n\nIf you don't know what this means, have a look at "
...@@ -998,7 +998,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -998,7 +998,7 @@ static VLCWizard *_o_sharedInstance = nil;
} else { } else {
/* show a sheet that the selected codecs are not compatible */ /* show a sheet that the selected codecs are not compatible */
NSBeginInformationalAlertSheet(_NS("Invalid selection"), _NS("OK"), NSBeginInformationalAlertSheet(_NS("Invalid selection"), _NS("OK"),
@"", @"", o_wizard_window, nil, nil, nil, nil, _NS("The " @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@", _NS("The "
"chosen codecs are not compatible with each other. For example: " "chosen codecs are not compatible with each other. For example: "
"It is not possible to mix uncompressed audio with any video codec.\n\n" "It is not possible to mix uncompressed audio with any video codec.\n\n"
"Correct your selection and try again.")); "Correct your selection and try again."));
...@@ -1618,7 +1618,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1618,7 +1618,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* show a sheet for the help */ /* show a sheet for the help */
NSBeginInformationalAlertSheet(_NS("Stream to network"), NSBeginInformationalAlertSheet(_NS("Stream to network"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("This allows streaming on a network.")); _NS("This allows streaming on a network."));
} }
...@@ -1626,7 +1626,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1626,7 +1626,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* show a sheet for the help */ /* show a sheet for the help */
NSBeginInformationalAlertSheet(_NS("Transcode/Save to file"), NSBeginInformationalAlertSheet(_NS("Transcode/Save to file"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("This allows saving a stream to a file. The " _NS("This allows saving a stream to a file. The "
"can be reencoded on the fly. Whatever " "can be reencoded on the fly. Whatever "
"VLC can read can be saved.\nPlease note that VLC is not very suited " "VLC can read can be saved.\nPlease note that VLC is not very suited "
...@@ -1798,7 +1798,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1798,7 +1798,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* show a sheet for the help */ /* show a sheet for the help */
NSBeginInformationalAlertSheet(_NS("Time-To-Live (TTL)"), NSBeginInformationalAlertSheet(_NS("Time-To-Live (TTL)"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("This allows defining the TTL (Time-To-Live) of the stream. " _NS("This allows defining the TTL (Time-To-Live) of the stream. "
"This parameter is the maximum number of routers your stream can " "This parameter is the maximum number of routers your stream can "
"go through. If you don't know what it means, or if you want to " "go through. If you don't know what it means, or if you want to "
...@@ -1809,7 +1809,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1809,7 +1809,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* show a sheet for the help */ /* show a sheet for the help */
NSBeginInformationalAlertSheet(_NS("SAP Announce"), NSBeginInformationalAlertSheet(_NS("SAP Announce"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("When streaming using UDP, the streams can be " _NS("When streaming using UDP, the streams can be "
"announced using the SAP/SDP announcing protocol. This " "announced using the SAP/SDP announcing protocol. This "
"way, the clients won't have to type in the multicast address, it " "way, the clients won't have to type in the multicast address, it "
...@@ -1822,7 +1822,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1822,7 +1822,7 @@ static VLCWizard *_o_sharedInstance = nil;
{ {
/* show a sheet for the help */ /* show a sheet for the help */
NSBeginInformationalAlertSheet(_NS("Local playback"), NSBeginInformationalAlertSheet(_NS("Local playback"),
_NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, _NS("OK"), @"", @"", o_wizard_window, nil, nil, nil, nil, @"%@",
_NS("When this option is enabled, the stream will be both played " _NS("When this option is enabled, the stream will be both played "
"and transcoded/streamed.\n\nNote that this requires much more " "and transcoded/streamed.\n\nNote that this requires much more "
"CPU power than simple transcoding or streaming.")); "CPU power than simple transcoding or streaming."));
......
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