Skip to content

Commit cd65948

Browse files
committed
remove static vars which are now inherited
1 parent 1f71a19 commit cd65948

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

jni/libmediaplayer/decoder_audio.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55

66
#define TAG "FFMpegAudioDecoder"
77

8-
static DecoderAudio* sInstance;
9-
108
DecoderAudio::DecoderAudio(AVCodecContext* codec_ctx,
119
struct DecoderAudioConfig* config)
1210
{
1311
mQueue = new PacketQueue();
1412
mCodecCtx = codec_ctx;
1513
mConfig = config;
16-
sInstance = this;
1714
}
1815

1916
DecoderAudio::~DecoderAudio()

jni/libmediaplayer/decoder_video.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33

44
#define TAG "FFMpegVideoDecoder"
55

6-
static DecoderVideo* sInstance;
7-
86
DecoderVideo::DecoderVideo(AVCodecContext* codec_ctx)
97
{
108
mQueue = new PacketQueue();
119
mCodecCtx = codec_ctx;
12-
sInstance = this;
1310
}
1411

1512
DecoderVideo::~DecoderVideo()

0 commit comments

Comments
 (0)