Skip to content

Commit

Permalink
Load Inputstream addon only if extension matches / regexp for path co…
Browse files Browse the repository at this point in the history
…mparision
  • Loading branch information
peak3d authored and FernetMenta committed Mar 5, 2016
1 parent dd7cc88 commit 517935c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CDVDInputStream* CDVDFactoryInputStream::CreateInputStream(IVideoPlayer* pPlayer
{
std::shared_ptr<ADDON::CInputStream> input(std::static_pointer_cast<ADDON::CInputStream>(addons[i]));
ADDON::CInputStream* clone = new ADDON::CInputStream(*input);
ADDON_STATUS status = clone->Create();
ADDON_STATUS status = clone->Supports(fileitem) ? clone->Create() : ADDON_STATUS_PERMANENT_FAILURE;
if (status == ADDON_STATUS_OK)
{
if (clone->Supports(fileitem))
Expand Down

0 comments on commit 517935c

Please sign in to comment.