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

Unified Diff: media/filters/blocking_url_protocol.h

Issue 2710133003: Replace FFmpegDemuxer thread per element with base::TaskScheduler. (Closed)
Patch Set: Use base::TaskScheduler. Created 3 years, 10 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/blocking_url_protocol.h
diff --git a/media/filters/blocking_url_protocol.h b/media/filters/blocking_url_protocol.h
index 4f9ef4f3507490cf957186a8c937db5da498d42f..892b1d501ecaf7ecc85ed21bcc58728cbd316113 100644
--- a/media/filters/blocking_url_protocol.h
+++ b/media/filters/blocking_url_protocol.h
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/macros.h"
+#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
#include "media/filters/ffmpeg_glue.h"
@@ -44,8 +45,10 @@ class MEDIA_EXPORT BlockingUrlProtocol : public FFmpegURLProtocol {
// has completed.
void SignalReadCompleted(int size);
+ base::Lock data_source_lock_;
DataSource* data_source_;
base::Closure error_cb_;
+ const bool is_streaming_;
// Used to unblock the thread during shutdown and when reads complete.
base::WaitableEvent aborted_;

Powered by Google App Engine
This is Rietveld 408576698