diff options
author | Marvin W <git@larma.de> | 2021-05-11 22:10:17 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2021-05-11 22:11:44 +0200 |
commit | 3bfd407843fc414bde78831c714579a2c6844ef1 (patch) | |
tree | 644f19c0a5ae6afedca091fb5eea1f6ae07d2bee /plugins/rtp/src | |
parent | d71604913dd5b3372a823320db83c37c845fac5c (diff) | |
download | dino-3bfd407843fc414bde78831c714579a2c6844ef1.tar.gz dino-3bfd407843fc414bde78831c714579a2c6844ef1.zip |
Calls: Use vp8depay.wait-for-keyframe only with GStreamer 1.16+
Diffstat (limited to 'plugins/rtp/src')
-rw-r--r-- | plugins/rtp/src/codec_util.vala | 4 |
1 files changed, 3 insertions, 1 deletions
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); |