Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

disable ipv6 in udpsink

  • Loading branch information...
commit 7c2968a080ad3c04e59ff111f0c7cf478a89f5d3 1 parent bd9f1e4
Justin Karneges authored April 05, 2012
6  build_mac.sh
@@ -21,7 +21,10 @@ build_package() {
21 21
 	if [ ! -d "build/$1" ]; then
22 22
 		echo "$1: building..."
23 23
 		mkdir -p build/$1
24  
-		(cd build/$1 && build_package_$1)
  24
+		OLD_PWD=$PWD
  25
+		cd build/$1
  26
+		build_package_$1
  27
+		cd $OLD_PWD
25 28
 		touch "build/$1/ok"
26 29
 	else
27 30
 		if [ ! -f "build/$1/ok" ]; then
@@ -128,6 +131,7 @@ build_package gstbase
128 131
 build_package_gstgood() {
129 132
 	tar zxvf ../../packages/$gstgood_file
130 133
 	cd gst-plugins-good-*
  134
+	patch -p1 < ../../../patches/udp_noipv6.diff
131 135
 	CFLAGS=-I$base_prefix/include LDFLAGS=-L$base_prefix/lib CC="gcc -arch i386" CXX="g++ -arch i386" ./configure --host=i386-apple-darwin --prefix=$base_prefix --disable-osx_video
132 136
 	make && make install
133 137
 }
19  patches/udp_noipv6.diff
... ...
@@ -0,0 +1,19 @@
  1
+diff -ru gst-plugins-good-0.10.31.orig/gst/udp/gstmultiudpsink.c gst-plugins-good-0.10.31/gst/udp/gstmultiudpsink.c
  2
+--- gst-plugins-good-0.10.31.orig/gst/udp/gstmultiudpsink.c	2012-02-15 15:48:07.000000000 -0800
  3
++++ gst-plugins-good-0.10.31/gst/udp/gstmultiudpsink.c	2012-04-05 21:24:43.215293274 -0700
  4
+@@ -935,12 +935,12 @@
  5
+   if (sink->sockfd == -1) {
  6
+     GST_DEBUG_OBJECT (sink, "creating sockets");
  7
+     /* create sender socket try IP6, fall back to IP4 */
  8
+-    sink->ss_family = AF_INET6;
  9
+-    if ((sink->sock = socket (AF_INET6, SOCK_DGRAM, 0)) == -1) {
  10
++    //sink->ss_family = AF_INET6;
  11
++    //if ((sink->sock = socket (AF_INET6, SOCK_DGRAM, 0)) == -1) {
  12
+       sink->ss_family = AF_INET;
  13
+       if ((sink->sock = socket (AF_INET, SOCK_DGRAM, 0)) == -1)
  14
+         goto no_socket;
  15
+-    }
  16
++    //}
  17
+ 
  18
+     GST_DEBUG_OBJECT (sink, "have socket");
  19
+     sink->externalfd = FALSE;

0 notes on commit 7c2968a

Please sign in to comment.
Something went wrong with that request. Please try again.