srt: Remove platform dependent socket headers
authorJustin Kim <justin.kim@collabora.com>
Tue, 2 Jan 2018 11:51:25 +0000 (20:51 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 3 Jan 2018 10:41:45 +0000 (10:41 +0000)
SRT modules entrust `gnetworking.h` with finding right headers
for the platforms.

https://bugzilla.gnome.org/show_bug.cgi?id=792123

ext/srt/gstsrt.h
ext/srt/gstsrtbasesink.c
ext/srt/gstsrtbasesrc.c
ext/srt/gstsrtclientsrc.c
ext/srt/gstsrtserversink.h
ext/srt/gstsrtserversrc.h

index 2777cae..6fe5680 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <gst/gst.h>
 #include <gio/gio.h>
+#include <gio/gnetworking.h>
 
 #include <srt/srt.h>
 
index 3f60020..3858f01 100644 (file)
@@ -26,8 +26,6 @@
 #include "gstsrt.h"
 #include <srt/srt.h>
 
-#include <netinet/in.h>
-
 #define SRT_DEFAULT_POLL_TIMEOUT -1
 
 #define GST_CAT_DEFAULT gst_debug_srt_base_sink
index 5558cd1..29ab55c 100644 (file)
@@ -27,8 +27,6 @@
 #include <srt/srt.h>
 #include <gio/gio.h>
 
-#include <netinet/in.h>
-
 #define GST_CAT_DEFAULT gst_debug_srt_base_src
 GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);
 
index a57b4fa..a0d2e7d 100644 (file)
@@ -49,8 +49,6 @@
 
 #include "gstsrt.h"
 
-#include <netinet/in.h>
-
 static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
index 10eb52b..8a11f88 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_SRT_SERVER_SINK_H__
 
 #include "gstsrtbasesink.h"
-#include <sys/socket.h>
 
 G_BEGIN_DECLS
 
index 098b5cd..d7c22c5 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_SRT_SERVER_SRC_H__
 
 #include "gstsrtbasesrc.h"
-#include <sys/socket.h>
 
 G_BEGIN_DECLS