Index: media/filters/ffmpeg_demuxer.cc |
=================================================================== |
--- media/filters/ffmpeg_demuxer.cc (revision 105911) |
+++ media/filters/ffmpeg_demuxer.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "base/stl_util.h" |
#include "base/string_util.h" |
#include "base/time.h" |
+#include "media/base/data_buffer.h" |
#include "media/base/filter_host.h" |
#include "media/base/limits.h" |
#include "media/base/media_switches.h" |
@@ -137,6 +138,10 @@ |
DCHECK_EQ(MessageLoop::current(), demuxer_->message_loop()); |
base::AutoLock auto_lock(lock_); |
buffer_queue_.clear(); |
+ for (ReadQueue::iterator it = read_queue_.begin(); |
+ it != read_queue_.end(); ++it) { |
+ it->Run(new DataBuffer(0)); |
+ } |
read_queue_.clear(); |
stopped_ = true; |
} |
@@ -471,7 +476,7 @@ |
AVStream* stream = format_context_->streams[i]; |
// WebM is currently strictly VP8 and Vorbis. |
if (kDemuxerIsWebm && (stream->codec->codec_id != CODEC_ID_VP8 && |
- stream->codec->codec_id != CODEC_ID_VORBIS)) { |
+ stream->codec->codec_id != CODEC_ID_VORBIS)) { |
packet_streams_.push_back(NULL); |
continue; |
} |
@@ -485,7 +490,7 @@ |
if (stream->first_dts != static_cast<int64_t>(AV_NOPTS_VALUE)) { |
const base::TimeDelta first_dts = ConvertFromTimeBase( |
- stream->time_base, stream->first_dts); |
+ stream->time_base, stream->first_dts); |
if (start_time_ == kNoTimestamp || first_dts < start_time_) |
start_time_ = first_dts; |
} |