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

Side by Side Diff: media/filters/source_buffer.cc

Issue 10536014: Implement ISO BMFF support in Media Source. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "media/filters/source_buffer.h" 5 #include "media/filters/source_buffer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "media/webm/webm_stream_parser.h" 9 #include "media/webm/webm_stream_parser.h"
10 #include "media/mp4/mp4_stream_parser.h"
acolwell GONE FROM CHROMIUM 2012/06/06 17:32:39 Remove. Object not used in this file. Please remov
strobe_ 2012/06/07 16:33:54 Done.
10 11
11 namespace media { 12 namespace media {
12 13
13 SourceBuffer::SourceBuffer() {} 14 SourceBuffer::SourceBuffer() {}
14 15
15 SourceBuffer::~SourceBuffer() {} 16 SourceBuffer::~SourceBuffer() {}
16 17
17 void SourceBuffer::Init(scoped_ptr<StreamParser> parser, 18 void SourceBuffer::Init(scoped_ptr<StreamParser> parser,
18 const InitCB& init_cb, 19 const InitCB& init_cb,
19 const NewConfigCB& config_cb, 20 const NewConfigCB& config_cb,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 return video_cb_.Run(); 166 return video_cb_.Run();
166 } 167 }
167 168
168 bool SourceBuffer::OnKeyNeeded(scoped_array<uint8> init_data, 169 bool SourceBuffer::OnKeyNeeded(scoped_array<uint8> init_data,
169 int init_data_size) { 170 int init_data_size) {
170 return key_needed_cb_.Run(init_data.Pass(), init_data_size); 171 return key_needed_cb_.Run(init_data.Pass(), init_data_size);
171 } 172 }
172 173
173 } // namespace media 174 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698