Chromium Code Reviews| Index: Source/modules/mediarecorder/MediaRecorder.cpp |
| diff --git a/Source/modules/mediarecorder/MediaRecorder.cpp b/Source/modules/mediarecorder/MediaRecorder.cpp |
| index 7294c82e74d4b4e9dc8c7e0c627299fa0b094176..e45f99f41a2d9e1a120100d2bc1f4fd616ce0bb0 100644 |
| --- a/Source/modules/mediarecorder/MediaRecorder.cpp |
| +++ b/Source/modules/mediarecorder/MediaRecorder.cpp |
| @@ -10,6 +10,7 @@ |
| #include "modules/EventModules.h" |
| #include "modules/EventTargetModules.h" |
| #include "modules/mediarecorder/MediaRecorderErrorEvent.h" |
| +#include "platform/Logging.h" |
| #include "platform/blob/BlobData.h" |
| #include "public/platform/Platform.h" |
| #include "public/platform/WebMediaStream.h" |
| @@ -204,9 +205,7 @@ void MediaRecorder::stop() |
| void MediaRecorder::writeData(const char* data, size_t length, bool lastInSlice) |
| { |
| - ASSERT(m_state == State::Recording); |
| - |
| - if (m_stopped) { |
| + if (!lastInSlice && m_stopped) { |
| m_stopped = false; |
| scheduleDispatchEvent(Event::create(EventTypeNames::start)); |
| } |
| @@ -249,7 +248,7 @@ void MediaRecorder::failOtherRecordingError(const WebString& message) |
| void MediaRecorder::createBlobEvent(PassOwnPtr<BlobData> blobData) |
| { |
| // TODO(mcasas): Launch a BlobEvent when that class is landed, but also see https://github.com/w3c/mediacapture-record/issues/17. |
| - ASSERT_NOT_REACHED(); |
| + WTF_LOG(Media, "createBlobEvent() not implemented."); |
|
Peter Beverloo
2015/09/16 15:09:01
You could use notImplemented() from Source/platfor
mcasas
2015/09/16 18:04:15
Done, thanks!
|
| } |
| void MediaRecorder::stopRecording() |