* make sure that there's only 1 reference to mediaInfoKey

This commit is contained in:
Reinhard Pointner 2015-11-14 17:33:13 +00:00
parent 7103d4216e
commit 6d2667f3a1
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ public class MediaBindingBean {
mediaInfo = sharedMediaInfoObjects.get(mediaInfoKey);
if (mediaInfo == null) {
MediaInfo mi = new MediaInfo();
if (!mi.open(new File(mediaInfoKey))) {
if (!mi.open(new File(new String(mediaInfoKey)))) {
throw new RuntimeException("Cannot open media file: " + mediaInfoKey);
}
sharedMediaInfoObjects.put(mediaInfoKey, mi);