Index: content/common/media/media_stream_options.cc |
diff --git a/content/common/media/media_stream_options.cc b/content/common/media/media_stream_options.cc |
index c727b63718cd3b3ff6e6a2152ab9e5caa80fafa0..83add2a42de11266a7732f9d94809f88be23c5cf 100644 |
--- a/content/common/media/media_stream_options.cc |
+++ b/content/common/media/media_stream_options.cc |
@@ -42,13 +42,13 @@ bool GetFirstConstraintByName(const StreamOptions::Constraints& mandatory, |
std::string* value, |
bool* is_mandatory) { |
if (GetFirstConstraintByName(mandatory, name, value)) { |
- if (is_mandatory) |
- *is_mandatory = true; |
- return true; |
- } |
if (is_mandatory) |
- *is_mandatory = false; |
- return GetFirstConstraintByName(optional, name, value); |
+ *is_mandatory = true; |
+ return true; |
+ } |
+ if (is_mandatory) |
+ *is_mandatory = false; |
+ return GetFirstConstraintByName(optional, name, value); |
} |
} // namespace |