File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
lib/src/main/java/com/otaliastudios/transcoder/source Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public void initialize() {
3838 } catch (IOException e ) {
3939 throw new RuntimeException (e );
4040 }
41+ super .initialize ();
4142 }
4243
4344 @ Override
@@ -46,6 +47,7 @@ public void deinitialize() {
4647 // This means that we must also recreate the underlying source.
4748 mDescriptorSource .deinitialize ();
4849 try { mStream .close (); } catch (IOException ignore ) { }
50+ super .deinitialize ();
4951 }
5052
5153 @ Override
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ public void initialize() {
6565 public long getDurationUs () {
6666 return trimDurationUs + extraDurationUs ;
6767 }
68+
69+ @ Override
70+ public long getPositionUs () {
71+ return super .getPositionUs () - trimStartUs ;
72+ }
6873
6974 @ Override
7075 public boolean canReadTrack (@ NonNull TrackType type ) {
You can’t perform that action at this time.
0 commit comments