diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index a04720edb..80d79f81a 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -569,10 +569,13 @@ static inline bool ResolutionValid(string res, int &cx, int &cy) return ConvertRes(cx, cy, res.c_str()); } +template +static bool CapsMatch(const VideoDevice &dev, F ... fs); + template static inline bool CapsMatch(const VideoInfo &info, F&& f, Fs ... fs) { - return f(info) && CapsMatch(info, f, fs ...); + return f(info) && CapsMatch(info, fs ...); } static inline bool CapsMatch(const VideoInfo&)