]> git.sesse.net Git - mlt/commit
Synchronize Producer.set_speed(0) with sdl_preview.
authorDan Dennedy <dan@dennedy.org>
Thu, 16 Dec 2010 07:49:54 +0000 (23:49 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 16 Dec 2010 07:49:54 +0000 (23:49 -0800)
commit614a91a29cd3ee36456360a0981440b23b42b9d6
tree2d1bbf7d87ed02c3c8413d1a2908e9be731d6b44
parentd0f75380c75bcff46117190d5e9cefef1ebaf30f
Synchronize Producer.set_speed(0) with sdl_preview.

This also helps prevent deadlock while waiting for consumer-sdl-paused
event. Not 100% yet, but 100% requires script (swig) apps to handle the
event asynchronously via an event listener, which is not available yet
for most - only ruby. Furthermore, they would really like to be able to
pass opaque data to the asynchronous handler, which is not yet available
in the framework.

A good example here is pausing playback prior to seeking to a specific
frame. The app should be able to make a consumer-paused event handler to
which it can pass the new position, so it can properly seek after the
pause has officially occurred. Without the ability to pass opaque data,
it must save the new position as an instance variable to use within the
handler - once it has support for event listeners that is.
src/mlt++/MltProducer.cpp
src/modules/sdl/consumer_sdl_preview.c