From eb00181c5220deb7c00a92a0f6ca7c284a4ac1a0 Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 8 Jun 2013 08:38:12 +0200 Subject: [PATCH] ytparser: prefer 720p (due to 1080p playback problems with ffmpeg/eplayer3/spark, and I'm not even sure which of those is at fault) --- src/system/ytparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 012684e77..7e1b87550 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -67,11 +67,11 @@ std::string cYTVideoInfo::GetUrl(int fmt) return it->second.GetUrl(); return ""; } - if ((it = formats.find(37)) != formats.end()) + if ((it = formats.find(22)) != formats.end()) // 720p return it->second.GetUrl(); - if ((it = formats.find(22)) != formats.end()) + if ((it = formats.find(37)) != formats.end()) // 1080p return it->second.GetUrl(); - if ((it = formats.find(18)) != formats.end()) + if ((it = formats.find(18)) != formats.end()) // 270p/360p return it->second.GetUrl(); return ""; }