summaryrefslogtreecommitdiffstats
path: root/media/video
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:32:21 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:32:21 +0000
commita1f8c1673d5a7873769b66356c0d2f2308213dda (patch)
treef4e871590fa4f851db3d480d5bfe9cc9f21fe467 /media/video
parentff19af783cc8f2bb6adb7adee5cb6a23f4e0115f (diff)
downloadchromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.zip
chromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.tar.gz
chromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.tar.bz2
Cleanup: avoid foo ? true : false, part 1.
Review URL: https://chromiumcodereview.appspot.com/10939010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/video')
-rw-r--r--media/video/capture/win/video_capture_device_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/video/capture/win/video_capture_device_win.cc b/media/video/capture/win/video_capture_device_win.cc
index 05d5b43..5a587b5 100644
--- a/media/video/capture/win/video_capture_device_win.cc
+++ b/media/video/capture/win/video_capture_device_win.cc
@@ -87,7 +87,7 @@ bool PinMatchesCategory(IPin* pin, REFGUID category) {
hr = ks_property->Get(AMPROPSETID_Pin, AMPROPERTY_PIN_CATEGORY, NULL, 0,
&pin_category, sizeof(pin_category), &return_value);
if (SUCCEEDED(hr) && (return_value == sizeof(pin_category))) {
- found = (pin_category == category) ? true : false;
+ found = (pin_category == category);
}
}
return found;