[gst-devel] g_main_loop problem + playbin

pritesh digitaldsp at excite.com
Fri Jul 13 07:40:13 CEST 2007


 hi all, i have written a simple player application using playbin  the problem is in the int main() func, i call music_play() . in music_play() ,i do Music_play(){loop=g_main_loop_new(NULL,FALSE)play = gst_element_factory_make("playbin","play");bus=......... gst_element_set_state(G_OBJECT(play),GST_STATE_PLAYING);g_main_loop_run(loop);} but the problem is how to set the state of playbin to "PAUSED"   "READY" from outside if i try to set the state in main() , it is just ignored. can the playbin state be controlled from outside using any glib api      gst_element_st

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070713/c546b812/attachment.htm>


More information about the gstreamer-devel mailing list