mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
examples/webrtc: don't use factory_make_full() for enums
They are not currently translated into their respective enum values and will produce an error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3210>
This commit is contained in:
parent
cb7958e710
commit
d586c2cc28
1 changed files with 2 additions and 2 deletions
|
@ -473,13 +473,13 @@ start_pipeline (gboolean create_offer, guint opus_pt, guint vp8_pt)
|
||||||
if (custom_ice) {
|
if (custom_ice) {
|
||||||
custom_agent = GST_WEBRTC_ICE (customice_agent_new ("custom"));
|
custom_agent = GST_WEBRTC_ICE (customice_agent_new ("custom"));
|
||||||
webrtc1 = gst_element_factory_make_full ("webrtcbin", "name", "sendrecv",
|
webrtc1 = gst_element_factory_make_full ("webrtcbin", "name", "sendrecv",
|
||||||
"bundle-policy", "max-bundle",
|
|
||||||
"stun-server", STUN_SERVER, "ice-agent", custom_agent, NULL);
|
"stun-server", STUN_SERVER, "ice-agent", custom_agent, NULL);
|
||||||
} else {
|
} else {
|
||||||
webrtc1 = gst_element_factory_make_full ("webrtcbin", "name", "sendrecv",
|
webrtc1 = gst_element_factory_make_full ("webrtcbin", "name", "sendrecv",
|
||||||
"bundle-policy", "max-bundle", "stun-server", STUN_SERVER, NULL);
|
"stun-server", STUN_SERVER, NULL);
|
||||||
}
|
}
|
||||||
g_assert_nonnull (webrtc1);
|
g_assert_nonnull (webrtc1);
|
||||||
|
gst_util_set_object_arg (G_OBJECT (webrtc1), "bundle-policy", "max-bundle");
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipe1), audio_bin, video_bin, webrtc1, NULL);
|
gst_bin_add_many (GST_BIN (pipe1), audio_bin, video_bin, webrtc1, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue