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
Родитель e90fcbf7f7
Коммит 9823b29ee9
2 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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;