From 25ee18e1e12fbf7ba9221c2548459fd765efc6f0 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 10 Apr 2012 16:03:23 +0400 Subject: [PATCH] driver/screenshot.cpp: use CServiceManager to get channel name --- src/driver/screenshot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]);