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

Unified Diff: media/formats/mp4/track_run_iterator.cc

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 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/formats/mp4/track_run_iterator.h ('k') | media/formats/mp4/track_run_iterator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/track_run_iterator.cc
diff --git a/media/formats/mp4/track_run_iterator.cc b/media/formats/mp4/track_run_iterator.cc
index 545e39ca1d518b146cdbc6b02136d9240e7f1d4a..25fc5ec5c7867409eff65f88bf5d68929caee9b8 100644
--- a/media/formats/mp4/track_run_iterator.cc
+++ b/media/formats/mp4/track_run_iterator.cc
@@ -94,8 +94,7 @@ DecodeTimestamp DecodeTimestampFromRational(int64_t numer, int64_t denom) {
TimeDeltaFromRational(numer, denom));
}
-TrackRunIterator::TrackRunIterator(const Movie* moov,
- const scoped_refptr<MediaLog>& media_log)
+TrackRunIterator::TrackRunIterator(const Movie* moov, MediaLog* media_log)
: moov_(moov), media_log_(media_log), sample_offset_(0) {
CHECK(moov);
}
@@ -117,7 +116,7 @@ static bool PopulateSampleInfo(const TrackExtends& trex,
SampleInfo* sample_info,
const SampleDependsOn sdtp_sample_depends_on,
bool is_audio,
- const scoped_refptr<MediaLog>& media_log) {
+ MediaLog* media_log) {
if (i < trun.sample_sizes.size()) {
sample_info->size = trun.sample_sizes[i];
} else if (tfhd.default_sample_size > 0) {
« no previous file with comments | « media/formats/mp4/track_run_iterator.h ('k') | media/formats/mp4/track_run_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698