Skip to content

Commit

Permalink
maint: In lua Media, fix attribution event to registred funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed Mar 23, 2020
1 parent ce76541 commit f1d48dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ Player::setProperty (const string &name, const string &value)
_value = value;

code = Player::getPlayerProperty (name, &defval);
if (code == Player::PROP_UNKNOWN)

// NCLua media should perform the doSetProperty to trigger registred funcs
if (code == Player::PROP_UNKNOWN && this->getProperty("type") != "application/x-ginga-NCLua")
goto done;

if (_value == "")
Expand Down

0 comments on commit f1d48dd

Please sign in to comment.