From 00c5040bc3917de5e97efa98f47ac2157f441c7e Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 27 Mar 2021 16:49:16 +0100 Subject: QXmppCall: Refactoring and clean up Fixes things like: - detaching Qt containers (missing std::as_const) - new signal/slot syntax - missing emit keyword - more 'auto' - comparison of int and uint --- src/client/QXmppCall_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/QXmppCall_p.h') diff --git a/src/client/QXmppCall_p.h b/src/client/QXmppCall_p.h index b3bb2bd4..49e9f38b 100644 --- a/src/client/QXmppCall_p.h +++ b/src/client/QXmppCall_p.h @@ -52,7 +52,7 @@ public: int pt; QString name; int channels; - int clockrate; + uint clockrate; QString gstPay; QString gstDepay; QString gstEnc; @@ -107,7 +107,7 @@ public: // Supported codecs QList videoCodecs = { - { .pt = 100, .name = "H264", .channels = 1, .clockrate = 90000, .gstPay = "rtph264pay", .gstDepay = "rtph264depay", .gstEnc = "x264enc", .gstDec = "avdec_h264", .encProps = { { "tune", 4 }, { "speed-preset", 3 }, {"byte-stream", true}, { "bitrate", 512 } } }, + { .pt = 100, .name = "H264", .channels = 1, .clockrate = 90000, .gstPay = "rtph264pay", .gstDepay = "rtph264depay", .gstEnc = "x264enc", .gstDec = "avdec_h264", .encProps = { { "tune", 4 }, { "speed-preset", 3 }, { "byte-stream", true }, { "bitrate", 512 } } }, { .pt = 99, .name = "VP8", .channels = 1, .clockrate = 90000, .gstPay = "rtpvp8pay", .gstDepay = "rtpvp8depay", .gstEnc = "vp8enc", .gstDec = "vp8dec", .encProps = { { "deadline", 20000 }, { "target-bitrate", 512000 } } }, // vp9enc and x265enc seem to be very slow. Give them a lower priority for now. { .pt = 102, .name = "H265", .channels = 1, .clockrate = 90000, .gstPay = "rtph265pay", .gstDepay = "rtph265depay", .gstEnc = "x265enc", .gstDec = "avdec_h265", .encProps = { { "tune", 4 }, { "speed-preset", 3 }, { "bitrate", 512 } } }, -- cgit v1.2.3