vcddev_t *vcddev;
char *psz_name;
- if( !p_access->psz_path || !*p_access->psz_path )
+ if( !p_access->psz_filepath || !*p_access->psz_filepath )
{
/* Only when selected */
if( !p_access->psz_access || !*p_access->psz_access )
return VLC_EGENERIC;
}
}
- else psz_name = ToLocaleDup( p_access->psz_path );
+ else psz_name = ToLocaleDup( p_access->psz_filepath );
#ifdef WIN32
if( psz_name[0] && psz_name[1] == ':' &&
{
access_t *p_access = (access_t*)p_this;
- if( !p_access->psz_path )
+ if( !p_access->psz_filepath )
return VLC_EGENERIC;
- DIR *handle = vlc_opendir (p_access->psz_path);
+ DIR *handle = vlc_opendir (p_access->psz_filepath);
if (handle == NULL)
return VLC_EGENERIC;
uri = NULL;
}
else
- uri = make_URI (p_access->psz_path);
+ uri = make_URI (p_access->psz_filepath);
if (unlikely(uri == NULL))
goto error;
current->parent = NULL;
current->handle = p_sys->handle;
#ifndef HAVE_OPENAT
- current->path = strdup (p_access->psz_path);
+ current->path = strdup (p_access->psz_filepath);
#endif
current->uri = p_sys->uri;
if (fstat (dirfd (current->handle), ¤t->st))
if( ( p_device = LIBMTP_Open_Raw_Device( &p_rawdevices[i] )
) != NULL )
{
- free( p_access->psz_path );
- if( ( p_access->psz_path = tempnam( NULL, "vlc" ) ) == NULL )
+ free( p_access->psz_filepath );
+#warning Oooh no! Not tempnam()!
+ p_access->psz_filepath = tempnam( NULL, "vlc" );
+ if( p_access->psz_filepath == NULL )
{
LIBMTP_Release_Device( p_device );
free( p_rawdevices );
}
else
{
- msg_Dbg( p_access, "About to write %s", p_access->psz_path );
+ msg_Dbg( p_access, "About to write %s",
+ p_access->psz_filepath );
LIBMTP_Get_File_To_File( p_device, i_track_id,
- p_access->psz_path, NULL, NULL );
+ p_access->psz_filepath, NULL,
+ NULL );
LIBMTP_Release_Device( p_device );
i = i_numrawdevices;
}
int fd = p_sys->fd = -1;
/* Open file */
- msg_Dbg( p_access, "opening file `%s'", p_access->psz_path );
- fd = open_file( p_access, p_access->psz_path );
+ msg_Dbg( p_access, "opening file `%s'", p_access->psz_filepath );
+ fd = open_file( p_access, p_access->psz_filepath );
if( fd == -1 )
{
access_sys_t *p_sys = p_access->p_sys;
close ( p_sys->fd );
- if( vlc_unlink( p_access->psz_path ) != 0 )
- msg_Err( p_access, "Error deleting file %s, %m", p_access->psz_path );
+ if( vlc_unlink( p_access->psz_filepath ) != 0 )
+ msg_Err( p_access, "Error deleting file %s, %m",
+ p_access->psz_filepath );
free( p_sys );
}