From 51245615c0c96dbfc881f27f319c29abc4d38248 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 17 May 2019 22:29:19 +0200 Subject: [PATCH] streamts: supplement to 086578fdb2a0133953b98171106699e8b04da8ea Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d6ba59a7a2bc0d9368f47ca7b5cc6f3048de5f3e Author: Jacek Jendrzej Date: 2019-05-17 (Fri, 17 May 2019) --- src/driver/streamts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/streamts.cpp b/src/driver/streamts.cpp index 19608c9b9..43b6dc3dd 100644 --- a/src/driver/streamts.cpp +++ b/src/driver/streamts.cpp @@ -861,7 +861,7 @@ bool CStreamStream::Open() snprintf(ifcx->filename, sizeof(ifcx->filename), "%s", channel->getUrl().c_str()); av_dump_format(ifcx, 0, ifcx->filename, 0); #else - snprintf(ifcx->url, channel->getUrl().size() + 1, "%s", channel->getUrl().c_str()); + ifcx->url = av_strdup(!channel->getUrl().empty() ? channel->getUrl().c_str() : ""); av_dump_format(ifcx, 0, ifcx->url, 0); #endif