From d40a2d23e2bde81d2ab2ef316b4b3c30450041eb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 21 Sep 2014 09:36:45 +0200 Subject: Read key and ssrc form config file. --- src/outputstreamer.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/outputstreamer.cc') diff --git a/src/outputstreamer.cc b/src/outputstreamer.cc index e5b7436..0d7b557 100644 --- a/src/outputstreamer.cc +++ b/src/outputstreamer.cc @@ -26,19 +26,20 @@ */ #include "outputstreamer.h" -#define KEY "123456789012345678901234567890123456789012345678901234567890" -#define SSRC 1234567890 #define CSRC_V 42 #define CSRC_A 43 -OutputStreamer::OutputStreamer() +OutputStreamer::OutputStreamer(QString key, unsigned int ssrc) : socket(this) { total = 0; lrtp_status_t status; - lrtp = lrtp_init(&status, KEY, SSRC); + char ckey[61]; + strcpy(ckey, key.toStdString().c_str()); + + lrtp = lrtp_init(&status, ckey, ssrc); if(status != LRTP_OK) printf("O:lrtp_init err: %d\n", status); int res; -- cgit v1.2.3