aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppCall_p.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2021-03-27 16:49:16 +0100
committerLinus Jahn <lnj@kaidan.im>2021-03-28 00:09:13 +0100
commit00c5040bc3917de5e97efa98f47ac2157f441c7e (patch)
treea5e1c5350f3e8fb4306cda5aa778c78e99c46c51 /src/client/QXmppCall_p.h
parent52b509a9703a67819193de8482552ed9894f834d (diff)
downloadqxmpp-00c5040bc3917de5e97efa98f47ac2157f441c7e.tar.gz
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
Diffstat (limited to 'src/client/QXmppCall_p.h')
-rw-r--r--src/client/QXmppCall_p.h4
1 files changed, 2 insertions, 2 deletions
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<GstCodec> 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 } } },