diff --git a/src/driver/screenshot.cpp b/src/driver/screenshot.cpp index 11c5e5100..6ae11889f 100644 --- a/src/driver/screenshot.cpp +++ b/src/driver/screenshot.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -359,7 +360,7 @@ void CScreenShot::MakeFileName(const t_channel_id channel_id) snprintf(fname, sizeof(fname), "%s/", g_settings.screenshot_dir.c_str()); pos = strlen(fname); - channel_name = g_Zapit->getChannelName(channel_id); + channel_name = CServiceManager::getInstance()->GetServiceName(channel_id); if (!(channel_name.empty())) { strcpy(&(fname[pos]), UTF8_TO_FILESYSTEM_ENCODING(channel_name.c_str())); ZapitTools::replace_char(&fname[pos]);