udp: Change the default port to 5004
authorDavid Schleef <ds@schleef.org>
Wed, 7 Mar 2012 05:44:36 +0000 (21:44 -0800)
committerDavid Schleef <ds@schleef.org>
Wed, 7 Mar 2012 05:44:36 +0000 (21:44 -0800)
udpsrc/udpsink are almost always used with RTP, so let's use an
RTP port as the default port.  It's unclear why 4951 was used, it
goes back to early commits in CVS.

gst/udp/gstudpsink.c
gst/udp/gstudpsrc.c

index 915c82b..ea791e2 100644 (file)
@@ -38,7 +38,7 @@
 #include "gstudpsink.h"
 
 #define UDP_DEFAULT_HOST        "localhost"
-#define UDP_DEFAULT_PORT        4951
+#define UDP_DEFAULT_PORT        5004
 
 /* UDPSink signals and args */
 enum
index 81a96e8..4005c3a 100644 (file)
@@ -120,7 +120,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS_ANY);
 
-#define UDP_DEFAULT_PORT                4951
+#define UDP_DEFAULT_PORT                5004
 #define UDP_DEFAULT_MULTICAST_GROUP     "0.0.0.0"
 #define UDP_DEFAULT_MULTICAST_IFACE     NULL
 #define UDP_DEFAULT_URI                 "udp://"UDP_DEFAULT_MULTICAST_GROUP":"G_STRINGIFY(UDP_DEFAULT_PORT)