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"),@"",@"",_bookmarksWindow,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"),@"",@"",_bookmarksWindow,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."));
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"),@"",@"",_bookmarksWindow,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"),@"",@"",_bookmarksWindow,nil,nil,nil,nil,@"%@",_NS("The stream must be playing or paused for bookmarks to work."));