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

Side by Side Diff: components/cdm/browser/widevine_drm_delegate_android.cc

Issue 1828153002: media: Fix typo in USE_PROPRIETARY_CODECS check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/cdm/browser/widevine_drm_delegate_android.h" 5 #include "components/cdm/browser/widevine_drm_delegate_android.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "media/cdm/cenc_utils.h" 8 #include "media/cdm/cenc_utils.h"
9 9
10 namespace cdm { 10 namespace cdm {
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 bool WidevineDrmDelegateAndroid::OnCreateSession( 31 bool WidevineDrmDelegateAndroid::OnCreateSession(
32 const media::EmeInitDataType init_data_type, 32 const media::EmeInitDataType init_data_type,
33 const std::vector<uint8_t>& init_data, 33 const std::vector<uint8_t>& init_data,
34 std::vector<uint8_t>* init_data_out, 34 std::vector<uint8_t>* init_data_out,
35 std::vector<std::string>* /* optional_parameters_out */) { 35 std::vector<std::string>* /* optional_parameters_out */) {
36 if (init_data_type != media::EmeInitDataType::CENC) 36 if (init_data_type != media::EmeInitDataType::CENC)
37 return true; 37 return true;
38 38
39 #if defined(PROPRIETARY_CODECS) 39 #if defined(USE_PROPRIETARY_CODECS)
40 // Widevine MediaDrm plugin only accepts the "data" part of the PSSH box as 40 // Widevine MediaDrm plugin only accepts the "data" part of the PSSH box as
41 // the init data when using MP4 container. 41 // the init data when using MP4 container.
42 return media::GetPsshData(init_data, GetUUID(), init_data_out); 42 return media::GetPsshData(init_data, GetUUID(), init_data_out);
43 #else 43 #else
44 return false; 44 return false;
45 #endif 45 #endif
46 } 46 }
47 47
48 } // namespace cdm 48 } // namespace cdm
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698