[gst-devel] socket_error_is_ignorable can cause infinite loop in gstmultiudpsink.c if RTSP client connection is lost and EOS is sent to pipeline for gst-rtsp-server

Stefan Kost ensonic at hora-obscura.de
Sat Aug 7 13:29:30 CEST 2010


Am 29.07.2010 17:49, schrieb Robert Krakora:
> socket_error_is_ignorable can cause infinite loop in gstmultiudpsink.c
> if RTSP client connection is lost and EOS is sent to pipeline for
> gst-rtsp-server.  The remedy is to add ECONNREFUSED to the
> conditional.
> 
> static gboolean
> socket_error_is_ignorable (void)
> {
> #ifdef G_OS_WIN32
>   /* Windows doesn't seem to have an EAGAIN for sockets */
>   return WSAGetLastError () == WSAEINTR || WSAGetLastError() == WSAECONNREFUSED;
> #else
>   return errno == EINTR || errno == EAGAIN || errno == ECONNREFUSED;
> #endif
> }
> 
please file a bug + patch.

thanks,

Stefan




More information about the gstreamer-devel mailing list