Fixed potential image loading issue of FeedMedia

This commit is contained in:
daniel oeh 2014-04-26 23:32:45 +02:00
parent acfc26a142
commit 6672f0106e
1 changed files with 5 additions and 1 deletions

View File

@ -418,7 +418,11 @@ public class FeedMedia extends FeedFile implements Playable {
@Override
public InputStream reopenImageInputStream(InputStream input) {
if (input instanceof FileInputStream) {
if (item.hasItemImageDownloaded()) {
return item.getImage().reopenImageInputStream(input);
} else {
return item.getFeed().getImage().reopenImageInputStream(input);
}
} else {
return new Playable.DefaultPlayableImageLoader(this)
.reopenImageInputStream(input);