File tree 2 files changed +7
-0
lines changed
lib/src/main/java/com/otaliastudios/transcoder/source
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public void initialize() {
38
38
} catch (IOException e ) {
39
39
throw new RuntimeException (e );
40
40
}
41
+ super .initialize ();
41
42
}
42
43
43
44
@ Override
@@ -46,6 +47,7 @@ public void deinitialize() {
46
47
// This means that we must also recreate the underlying source.
47
48
mDescriptorSource .deinitialize ();
48
49
try { mStream .close (); } catch (IOException ignore ) { }
50
+ super .deinitialize ();
49
51
}
50
52
51
53
@ Override
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ public void initialize() {
65
65
public long getDurationUs () {
66
66
return trimDurationUs + extraDurationUs ;
67
67
}
68
+
69
+ @ Override
70
+ public long getPositionUs () {
71
+ return super .getPositionUs () - trimStartUs ;
72
+ }
68
73
69
74
@ Override
70
75
public boolean canReadTrack (@ NonNull TrackType type ) {
You can’t perform that action at this time.
0 commit comments