Skip to content

Commit

Permalink
[addons] make sure to get correct extension point before attempting t…
Browse files Browse the repository at this point in the history
…o cast to plugin

fixes crash when plugin isn't the first extension point
  • Loading branch information
tamland committed Feb 24, 2015
1 parent b69ccc8 commit aeb7613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/view/GUIViewState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ CGUIViewStateFromItems::CGUIViewStateFromItems(const CFileItemList &items) : CGU
{
CURL url(items.GetPath());
AddonPtr addon;
if (CAddonMgr::Get().GetAddon(url.GetHostName(),addon) && addon)
if (CAddonMgr::Get().GetAddon(url.GetHostName(), addon, ADDON_PLUGIN))
{
PluginPtr plugin = std::static_pointer_cast<CPluginSource>(addon);
if (plugin->Provides(CPluginSource::AUDIO))
Expand Down

0 comments on commit aeb7613

Please sign in to comment.