Permalink
Browse files

disable ipv6 in udpsink

  • Loading branch information...
1 parent bd9f1e4 commit 7c2968a080ad3c04e59ff111f0c7cf478a89f5d3 @jkarneges jkarneges committed Apr 6, 2012
Showing with 24 additions and 1 deletion.
  1. +5 −1 build_mac.sh
  2. +19 −0 patches/udp_noipv6.diff
View
6 build_mac.sh
@@ -21,7 +21,10 @@ build_package() {
if [ ! -d "build/$1" ]; then
echo "$1: building..."
mkdir -p build/$1
- (cd build/$1 && build_package_$1)
+ OLD_PWD=$PWD
+ cd build/$1
+ build_package_$1
+ cd $OLD_PWD
touch "build/$1/ok"
else
if [ ! -f "build/$1/ok" ]; then
@@ -128,6 +131,7 @@ build_package gstbase
build_package_gstgood() {
tar zxvf ../../packages/$gstgood_file
cd gst-plugins-good-*
+ patch -p1 < ../../../patches/udp_noipv6.diff
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
make && make install
}
View
19 patches/udp_noipv6.diff
@@ -0,0 +1,19 @@
+diff -ru gst-plugins-good-0.10.31.orig/gst/udp/gstmultiudpsink.c gst-plugins-good-0.10.31/gst/udp/gstmultiudpsink.c
+--- gst-plugins-good-0.10.31.orig/gst/udp/gstmultiudpsink.c 2012-02-15 15:48:07.000000000 -0800
++++ gst-plugins-good-0.10.31/gst/udp/gstmultiudpsink.c 2012-04-05 21:24:43.215293274 -0700
+@@ -935,12 +935,12 @@
+ if (sink->sockfd == -1) {
+ GST_DEBUG_OBJECT (sink, "creating sockets");
+ /* create sender socket try IP6, fall back to IP4 */
+- sink->ss_family = AF_INET6;
+- if ((sink->sock = socket (AF_INET6, SOCK_DGRAM, 0)) == -1) {
++ //sink->ss_family = AF_INET6;
++ //if ((sink->sock = socket (AF_INET6, SOCK_DGRAM, 0)) == -1) {
+ sink->ss_family = AF_INET;
+ if ((sink->sock = socket (AF_INET, SOCK_DGRAM, 0)) == -1)
+ goto no_socket;
+- }
++ //}
+
+ GST_DEBUG_OBJECT (sink, "have socket");
+ sink->externalfd = FALSE;

0 comments on commit 7c2968a

Please sign in to comment.