Skip to content

Commit

Permalink
fix onpreview value after preparevideo
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Mar 13, 2024
1 parent 65c006d commit ed4eff7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Expand Up @@ -273,7 +273,6 @@ public boolean prepareVideo(int width, int height, int fps, int bitrate, int iFr
if (onPreview && width != previewWidth || height != previewHeight
|| fps != videoEncoder.getFps() || rotation != videoEncoder.getRotation()) {
stopPreview();
onPreview = true;
}
FormatVideoEncoder formatVideoEncoder =
glInterface == null ? FormatVideoEncoder.YUV420Dynamical : FormatVideoEncoder.SURFACE;
Expand Down
Expand Up @@ -314,7 +314,6 @@ public boolean prepareVideo(int width, int height, int fps, int bitrate, int iFr
if (onPreview && glInterface != null && (width != previewWidth || height != previewHeight
|| fps != videoEncoder.getFps() || rotation != videoEncoder.getRotation())) {
stopPreview();
onPreview = true;
}
boolean result = videoEncoder.prepareVideoEncoder(width, height, fps, bitrate, rotation,
iFrameInterval, FormatVideoEncoder.SURFACE, profile, level);
Expand Down

0 comments on commit ed4eff7

Please sign in to comment.