Permalink
Browse files

Fix up two more regressions from trunk.

  • Loading branch information...
joneschrisg committed May 22, 2012
1 parent e93b537 commit f9b2165a3fcb1811180b287f3dfe2ddb2d4ea8b2
Showing with 2 additions and 1 deletion.
  1. +1 −1 content/media/plugins/nsMediaPluginReader.cpp
  2. +1 −0 content/media/plugins/nsMediaPluginReader.h
@@ -287,7 +287,7 @@ bool nsMediaPluginReader::DecodeAudioData()
PRUint32 frames = frame.mSize / (2 * frame.mAudioChannels);
CheckedInt64 duration = FramesToUsecs(frames, frame.mAudioSampleRate);
- if (!duration.valid()) {
+ if (!duration.isValid()) {
return NS_ERROR_FAILURE;
}
@@ -79,6 +79,7 @@ class nsMediaPluginReader : public nsBuiltinDecoderReader
virtual nsresult ReadMetadata(nsVideoInfo* aInfo);
virtual nsresult Seek(PRInt64 aTime, PRInt64 aStartTime, PRInt64 aEndTime, PRInt64 aCurrentTime);
virtual nsresult GetBuffered(nsTimeRanges* aBuffered, PRInt64 aStartTime);
+ virtual bool IsSeekableInBufferedRanges() { return false; }
};
#endif

0 comments on commit f9b2165

Please sign in to comment.