Fix compilation errors by clang for mpd_builder target

Change-Id: I7c6f09714a4005267469bebf4b9783466883236f
This commit is contained in:
Rintaro Kuroiwa 2014-01-16 00:12:14 -08:00
parent efa270963e
commit 72deea3493
4 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#include "mpd/base/content_protection_element.h"
namespace dash_packager {
ContentProtectionElement::ContentProtectionElement() {}
ContentProtectionElement::~ContentProtectionElement() {}
} // namespace dash_packager

View File

@ -12,6 +12,9 @@
namespace dash_packager {
struct ContentProtectionElement {
ContentProtectionElement();
~ContentProtectionElement();
std::string value; // Will be set for 'value' attribute.
std::string scheme_id_uri; // Will be set for 'schemeIdUri' attribute.

View File

@ -290,7 +290,7 @@ bool Representation::Init() {
return false;
}
if (!media_info_.container_type() == MediaInfo::CONTAINER_UNKNOWN) {
if (media_info_.container_type() == MediaInfo::CONTAINER_UNKNOWN) {
// TODO(rkuroiwa): This might not be the right behavior. Maybe somehow
// infer from something else like media file name?
LOG(ERROR) << "'container_type' in MediaInfo cannot be CONTAINER_UNKNOWN.";

View File

@ -30,6 +30,7 @@
'target_name': 'mpd_builder',
'type': 'static_library',
'sources': [
'base/content_protection_element.cc',
'base/content_protection_element.h',
'base/mpd_builder.cc',
'base/mpd_builder.h',