Bug 973710 - Fix compile errors for pedantic SOB compilers and WAE. r=bustage
authorChris Pearce <cpearce@mozilla.com>
Thu, 17 Jul 2014 10:47:50 +1200
changeset 216440 df330e73a20d72b49867a2b209b3dbd3ecc7b8d0
parent 216439 a59633595bcc42948f5eb00351eae0bd48239197
child 216441 fbd06fa70b84eae689346767aed8e7ff43afb241
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs973710
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 973710 - Fix compile errors for pedantic SOB compilers and WAE. r=bustage
content/media/fmp4/MP4Reader.cpp
--- a/content/media/fmp4/MP4Reader.cpp
+++ b/content/media/fmp4/MP4Reader.cpp
@@ -34,29 +34,31 @@ PRLogModuleInfo* GetDemuxerLog() {
 
 using namespace mp4_demuxer;
 
 namespace mozilla {
 
 // Uncomment to enable verbose per-sample logging.
 //#define LOG_SAMPLE_DECODE 1
 
+#ifdef PR_LOGGING
 static const char*
 TrackTypeToStr(TrackType aTrack)
 {
   MOZ_ASSERT(aTrack == kAudio || aTrack == kVideo);
   switch (aTrack) {
   case kAudio:
     return "Audio";
   case kVideo:
     return "Video";
   default:
     return "Unknown";
   }
 }
+#endif
 
 class MP4Stream : public Stream {
 public:
 
   MP4Stream(MediaResource* aResource)
     : mResource(aResource)
   {
     MOZ_COUNT_CTOR(MP4Stream);