Bug 822933 - Properly check if a WebM file has cues. r=kinetik
authorPaul Adenot <paul@paul.cx>
Sun, 23 Dec 2012 16:51:17 +0100
changeset 119267 5f0038a234024b016113869402f4124a087c67c3
parent 119266 4e7e543d21b15e8bbc41e6f93cca6e409bfb677c
child 119268 4317e42ac8078bbaa2a7de0d423973ce84e7aa11
push id24195
push userMs2ger@gmail.com
push dateSat, 19 Jan 2013 16:10:11 +0000
treeherdermozilla-central@02e12a80aef9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs822933
milestone21.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 822933 - Properly check if a WebM file has cues. r=kinetik
content/media/webm/WebMReader.cpp
--- a/content/media/webm/WebMReader.cpp
+++ b/content/media/webm/WebMReader.cpp
@@ -462,21 +462,17 @@ nsresult WebMReader::ReadMetadata(VideoI
       } else {
         clusterNum++;
       }
     } while (!done);
   }
 #endif
 
   // We can't seek in buffered regions if we have no cues.
-  bool haveCues;
-  int64_t dummy = -1;
-  haveCues = nestegg_get_cue_point(mContext, 0, -1, &dummy, &dummy,
-                                   (uint64_t*)&dummy) == 0;
-  mDecoder->SetMediaSeekable(haveCues);
+  mDecoder->SetMediaSeekable(nestegg_has_cues(mContext) == 1);
 
   *aInfo = mInfo;
 
   *aTags = nullptr;
 
 #ifdef MOZ_DASH
   mDecoder->OnReadMetadataCompleted();
 #endif