]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/cache.c
mxfdec: Fix inferred misuses of enums
[ffmpeg] / libavformat / cache.c
index 2cfc396f290bab101b8838ad86908624c537a5ce..35f81e83c13ff0a0190e32aac3b4aef27b7671e0 100644 (file)
@@ -114,7 +114,9 @@ static int64_t cache_seek(URLContext *h, int64_t pos, int whence)
         c->pos= pos;
         return pos;
     }else{
-        lseek(c->fd, c->pos, SEEK_SET);
+        if(lseek(c->fd, c->pos, SEEK_SET) < 0) {
+            av_log(h, AV_LOG_ERROR, "Failure to seek in cache\n");
+        }
         return AVERROR(EPIPE);
     }
 }