Commit 47b32594 by kimvde Committed by christosts

Add error message if track is added during transformation

PiperOrigin-RevId: 505670386
parent 4a66ad5d
...@@ -153,7 +153,9 @@ import java.util.concurrent.atomic.AtomicLong; ...@@ -153,7 +153,9 @@ import java.util.concurrent.atomic.AtomicLong;
sampleConsumersByTrackType.put(trackType, sampleConsumer); sampleConsumersByTrackType.put(trackType, sampleConsumer);
return sampleConsumer; return sampleConsumer;
} }
return checkStateNotNull(sampleConsumersByTrackType.get(trackType)); return checkStateNotNull(
sampleConsumersByTrackType.get(trackType),
"The preceding MediaItem does not contain any track of type " + trackType);
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment