From 3bfd407843fc414bde78831c714579a2c6844ef1 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 11 May 2021 22:10:17 +0200 Subject: Calls: Use vp8depay.wait-for-keyframe only with GStreamer 1.16+ --- plugins/rtp/src/codec_util.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/rtp') diff --git a/plugins/rtp/src/codec_util.vala b/plugins/rtp/src/codec_util.vala index 6a2438f1..d018501d 100644 --- a/plugins/rtp/src/codec_util.vala +++ b/plugins/rtp/src/codec_util.vala @@ -206,7 +206,9 @@ public class Dino.Plugins.Rtp.CodecUtil { } public static string? get_depay_args(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) { +#if GST_1_16 if (codec == "vp8") return " wait-for-keyframe=true"; +#endif return null; } @@ -271,7 +273,7 @@ public class Dino.Plugins.Rtp.CodecUtil { public Gst.Element? get_decode_bin(string media, JingleRtp.PayloadType payload_type, string? name = null) { string? codec = get_codec_from_payload(media, payload_type); - string base_name = name ?? @"encode-$codec-$(Random.next_int())"; + string base_name = name ?? @"decode_$(codec)_$(Random.next_int())"; string? desc = get_decode_bin_description(media, codec, payload_type, null, base_name); if (desc == null) return null; debug("Pipeline to decode %s %s: %s", media, codec, desc); -- cgit v1.2.3-70-g09d2