Skip to content

Commit

Permalink
add setLayer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jvcleave committed Oct 12, 2018
1 parent 60fc794 commit c826828
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ofxOMXPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ void ofxOMXPlayer::setAlpha(int alpha)

void ofxOMXPlayer::setLayer(int layer)
{
if(!isOpen())
{
ofLogError() << "TOO EARLY TO SET LAYER, Use ofxOMXPlayerSettings.layer to pass in";
return;
}
engine.setLayer(layer);
}

Expand Down

0 comments on commit c826828

Please sign in to comment.