property: better readability

parent 3bb40b63
......@@ -91,12 +91,21 @@ main (int argc, char **argv)
caps = gst_caps_from_string (CAPS);
/* set udp sinks and sources for RTP and RTCP */
g_object_set (data.rtp_src, "port", RTP_PORT_SRC,
"caps", caps, NULL);
g_object_set (data.rtcp_sink, "port", RTCP_PORT_SINK,
"host", REMOTE, NULL);
g_object_set (data.rtcp_src, "port", RTCP_PORT_SRC, NULL);
g_object_set (data.rtcp_sink, "async", FALSE, "sync", FALSE, NULL);
g_object_set (data.rtp_src,
"port", RTP_PORT_SRC,
"caps", caps,
NULL);
g_object_set (data.rtcp_sink,
"port", RTCP_PORT_SINK,
"host", REMOTE,
"async", FALSE,
"sync", FALSE,
NULL);
g_object_set (data.rtcp_src,
"port", RTCP_PORT_SRC,
NULL);
gst_bin_add_many (GST_BIN (data.pipeline), data.rtp_src, data.rtcp_src,
data.rtcp_sink, NULL);
......
......@@ -87,12 +87,21 @@ main (int argc, char**argv) {
gst_bin_add (GST_BIN (data.pipeline), data.rtpbin);
/* set udp sinks and sources for RTP and RTCP */
g_object_set (data.rtp_sink, "port", RTP_PORT_SINK,
"host", REMOTE, NULL);
g_object_set (data.rtcp_sink, "port", RTCP_PORT_SINK,
"host", REMOTE, NULL);
g_object_set (data.rtcp_src, "port", RTCP_PORT_SRC, NULL);
g_object_set (data.rtcp_sink, "async", FALSE, "sync", FALSE, NULL);
g_object_set (data.rtp_sink,
"port", RTP_PORT_SINK,
"host", REMOTE,
NULL);
g_object_set (data.rtcp_sink,
"port", RTCP_PORT_SINK,
"host", REMOTE,
"async", FALSE,
"sync", FALSE,
NULL);
g_object_set (data.rtcp_src,
"port", RTCP_PORT_SRC,
NULL);
gst_bin_add_many (GST_BIN (data.pipeline), data.rtp_sink, data.rtcp_sink,
data.rtcp_src, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment