rtspsrc tcp-timeout question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rtspsrc tcp-timeout question

wanting2learn
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

Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc tcp-timeout question

Wim Taymans
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
>
>



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc tcp-timeout question

wanting2learn
Thanks for the reply,

I also was setting the location property so I had to do both with the one command like so:

g_object_set(source, "location", rtspUrl.c_str(), "tcp-timeout", timeout, NULL );

It now works.

Thanks