From 1bd730bebc79d0aa42f6f77b3788d5db0b10bbb6 Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Sun, 27 Nov 2016 08:14:01 +0100 Subject: VideoPlayer: rtmp fixes --- xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp index 3b3a10ded1..3540a8f0c8 100644 --- a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp +++ b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp @@ -766,11 +766,15 @@ AVDictionary *CDVDDemuxFFmpeg::GetFFMpegOptionsFromInput() { static const std::map optionmap = {{{"SWFPlayer", "rtmp_swfurl"}, + {"swfplayer", "rtmp_swfurl"}, {"PageURL", "rtmp_pageurl"}, + {"pageurl", "rtmp_pageurl"}, {"PlayPath", "rtmp_playpath"}, + {"playpath", "rtmp_playpath"}, {"TcUrl", "rtmp_tcurl"}, + {"tcurl", "rtmp_tcurl"}, {"IsLive", "rtmp_live"}, - {"playpath", "rtmp_playpath"}, + {"islive", "rtmp_live"}, {"swfurl", "rtmp_swfurl"}, {"swfvfy", "rtmp_swfverify"}, }}; @@ -792,7 +796,8 @@ AVDictionary *CDVDDemuxFFmpeg::GetFFMpegOptionsFromInput() bool swfvfy=false; for (size_t i = 1; i < opts.size(); ++i) { - std::vector value = StringUtils::Split(opts[i], "="); + std::vector value = StringUtils::Split(opts[i], "=", 2); + StringUtils::ToLower(value[0]); auto it = optionmap.find(value[0]); if (it != optionmap.end()) { -- cgit v1.2.3