Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: media/ffmpeg/ffmpeg_common.cc

Issue 2090323002: Make callers of FromUTC(Local)Exploded in media/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/formats/webm/webm_info_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/ffmpeg/ffmpeg_common.cc
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index dc8c652814e5e2da48e44677942250ee682c6223..bfa52a28a8a16d61a0bafc31d3198f9b61dea8f6 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -747,12 +747,8 @@ bool FFmpegUTCDateToTime(const char* date_utc, base::Time* out) {
base::StringToInt(time_fields[0], &exploded.hour) &&
base::StringToInt(time_fields[1], &exploded.minute) &&
base::StringToInt(time_fields[2], &exploded.second)) {
- base::Time parsed_time = base::Time::FromUTCExploded(exploded);
- if (parsed_time.is_null())
- return false;
-
- *out = parsed_time;
- return true;
+ if (base::Time::FromUTCExploded(exploded, out))
+ return true;
}
return false;
« no previous file with comments | « no previous file | media/formats/webm/webm_info_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698