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

Side by Side Diff: chromecast/renderer/media/demuxer_stream_adapter.cc

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address alokp@ comments Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/media/cma/filters/demuxer_stream_adapter.h" 5 #include "chromecast/renderer/media/demuxer_stream_adapter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" 10 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h"
11 #include "chromecast/media/cma/base/cma_logging.h" 11 #include "chromecast/media/cma/base/cma_logging.h"
12 #include "chromecast/media/cma/base/decoder_buffer_adapter.h" 12 #include "chromecast/media/cma/base/decoder_buffer_adapter.h"
13 #include "chromecast/media/cma/base/simple_media_task_runner.h" 13 #include "chromecast/media/cma/base/simple_media_task_runner.h"
14 #include "media/base/bind_to_current_loop.h" 14 #include "media/base/bind_to_current_loop.h"
15 #include "media/base/decoder_buffer.h" 15 #include "media/base/decoder_buffer.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Back to the default audio/video config: 167 // Back to the default audio/video config:
168 // an invalid audio/video config means there is no config update. 168 // an invalid audio/video config means there is no config update.
169 if (audio_config_.IsValidConfig()) 169 if (audio_config_.IsValidConfig())
170 audio_config_ = ::media::AudioDecoderConfig(); 170 audio_config_ = ::media::AudioDecoderConfig();
171 if (video_config_.IsValidConfig()) 171 if (video_config_.IsValidConfig())
172 video_config_ = ::media::VideoDecoderConfig(); 172 video_config_ = ::media::VideoDecoderConfig();
173 } 173 }
174 174
175 } // namespace media 175 } // namespace media
176 } // namespace chromecast 176 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/renderer/media/demuxer_stream_adapter.h ('k') | chromecast/renderer/media/demuxer_stream_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698