webrtc: fix type of max-retransmits, make it work
authorDavid Gunzinger <david.gunzinger@smoca.ch>
Tue, 13 Aug 2019 10:10:54 +0000 (12:10 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 13 Aug 2019 15:47:13 +0000 (16:47 +0100)
ext/webrtc/gstwebrtcbin.c

index 9236753..cb3504c 100644 (file)
@@ -4121,7 +4121,7 @@ gst_webrtc_bin_create_data_channel (GstWebRTCBin * webrtc, const gchar * label,
           &max_packet_lifetime))
     max_packet_lifetime = -1;
   if (!init_params
-      || !gst_structure_get_boolean (init_params, "max-retransmits",
+      || !gst_structure_get_int (init_params, "max-retransmits",
           &max_retransmits))
     max_retransmits = -1;
   /* both retransmits and lifetime cannot be set */