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

Unified Diff: media/filters/chunk_demuxer.cc

Issue 17408005: Refactored DecoderBuffer to use unix_hacker_style naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@localrefactor
Patch Set: Created 7 years, 5 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/audio_file_reader_unittest.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.cc
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc
index be5d45cbe70ef11fd162ae5984ee8b231f6fdfe1..3a339039d2a851160448288091627792404a475b 100644
--- a/media/filters/chunk_demuxer.cc
+++ b/media/filters/chunk_demuxer.cc
@@ -280,7 +280,7 @@ void SourceState::AdjustBufferTimestamps(
itr != buffers.end(); ++itr) {
(*itr)->SetDecodeTimestamp(
(*itr)->GetDecodeTimestamp() + timestamp_offset_);
- (*itr)->SetTimestamp((*itr)->GetTimestamp() + timestamp_offset_);
+ (*itr)->set_timestamp((*itr)->timestamp() + timestamp_offset_);
}
}
@@ -385,7 +385,7 @@ bool SourceState::OnBuffers(DemuxerStream::Type type,
if (!stream->Append(buffers))
return false;
- increase_duration_cb_.Run(buffers.back()->GetTimestamp(), stream);
+ increase_duration_cb_.Run(buffers.back()->timestamp(), stream);
return true;
}
@@ -1206,13 +1206,13 @@ bool ChunkDemuxer::OnTextBuffers(
for (StreamParser::BufferQueue::const_iterator itr = buffers.begin();
itr != buffers.end(); ++itr) {
const StreamParserBuffer* const buffer = itr->get();
- const TimeDelta start = buffer->GetTimestamp();
- const TimeDelta end = start + buffer->GetDuration();
+ const TimeDelta start = buffer->timestamp();
+ const TimeDelta end = start + buffer->duration();
std::string id, settings, content;
- WebMWebVTTParser::Parse(buffer->GetData(),
- buffer->GetDataSize(),
+ WebMWebVTTParser::Parse(buffer->data(),
+ buffer->data_size(),
&id, &settings, &content);
text_track->addWebVTTCue(start, end, id, content, settings);
« no previous file with comments | « media/filters/audio_file_reader_unittest.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698