Skip to content

Commit

Permalink
Fix mediaInfo / inferredMediaFile bottleneck
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed May 23, 2019
1 parent 996701a commit dc0c1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/net/filebot/format/MediaBindingBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ public synchronized MovieInfo getMovieInfo(Locale locale, boolean extendedInfo)
// lazy initialize and then keep in memory
private MediaInfo mediaInfo;

private synchronized MediaInfo getMediaInfo() {
public synchronized MediaInfo getMediaInfo() {
// use inferred media file (e.g. actual movie file instead of subtitle file)
if (mediaInfo == null) {
mediaInfo = mediaInfoCache.get(getInferredMediaFile(), f -> {
Expand All @@ -1218,7 +1218,7 @@ private synchronized MediaInfo getMediaInfo() {
// lazy initialize and then keep in memory
private File inferredMediaFile;

private synchronized File getInferredMediaFile() {
public synchronized File getInferredMediaFile() {
if (inferredMediaFile == null) {
inferredMediaFile = getInferredMediaFile(getMediaFile());
}
Expand Down

0 comments on commit dc0c1f1

Please sign in to comment.