How to avoid action missed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to avoid action missed

Rodman

Hello,
    I'm working on a player with UI. PLAY/PAUSE button will call
gst_element_set_state() to control the pipeline directly.
    I met an issue that if I press PLAY/PAUSE quickly, then the return of
set state will be GST_STATE_CHANGE_ASYNC, then the operation will be delay.
Then I add gst_element_get_state() at the beginning of the function, and
timeout is 10ms, if the return value is GST_STATE_CHANGE_ASYNC, then do
nothing but ruturn. Then some operation will be missed.
    Do you have any suggestion to ensure the operations are all processed
and on time?
    Thanks.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-avoid-action-missed-tp3063204p3063204.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
I'm a beginner of Gstreamer. Learning...