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

Side by Side Diff: content/renderer/media/webmediasource_impl.cc

Issue 134883002: Let WebSourceBufferImpl::setMode() update SourceState::sequence_mode_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/websourcebuffer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webmediasource_impl.h" 5 #include "content/renderer/media/webmediasource_impl.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "content/renderer/media/websourcebuffer_impl.h" 8 #include "content/renderer/media/websourcebuffer_impl.h"
9 #include "media/filters/chunk_demuxer.h" 9 #include "media/filters/chunk_demuxer.h"
10 #include "third_party/WebKit/public/platform/WebCString.h" 10 #include "third_party/WebKit/public/platform/WebCString.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 switch (status) { 67 switch (status) {
68 case WebMediaSource::EndOfStreamStatusNoError: 68 case WebMediaSource::EndOfStreamStatusNoError:
69 break; 69 break;
70 case WebMediaSource::EndOfStreamStatusNetworkError: 70 case WebMediaSource::EndOfStreamStatusNetworkError:
71 pipeline_status = media::PIPELINE_ERROR_NETWORK; 71 pipeline_status = media::PIPELINE_ERROR_NETWORK;
72 break; 72 break;
73 case WebMediaSource::EndOfStreamStatusDecodeError: 73 case WebMediaSource::EndOfStreamStatusDecodeError:
74 pipeline_status = media::PIPELINE_ERROR_DECODE; 74 pipeline_status = media::PIPELINE_ERROR_DECODE;
75 break; 75 break;
76 default:
77 NOTIMPLEMENTED();
78 } 76 }
79 77
80 demuxer_->MarkEndOfStream(pipeline_status); 78 demuxer_->MarkEndOfStream(pipeline_status);
81 } 79 }
82 80
83 void WebMediaSourceImpl::unmarkEndOfStream() { 81 void WebMediaSourceImpl::unmarkEndOfStream() {
84 demuxer_->UnmarkEndOfStream(); 82 demuxer_->UnmarkEndOfStream();
85 } 83 }
86 84
87 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/websourcebuffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698