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

Unified Diff: media/filters/ffmpeg_demuxer.cc

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR suggestions & fix style issues. Created 9 years, 11 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/ffmpeg_demuxer.cc
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index 7c4f763c19650319f2e4ca3fd82832b431f6ab91..8d5b840c78ff9a5992367a2e33bc13ae87d86a5d 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -239,12 +239,14 @@ base::TimeDelta FFmpegDemuxerStream::ConvertStreamTimestamp(
//
// FFmpegDemuxer
//
-FFmpegDemuxer::FFmpegDemuxer()
- : format_context_(NULL),
+FFmpegDemuxer::FFmpegDemuxer(MessageLoop* message_loop)
+ : message_loop_(message_loop),
+ format_context_(NULL),
read_event_(false, false),
read_has_failed_(false),
last_read_bytes_(0),
read_position_(0) {
+ DCHECK(message_loop_);
}
FFmpegDemuxer::~FFmpegDemuxer() {
@@ -391,6 +393,10 @@ bool FFmpegDemuxer::IsStreaming() {
return data_source_->IsStreaming();
}
+MessageLoop* FFmpegDemuxer::message_loop() {
+ return message_loop_;
+}
+
void FFmpegDemuxer::InitializeTask(DataSource* data_source,
FilterCallback* callback) {
DCHECK_EQ(MessageLoop::current(), message_loop());

Powered by Google App Engine
This is Rietveld 408576698