GStreamer question
I have an rtspsrc element in my pipeline and sometimes when I am setting my elements to PAUSED or NULL like so
if ( !gst_element_set_state( source,GST_STATE_PAUSED )
if ( !gst_element_set_state( source,GST_STATE_NULL )
Then I notice that it freezes for about 20 seconds each time gst_element_set_state is called. I found that rtspsrc has a tcp-timeout property that has a default value of 20 seconds so I try setting it like so to reduce my timeout value.
gint timeout = 5000000;//5 seconds
g_object_set(source, "tcp-timeout", timeout, NULL );
But then my pipeline does not play at all.
Has anyone ever saw anything like this, and how can I solve it?
Thanks
|