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

Unified Diff: media/filters/test_video_decoder.h

Issue 42635: Lots of files touched for a very simple change. Everywhere we used a const M... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « media/filters/null_audio_renderer.cc ('k') | media/filters/test_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/test_video_decoder.h
===================================================================
--- media/filters/test_video_decoder.h (revision 12568)
+++ media/filters/test_video_decoder.h (working copy)
@@ -25,13 +25,13 @@
}
bool OnInitialize(DemuxerStream* demuxer_stream) {
- const MediaFormat* media_format = demuxer_stream->GetMediaFormat();
+ const MediaFormat& media_format = demuxer_stream->media_format();
std::string mime_type;
int width, height;
- if (media_format->GetAsString(MediaFormat::kMimeType, &mime_type) &&
+ if (media_format.GetAsString(MediaFormat::kMimeType, &mime_type) &&
mime_type.compare(mime_type::kH264AnnexB) == 0 &&
- media_format->GetAsInteger(MediaFormat::kWidth, &width) &&
- media_format->GetAsInteger(MediaFormat::kHeight, &height)) {
+ media_format.GetAsInteger(MediaFormat::kWidth, &width) &&
+ media_format.GetAsInteger(MediaFormat::kHeight, &height)) {
video_width_ = width;
video_height_ = height;
media_format_.SetAsString(MediaFormat::kMimeType,
@@ -59,9 +59,9 @@
}
}
- static bool IsMediaFormatSupported(const MediaFormat* media_format) {
+ static bool IsMediaFormatSupported(const MediaFormat& media_format) {
std::string mime_type;
- return (media_format->GetAsString(MediaFormat::kMimeType, &mime_type) &&
+ return (media_format.GetAsString(MediaFormat::kMimeType, &mime_type) &&
mime_type == mime_type::kH264AnnexB);
}
« no previous file with comments | « media/filters/null_audio_renderer.cc ('k') | media/filters/test_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698