Commit 024aff67 authored by Jean-Yves Avenard's avatar Jean-Yves Avenard
Browse files

Bug 1189138: P2. Add useful debugging information to logs. r=cpearce

parent fa43517c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1195,8 +1195,9 @@ MediaFormatReader::ResetDecode()
void
MediaFormatReader::Output(TrackType aTrack, MediaData* aSample)
{
  LOGV("Decoded %s sample time=%lld dur=%lld",
       TrackTypeToStr(aTrack), aSample->mTime, aSample->mDuration);
  LOGV("Decoded %s sample time=%lld timecode=%lld kf=%d dur=%lld",
       TrackTypeToStr(aTrack), aSample->mTime, aSample->mTimecode,
       aSample->mKeyframe, aSample->mDuration);

  if (!aSample) {
    NS_WARNING("MediaFormatReader::Output() passed a null sample");