stream: Properties are always there in Gst 1.0
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Tue, 19 Feb 2013 21:43:08 +0000 (16:43 -0500)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Mar 2013 10:07:20 +0000 (11:07 +0100)
gst/rtsp-server/rtsp-stream.c

index 4a13c2d..9ec568d 100644 (file)
@@ -521,21 +521,9 @@ again:
   if (!udpsink1)
     goto no_udp_protocol;
 
-  if (g_object_class_find_property (G_OBJECT_GET_CLASS (udpsink0),
-          "send-duplicates")) {
-    g_object_set (G_OBJECT (udpsink0), "send-duplicates", FALSE, NULL);
-    g_object_set (G_OBJECT (udpsink1), "send-duplicates", FALSE, NULL);
-  } else {
-    g_warning
-        ("old multiudpsink version found without send-duplicates property");
-  }
-
-  if (g_object_class_find_property (G_OBJECT_GET_CLASS (udpsink0),
-          "buffer-size")) {
-    g_object_set (G_OBJECT (udpsink0), "buffer-size", priv->buffer_size, NULL);
-  } else {
-    GST_WARNING ("multiudpsink version found without buffer-size property");
-  }
+  g_object_set (G_OBJECT (udpsink0), "send-duplicates", FALSE, NULL);
+  g_object_set (G_OBJECT (udpsink1), "send-duplicates", FALSE, NULL);
+  g_object_set (G_OBJECT (udpsink0), "buffer-size", priv->buffer_size, NULL);
 
   g_object_get (G_OBJECT (udpsrc1), "used-socket", &socket, NULL);
   g_object_set (G_OBJECT (udpsink1), "socket", socket, NULL);