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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 23072043: Change NeedKeyCB to use std::vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix seek_tester, demuxer_bench, and player_x11 Created 7 years, 4 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/chunk_demuxer_unittest.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 92b3eab8316d76bb350e3e1a6f66545e0fd7c6be..7304beab2446aea9cf12b3e6538d1f35c5332fcd 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -44,14 +44,6 @@ struct AVStream;
namespace media {
-// A new potentially encrypted stream has been parsed.
-// First parameter - The type of initialization data.
-// Second parameter - The initialization data associated with the stream.
-// Third parameter - Number of bytes of the initialization data.
-typedef base::Callback<void(const std::string& type,
- scoped_ptr<uint8[]> init_data,
- int init_data_size)> FFmpegNeedKeyCB;
-
class MediaLog;
class FFmpegDemuxer;
class FFmpegGlue;
@@ -138,7 +130,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
public:
FFmpegDemuxer(const scoped_refptr<base::MessageLoopProxy>& message_loop,
DataSource* data_source,
- const FFmpegNeedKeyCB& need_key_cb,
+ const NeedKeyCB& need_key_cb,
const scoped_refptr<MediaLog>& media_log);
virtual ~FFmpegDemuxer();
@@ -250,7 +242,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
BlockingUrlProtocol url_protocol_;
scoped_ptr<FFmpegGlue> glue_;
- const FFmpegNeedKeyCB need_key_cb_;
+ const NeedKeyCB need_key_cb_;
DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
};
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698