Skip to content

Commit

Permalink
lib: Emit error if an timer media have an src property
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed May 22, 2018
1 parent 05b7598 commit 09c97eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ Player::createPlayer (Formatter *formatter, Media *media, const string &uri,
{
WARNING ("unknown mime '%s': creating an empty player",
mime.c_str ());
if (!media->getProperty("uri").empty ())
ERROR ("media from \"application/x-ginga-timer\" type should not have src");
}
}

Expand Down

0 comments on commit 09c97eb

Please sign in to comment.