HI,
i am trying to port my application form gstreamer version 1.6.3 to gstreamer
version 1.14.1.
Dynamic linking of udpsrc address used to work in the 1.6.3 and it's not
working in 1.14.1
below are the steps
1. un-linking udpsrc
2. set state to null
3. remove from the pipe line and unref
4. create new udpsrc
5. set the properties
6.link to the pipeline
7. and start playing
My working code in 1.6.3 is below
gst_element_unlink(gSrc[streamno], gDemux[streamno]);
gst_element_set_state (gSrc[streamno], GST_STATE_NULL);
gst_bin_remove(GST_BIN(gPipeline[streamno]), gSrc[streamno]);
gst_object_unref (gSrc[streamno]);
gSrc[streamno] = gst_element_factory_make("udpsrc", "udpsrc");
szInterface = VLAN_INTERFACE;// szInterface =
GetNetworkInterface(Cam->GetIpAddress());
g_object_set (G_OBJECT (gSrc[streamno]),
"caps", gst_caps_from_string(GST_UDPSRC_CAP),
"multicast-iface", szInterface.c_str(),
"port", Cam.GetIgmpPort(),
"multicast-group", (Cam.GetIgmpGroup()).c_str(),
"auto-multicast", true,
NULL);
gst_bin_add(GST_BIN(gPipeline[streamno]),gSrc[streamno]);
gst_element_link(gSrc[streamno], gDemux[streamno]);
gst_element_sync_state_with_parent(gSrc[streamno]);
gst_element_sync_state_with_parent(gDemux[streamno]);
gst_element_set_state (gPipeline[streamno], GST_STATE_PLAYING);
}
i have changed "multicast-group" property to "address" in 1.14.1 and the
remaining code is same.
udpsrc is not getting linked dynamically in 1.14.1.
Can somebody help me how to link udpsrc dynamically in 1.14.1.
--
Sent from:
http://gstreamer-devel.966125.n4.nabble.com/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel