Index: media/filters/ffmpeg_video_decoder.cc |
=================================================================== |
--- media/filters/ffmpeg_video_decoder.cc (revision 105911) |
+++ media/filters/ffmpeg_video_decoder.cc (working copy) |
@@ -270,10 +270,13 @@ |
void FFmpegVideoDecoder::ProduceVideoFrame( |
scoped_refptr<VideoFrame> video_frame) { |
if (MessageLoop::current() != message_loop_) { |
- message_loop_->PostTask( |
- FROM_HERE, |
- NewRunnableMethod(this, |
- &FFmpegVideoDecoder::ProduceVideoFrame, video_frame)); |
+ if (state_ != kStopped) { |
+ message_loop_->PostTask( |
+ FROM_HERE, |
+ NewRunnableMethod(this, |
+ &FFmpegVideoDecoder::ProduceVideoFrame, |
+ video_frame)); |
+ } |
return; |
} |