[gst-devel] seg fault: on gst_element_set_state(pipeline, GST_STATE_READY)
pritesh
digitaldsp at excite.com
Wed Jul 18 11:18:13 CEST 2007
hi all, i have written a simple player using playbin . in the int main() function , i create a pthread which scans for key presses , and then i call player_initialise() int main(int argc,char **argv){ Create_keypress_scan_thread(scan_key_press); // creates a pthread for scanning user key presses player_initialise();} void *scan_key_press(){ } void player_initialise(){ gst_init(NULL,NULL); loop = g_main_loop_new(NULL,FALSE); pipeline=gst_element_new("pipeline"); play=gst_element_factory_make("playbin","play"); ...................... set_uri(); gst_element_set_state(pipeline,GST_STATE_PAUSED); g_main_loop_run(loop); }void on_playkey(){ gst_element_set_state(pipeline,GST_STATE_PLAYING);} void on_stopkey(){ g_main_loop_quit(loop); gst_element_set_state(pipeline,GST_STATE_READY); // CREATES A SEGMENTATION FAULT HERE gst_object_unref(GST_OBJECT(pipeline); } the problem is when i am playing a media file and the user presses key for
stop , it goes to on_stopkey() and creates a segmentation fault at " gst_element_set_state(.....,GST_STATE_READY.) " any ideas
_______________________________________________
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/20070718/6a1cdd49/attachment.htm>
More information about the gstreamer-devel
mailing list