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

Unified Diff: media/filters/decrypting_video_decoder.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
Index: media/filters/decrypting_video_decoder.cc
diff --git a/media/filters/decrypting_video_decoder.cc b/media/filters/decrypting_video_decoder.cc
index 1e1425ebc6cf077eeec847856956f7c85f7dee40..3606c99ca0e50239b8d97ca8f99d510398d77a65 100644
--- a/media/filters/decrypting_video_decoder.cc
+++ b/media/filters/decrypting_video_decoder.cc
@@ -214,8 +214,8 @@ void DecryptingVideoDecoder::DecodePendingBuffer() {
"eme", "DecryptingVideoDecoder::DecodePendingBuffer", ++trace_id_);
int buffer_size = 0;
- if (!pending_buffer_to_decode_->IsEndOfStream()) {
- buffer_size = pending_buffer_to_decode_->GetDataSize();
+ if (!pending_buffer_to_decode_->end_of_stream()) {
+ buffer_size = pending_buffer_to_decode_->data_size();
}
decryptor_->DecryptAndDecodeVideo(
@@ -279,7 +279,7 @@ void DecryptingVideoDecoder::DeliverFrame(
if (status == Decryptor::kNeedMoreData) {
DVLOG(2) << "DeliverFrame() - kNeedMoreData";
- if (scoped_pending_buffer_to_decode->IsEndOfStream()) {
+ if (scoped_pending_buffer_to_decode->end_of_stream()) {
state_ = kDecodeFinished;
base::ResetAndReturn(&read_cb_).Run(
kOk, media::VideoFrame::CreateEmptyFrame());
« no previous file with comments | « media/filters/decrypting_demuxer_stream_unittest.cc ('k') | media/filters/decrypting_video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698