emotion/generic: Make sure no new_frame is sent while opening or closing files.

This wasn't happening anyway, but let's make sure it won't ever happen.

SVN revision: 63204
This commit is contained in:
Rafael Antognolli 2011-09-05 16:07:04 +00:00
parent dca7c873b2
commit 10621a8c15
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ _create_shm_data(Emotion_Generic_Video *ev, const char *shmname)
static void
_player_new_frame(Emotion_Generic_Video *ev)
{
if (ev->opening || ev->closing)
return;
if (!ev->drop++)
_emotion_frame_new(ev->obj);
}