From f079bc9f7f3db80c4e014c82ef9d2ab75b9ed420 Mon Sep 17 00:00:00 2001 From: Martell Malone Date: Sat, 14 Feb 2015 19:14:27 +0000 Subject: [PATCH] win-dshow: Reorder CapsMatch for gcc --- plugins/win-dshow/win-dshow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index 8364b845c..65e33b877 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -578,6 +578,11 @@ static inline bool ResolutionValid(string res, int &cx, int &cy) return ConvertRes(cx, cy, res.c_str()); } +static inline bool CapsMatch(const VideoInfo&) +{ + return true; +} + template static bool CapsMatch(const VideoDevice &dev, F ... fs); @@ -587,11 +592,6 @@ static inline bool CapsMatch(const VideoInfo &info, F&& f, Fs ... fs) return f(info) && CapsMatch(info, fs ...); } -static inline bool CapsMatch(const VideoInfo&) -{ - return true; -} - template static bool CapsMatch(const VideoDevice &dev, F ... fs) {