[gst-devel] rtspsrc tcp-timeout question

Wim Taymans wim.taymans at gmail.com
Mon Mar 15 15:17:17 CET 2010


On Mon, 2010-03-15 at 05:19 -0800, wanting2learn wrote:
> 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 );

tcp-timeout is a guint64 property so you need to either declare it like
that or cast to it when using g_object_set.

Wim
 
> 
> But then my pipeline does not play at all.
> 
> Has anyone ever saw anything like this, and how can I solve it?
> 
> Thanks
> 
> 






More information about the gstreamer-devel mailing list