'gtk2_ardour' - Use 'GStatBuf' instead of 'struct stat'
This commit is contained in:
@@ -3375,7 +3375,7 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
||||
std::string icsd_docroot = video_server_dialog->get_docroot();
|
||||
if (icsd_docroot.empty()) {icsd_docroot = X_("/");}
|
||||
|
||||
struct stat sb;
|
||||
GStatBuf sb;
|
||||
if (!g_lstat (icsd_docroot.c_str(), &sb) == 0 || !S_ISDIR(sb.st_mode)) {
|
||||
warning << _("Specified docroot is not an existing directory.") << endmsg;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user