emotion/generic: Make sure no new_frame is sent while opening or closing files.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Sep 2011 16:07:04 +0000 (16:07 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Sep 2011 16:07:04 +0000 (16:07 +0000)
This wasn't happening anyway, but let's make sure it won't ever happen.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@63204 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/generic/emotion_generic.c

index c0dfe89..de2b726 100644 (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);
 }