mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove extra param from createForVideoFrameProcessingException
This arg was always the same value, so it can be simplified. PiperOrigin-RevId: 525677735
This commit is contained in:
parent
316a2ce0ee
commit
3bc0172188
@ -284,12 +284,14 @@ public final class ExportException extends Exception {
|
||||
* Creates an instance for a {@link VideoFrameProcessor} related exception.
|
||||
*
|
||||
* @param cause The cause of the failure.
|
||||
* @param errorCode See {@link #errorCode}.
|
||||
* @return The created instance.
|
||||
*/
|
||||
/* package */ static ExportException createForVideoFrameProcessingException(
|
||||
VideoFrameProcessingException cause, int errorCode) {
|
||||
return new ExportException("Video frame processing error", cause, errorCode);
|
||||
VideoFrameProcessingException cause) {
|
||||
return new ExportException(
|
||||
"Video frame processing error",
|
||||
cause,
|
||||
ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -164,8 +164,7 @@ import org.checkerframework.dataflow.qual.Pure;
|
||||
@Override
|
||||
public void onError(VideoFrameProcessingException exception) {
|
||||
errorConsumer.accept(
|
||||
ExportException.createForVideoFrameProcessingException(
|
||||
exception, ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED));
|
||||
ExportException.createForVideoFrameProcessingException(exception));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -180,8 +179,7 @@ import org.checkerframework.dataflow.qual.Pure;
|
||||
}
|
||||
});
|
||||
} catch (VideoFrameProcessingException e) {
|
||||
throw ExportException.createForVideoFrameProcessingException(
|
||||
e, ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED);
|
||||
throw ExportException.createForVideoFrameProcessingException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user