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

Unified Diff: Source/modules/mediasource/MediaSource.cpp

Issue 1283573002: Do the codec string parsing for MSE in media, instead of Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/modules/mediasource/MediaSource.h ('k') | Source/platform/ContentType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/MediaSource.cpp
diff --git a/Source/modules/mediasource/MediaSource.cpp b/Source/modules/mediasource/MediaSource.cpp
index d1185fafb980ec2395d032b71779407611e4d92f..1cdd99e100834026fb2a287e906edaa27493040c 100644
--- a/Source/modules/mediasource/MediaSource.cpp
+++ b/Source/modules/mediasource/MediaSource.cpp
@@ -141,7 +141,7 @@ SourceBuffer* MediaSource::addSourceBuffer(const String& type, ExceptionState& e
// 5. Create a new SourceBuffer object and associated resources.
ContentType contentType(type);
- Vector<String> codecs = contentType.codecs();
+ String codecs = contentType.parameter("codecs");
OwnPtr<WebSourceBuffer> webSourceBuffer = createWebSourceBuffer(contentType.type(), codecs, exceptionState);
if (!webSourceBuffer) {
@@ -561,7 +561,7 @@ void MediaSource::stop()
m_webMediaSource.clear();
}
-PassOwnPtr<WebSourceBuffer> MediaSource::createWebSourceBuffer(const String& type, const Vector<String>& codecs, ExceptionState& exceptionState)
+PassOwnPtr<WebSourceBuffer> MediaSource::createWebSourceBuffer(const String& type, const String& codecs, ExceptionState& exceptionState)
{
WebSourceBuffer* webSourceBuffer = 0;
« no previous file with comments | « Source/modules/mediasource/MediaSource.h ('k') | Source/platform/ContentType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698