diff options
Diffstat (limited to 'media/capture/video/win/capability_list_win.cc')
-rw-r--r-- | media/capture/video/win/capability_list_win.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/capture/video/win/capability_list_win.cc b/media/capture/video/win/capability_list_win.cc index db6e986..32cbb61 100644 --- a/media/capture/video/win/capability_list_win.cc +++ b/media/capture/video/win/capability_list_win.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "media/base/video_capture_types.h" #include "media/capture/video/win/capability_list_win.h" #include <algorithm> @@ -36,7 +37,8 @@ static bool CompareCapability(const VideoCaptureFormat& requested, if (diff_fps_lhs != diff_fps_rhs) return diff_fps_lhs < diff_fps_rhs; - return lhs.pixel_format < rhs.pixel_format; + return VideoCaptureFormat::ComparePixelFormatPreference(lhs.pixel_format, + rhs.pixel_format); } const CapabilityWin& GetBestMatchedCapability( |