File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/com/otaliastudios/transcoder/transcode/internal Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ dependencies {
33
33
androidTestImplementation ' androidx.test.ext:junit:1.1.1'
34
34
androidTestImplementation ' org.mockito:mockito-android:2.28.2'
35
35
36
- api ' com.otaliastudios.opengl:egloo:0.2.3 '
36
+ api ' com.otaliastudios.opengl:egloo:0.4.0 '
37
37
api " androidx.annotation:annotation:1.1.0"
38
38
}
39
39
Original file line number Diff line number Diff line change 10
10
11
11
import com .otaliastudios .opengl .draw .GlRect ;
12
12
import com .otaliastudios .opengl .program .GlTextureProgram ;
13
+ import com .otaliastudios .opengl .texture .GlTexture ;
13
14
import com .otaliastudios .transcoder .internal .Logger ;
14
15
15
16
/**
@@ -50,14 +51,16 @@ public class VideoDecoderOutput {
50
51
* new one). Creates a Surface that can be passed to MediaCodec.configure().
51
52
*/
52
53
public VideoDecoderOutput () {
54
+ GlTexture texture = new GlTexture ();
53
55
mProgram = new GlTextureProgram ();
56
+ mProgram .setTexture (texture );
54
57
mDrawable = new GlRect ();
55
58
56
59
// Even if we don't access the SurfaceTexture after the constructor returns, we
57
60
// still need to keep a reference to it. The Surface doesn't retain a reference
58
61
// at the Java level, so if we don't either then the object can get GCed, which
59
62
// causes the native finalizer to run.
60
- mSurfaceTexture = new SurfaceTexture (mProgram . getTextureId ());
63
+ mSurfaceTexture = new SurfaceTexture (texture . getId ());
61
64
mSurfaceTexture .setOnFrameAvailableListener (new SurfaceTexture .OnFrameAvailableListener () {
62
65
@ Override
63
66
public void onFrameAvailable (SurfaceTexture surfaceTexture ) {
You can’t perform that action at this time.
0 commit comments