Skip to content

Commit

Permalink
finish render frame after interrupted exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Mar 13, 2024
1 parent 3c74cdf commit 3cc8251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class GlStreamInterface(private val context: Context): OnFrameAvailableListener,
mainRender.setFilterAction(filter.filterAction, filter.position, filter.baseFilterRender)
} catch (e: InterruptedException) {
Thread.currentThread().interrupt()
return
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private void draw(boolean forced) {
mainRender.setFilterAction(filter.filterAction, filter.position, filter.baseFilterRender);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
return;
}
}
if (surfaceManagerEncoder.isReady() && mainRender.isReady()) {
Expand Down

0 comments on commit 3cc8251

Please sign in to comment.