update for buffer api change
[platform/upstream/gstreamer.git] / gst / udp / gstmultiudpsink.c
index e4d8fbb..7f4f030 100644 (file)
@@ -40,6 +40,9 @@
 #include "gstmultiudpsink.h"
 
 #include <string.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 
 #include "gst/glib-compat-private.h"
 
@@ -534,6 +537,7 @@ no_data:
   }
 send_error:
   {
+    g_mutex_unlock (&sink->client_lock);
     GST_DEBUG ("got send error %s", err->message);
     g_clear_error (&err);
     return GST_FLOW_ERROR;
@@ -821,7 +825,6 @@ gst_multiudpsink_start (GstBaseSink * bsink)
   }
 
 #ifdef SO_SNDBUF
-
   {
     socklen_t len;
     gint sndsize, ret;