]> git.sesse.net Git - vlc/blobdiff - modules/access/avio.c
Update LGPL license blurb, choosing v2.1+.
[vlc] / modules / access / avio.c
index e1d020c16fa59236bd813718fd1f000c17e53819..639e2c20b74ad9aafd03ebe7c7d05205f5876cb8 100644 (file)
@@ -84,8 +84,9 @@ int OpenAvio(vlc_object_t *object)
      */
     char *url;
     if (!strcmp(access->psz_access, "avio"))
-        url = strdup(access->psz_path);
-    else if (asprintf(&url, "%s://%s", access->psz_access, access->psz_path) < 0)
+        url = strdup(access->psz_location);
+    else if (asprintf(&url, "%s://%s", access->psz_access,
+                      access->psz_location) < 0)
         url = NULL;
 
     if (!url)
@@ -153,7 +154,7 @@ static int Seek(access_t *access, uint64_t position)
 {
     access_sys_t *sys = access->p_sys;
 
-    if (position >= INT64_MIN ||
+    if (position > INT64_MAX ||
         url_seek(sys->context, position, SEEK_SET) < 0) {
         msg_Err(access, "Seek to %"PRIu64" failed\n", position);
         if (access->info.i_size <= 0 || position != access->info.i_size)