Commit d50c006
authored
Fix NullPointerException (#134)
* Fix NullPointerException
https://github.com/natario1/Transcoder/issues/133
Fix NullPointerException with ClipDataSource(FilePathDataSource())
Exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.media.MediaMetadataRetriever.extractMetadata(int)' on a null object reference
at com.otaliastudios.transcoder.source.DefaultDataSource.getDurationUs(DefaultDataSource.java:276)
at com.otaliastudios.transcoder.source.ClipDataSource.getSourceDurationUs(ClipDataSource.java:23)
at com.otaliastudios.transcoder.source.ClipDataSource.(ClipDataSource.java:18)
* Fix 0 duration audio output issue.
https://github.com/natario1/Transcoder/issues/1351 parent 9de11dc commit d50c006
File tree
2 files changed
+7
-0
lines changed- lib/src/main/java/com/otaliastudios/transcoder/source
2 files changed
+7
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments