rtmpsink segfault

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

rtmpsink segfault

David REGADE
Hi,

I use gstreamer to stream to rtmp server via rtmpsink. When a network failure
appens (dsl line reset) I destroy my pipeline and create a new one. Sometimes,
my application segfaults in render function on:

if (!RTMP_IsConnected (sink->rtmp))

because sink->rtmp is null.

There are some call performed on render after the first one who failed to
RTMP_Connect and so destroys sink->rtmp.

I think some test have to be done to avoid such situation.
tcpclientsink uses

   g_return_val_if_fail (GST_OBJECT_FLAG_IS_SET (sink, GST_TCP_CLIENT_SINK_OPEN),
       GST_FLOW_WRONG_STATE);

to check if render can be performed. start and stop use the same flag to check
connection status.
multifdsink use same technique.

I'm not a gstreamer expert, what's the best way to solve my segfault problem ?

Regards
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel