Bug 1137151: Remove ref-counting from |OMXVideoEncoder| r=sotaro

Reference counting in |OMXVideoEncoder| is used inconsistently any actually
not necessary. This patch removed the code. Users are converted to auto
pointers.
This commit is contained in:
Thomas Zimmermann 2015-03-10 13:44:01 +01:00
parent 65c017e3db
commit 5b4403e770
2 changed files with 1 additions and 2 deletions

View File

@ -278,7 +278,6 @@ private:
*/
class OMXVideoEncoder MOZ_FINAL : public OMXCodecWrapper
{
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(OMXVideoEncoder)
public:
// Types of output blob format.
enum BlobFormat {

View File

@ -56,7 +56,7 @@ public:
virtual int32_t SetRates(uint32_t aBitRate, uint32_t aFrameRate) MOZ_OVERRIDE;
private:
RefPtr<android::OMXVideoEncoder> mOMX;
nsAutoPtr<android::OMXVideoEncoder> mOMX;
android::sp<android::OMXCodecReservation> mReservation;
webrtc::EncodedImageCallback* mCallback;