mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
65c017e3db
commit
5b4403e770
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user