]> git.sesse.net Git - vlc/blobdiff - modules/access/attachment.c
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / access / attachment.c
index 96dd0f921561dca0eb81e7b2884550684e9bcc4c..ac5f3dae5b25ed2042317fe717e25a76d4106d31 100644 (file)
@@ -59,7 +59,7 @@ struct access_sys_t {
 };
 
 static ssize_t Read(access_t *, uint8_t *, size_t);
-static int     Seek(access_t *, int64_t);
+static int     Seek(access_t *, uint64_t);
 static int     Control(access_t *, int, va_list);
 
 /* */
@@ -73,13 +73,14 @@ static int Open(vlc_object_t *object)
         return VLC_EGENERIC;
 
     input_attachment_t *a;
-    if (input_Control(input, INPUT_GET_ATTACHMENT, &a, access->psz_path))
+    if (input_Control(input, INPUT_GET_ATTACHMENT, &a, access->psz_location))
         a = NULL;
 
     vlc_object_release(input);
 
     if (!a) {
-        msg_Err(access, "Failed to find the attachment '%s'", access->psz_path);
+        msg_Err(access, "Failed to find the attachment '%s'",
+                access->psz_location);
         return VLC_EGENERIC;
     }
 
@@ -127,7 +128,7 @@ static ssize_t Read(access_t *access, uint8_t *buffer, size_t size)
 }
 
 /* */
-static int Seek(access_t *access, int64_t position)
+static int Seek(access_t *access, uint64_t position)
 {
     access->info.i_pos = position;
     access->info.b_eof = false;