emotion/generic: Fix frame dropping.
authorRafael Antognolli <antognolli@gmail.com>
Mon, 5 Sep 2011 21:52:18 +0000 (21:52 +0000)
committerRafael Antognolli <antognolli@gmail.com>
Mon, 5 Sep 2011 21:52:18 +0000 (21:52 +0000)
commit4be7a99b942567194418b3b372abc0cdf35d32e9
treedb1afd00df328ed82fd86d1ff71a9f0a5c572ba3
parent0d7da38f058933fb46dcedfa4e8751d0b5f7b40e
emotion/generic: Fix frame dropping.

Move the frame drop counter to the shared memory object, so the player
can check its value and not send new frames if we didn't "consume" the
previous one.

Also move the triple buffering pointer changing to the display function,
so it will only lock once when accessing the critical region.

SVN revision: 63220
legacy/emotion/src/examples/emotion_generic_example.c
legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
legacy/emotion/src/modules/generic/Emotion_Generic_Plugin.h
legacy/emotion/src/modules/generic/emotion_generic.c