The problem about gst_element_set_state.

forestzhu forest0823 at 126.com
Wed Dec 28 01:29:24 PST 2011


Hi all,
I met trouble in gsteamer program.
Sometimes the  program will crash 
when I use the " gst_element_set_state" to set the pipeline to NULL .

my code likes below:

        if (player->pipeline)
        {
            DEBUG_LOG("pipeline=>%p ...",player->pipeline);
while(GST_STATE_CHANGE_FAILURE == gst_element_set_state (player->pipeline,
GST_STATE_NULL))
            DEBUG_LOG("fail to change pipeline state...");
DEBUG_LOG("after set state");
            sleep(1);

            g_object_unref (player->pipeline);
            player->pipeline = NULL;
        }

I confirmed before set_state the player->pipeline 's mem_address is correct
.
And the  "DEBUG_LOG("fail to change pipeline state...");" and
"DEBUG_LOG("after set state");" will not run.

Anyone can give me some informations?

Thanks for any hint!

Regards!


forest




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/The-problem-about-gst-element-set-state-tp4239421p4239421.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list