Bug 812572 - Make MediaDecoderReader a non-runnable; r=cpearce

This commit is contained in:
Ehsan Akhgari 2012-11-16 11:30:34 -08:00
parent 36eb539459
commit cf053c6208

View File

@ -353,11 +353,13 @@ private:
// done on the decode thread. Never hold the decoder monitor when
// calling into this class. Unless otherwise specified, methods and fields of
// this class can only be accessed on the decode thread.
class MediaDecoderReader : public nsRunnable {
class MediaDecoderReader {
public:
MediaDecoderReader(MediaDecoder* aDecoder);
virtual ~MediaDecoderReader();
NS_INLINE_DECL_REFCOUNTING(MediaDecoderReader);
// Initializes the reader, returns NS_OK on success, or NS_ERROR_FAILURE
// on failure.
virtual nsresult Init(MediaDecoderReader* aCloneDonor) = 0;