- else
- // If we haven't got a result by now, try to just load plain file
- return createMediaObject(inPath);
+
+ // If we haven't got a result by now, try to load plain file
+ File file = (inSourceFile == null ? new File(inPath) : new File(inSourceFile.getParent(), inPath));
+ return createMediaObject(file);