aboutsummaryrefslogtreecommitdiff
path: root/xbmc/video/windows/GUIWindowVideoBase.cpp
diff options
context:
space:
mode:
authortheuni <theuni-nospam-@xbmc.org>2012-02-29 20:42:50 -0500
committertheuni <theuni-nospam-@xbmc.org>2012-02-29 20:42:50 -0500
commit3f4ad7c1129fac51c13203b8a035a5c5f105a2c2 (patch)
tree2cd4b3987916c1d6426415bb2b175ff062a5fa65 /xbmc/video/windows/GUIWindowVideoBase.cpp
parent4246dffa9896d0c66dc79a97c2d3c8a3d4c4a183 (diff)
parentdd522132757b4dcb1d6c7d8125588bc43f12bd46 (diff)
Merge remote-tracking branch 'origin/master' into Eden
Diffstat (limited to 'xbmc/video/windows/GUIWindowVideoBase.cpp')
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index 86aa5f3632..cb40b4918f 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -1153,9 +1153,7 @@ bool CGUIWindowVideoBase::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
{
case CONTEXT_BUTTON_SET_CONTENT:
{
- SScanSettings settings;
- ADDON::ScraperPtr info = m_database.GetScraperForPath(item->HasVideoInfoTag() ? item->GetVideoInfoTag()->m_strPath : item->GetPath(), settings);
- OnAssignContent(item->GetPath(),0, info, settings);
+ OnAssignContent(item->HasVideoInfoTag() ? item->GetVideoInfoTag()->m_strPath : item->GetPath());
return true;
}
case CONTEXT_BUTTON_PLAY_PART:
@@ -1990,16 +1988,15 @@ bool CGUIWindowVideoBase::OnUnAssignContent(const CStdString &path, int label1,
return false;
}
-void CGUIWindowVideoBase::OnAssignContent(const CStdString &path, int iFound, ADDON::ScraperPtr& info, SScanSettings& settings)
+void CGUIWindowVideoBase::OnAssignContent(const CStdString &path)
{
bool bScan=false;
CVideoDatabase db;
db.Open();
- if (iFound == 0)
- {
- info = db.GetScraperForPath(path, settings);
- }
-
+
+ SScanSettings settings;
+ ADDON::ScraperPtr info = db.GetScraperForPath(path, settings);
+
ADDON::ScraperPtr info2(info);
if (CGUIDialogContentSettings::Show(info, settings, bScan))
@@ -2013,14 +2010,14 @@ void CGUIWindowVideoBase::OnAssignContent(const CStdString &path, int iFound, AD
if (OnUnAssignContent(path,20442,20443,20444))
bScan = true;
}
-
- db.SetScraperForPath(path,info,settings);
-
- if (bScan)
- {
- CGUIDialogVideoScan* pDialog = (CGUIDialogVideoScan*)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_SCAN);
- if (pDialog)
- pDialog->StartScanning(path, true);
- }
+ }
+
+ db.SetScraperForPath(path,info,settings);
+
+ if (bScan)
+ {
+ CGUIDialogVideoScan* pDialog = (CGUIDialogVideoScan*)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_SCAN);
+ if (pDialog)
+ pDialog->StartScanning(path, true);
}
}