Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 817a60c7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "MediaMuxer: handle expection for add track"

parents e7fc743a 0e578586
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -276,7 +276,11 @@ final public class MediaMuxer {
                values[i] = entry.getValue();
                ++i;
            }
            try {
                trackIndex = nativeAddTrack(mNativeObject, keys, values);
            } catch (IllegalStateException ex) {
                throw new IllegalArgumentException("format not supported");
            }
        } else {
            throw new IllegalArgumentException("format must not be empty.");
        }