Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ebfd9455
Commit
ebfd9455
authored
Oct 02, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: rename the variables so that it matches their current purpose
parent
0f245d7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
src/misc/update.c
src/misc/update.c
+11
-9
src/misc/update.h
src/misc/update.h
+1
-1
No files found.
src/misc/update.c
View file @
ebfd9455
...
...
@@ -1485,10 +1485,12 @@ static void* update_DownloadReal( vlc_object_t *p_this );
* Download the file given in the update_t
*
* \param p_update structure
* \param dir to store the download file
* \param destination to store the download file
* This can be an existing dir, a (non)existing target fullpath filename or
* NULL for the current working dir.
* \return nothing
*/
void
update_Download
(
update_t
*
p_update
,
const
char
*
psz_destdir
)
void
update_Download
(
update_t
*
p_update
,
const
char
*
destination
)
{
assert
(
p_update
);
...
...
@@ -1500,7 +1502,7 @@ void update_Download( update_t *p_update, const char *psz_destdir )
p_udt
->
p_update
=
p_update
;
p_update
->
p_download
=
p_udt
;
p_udt
->
psz_dest
dir
=
psz_destdir
?
strdup
(
psz_destdir
)
:
NULL
;
p_udt
->
psz_dest
ination
=
destination
?
strdup
(
destination
)
:
NULL
;
vlc_thread_create
(
p_udt
,
"download update"
,
update_DownloadReal
,
VLC_THREAD_PRIORITY_LOW
,
false
);
...
...
@@ -1527,7 +1529,7 @@ static void* update_DownloadReal( vlc_object_t *p_this )
int
canc
;
update_t
*
p_update
=
p_udt
->
p_update
;
char
*
psz_dest
dir
=
p_udt
->
psz_destdir
;
char
*
psz_dest
ination
=
p_udt
->
psz_destination
;
msg_Dbg
(
p_udt
,
"Opening Stream '%s'"
,
p_update
->
release
.
psz_url
);
canc
=
vlc_savecancel
();
...
...
@@ -1553,13 +1555,13 @@ static void* update_DownloadReal( vlc_object_t *p_this )
}
psz_tmpdestfile
++
;
if
(
utf8_stat
(
psz_dest
dir
,
&
p_stat
)
==
0
&&
(
p_stat
.
st_mode
&
S_IFDIR
)
)
if
(
utf8_stat
(
psz_dest
ination
,
&
p_stat
)
==
0
&&
(
p_stat
.
st_mode
&
S_IFDIR
)
)
{
if
(
asprintf
(
&
psz_destfile
,
"%s%c%s"
,
psz_dest
dir
,
DIR_SEP_CHAR
,
psz_tmpdestfile
)
==
-
1
)
if
(
asprintf
(
&
psz_destfile
,
"%s%c%s"
,
psz_dest
ination
,
DIR_SEP_CHAR
,
psz_tmpdestfile
)
==
-
1
)
goto
end
;
}
else
if
(
psz_dest
dir
)
psz_destfile
=
strdup
(
psz_dest
dir
);
else
if
(
psz_dest
ination
)
psz_destfile
=
strdup
(
psz_dest
ination
);
else
psz_destfile
=
strdup
(
psz_tmpdestfile
);
...
...
@@ -1729,7 +1731,7 @@ end:
stream_Delete
(
p_stream
);
if
(
p_file
)
fclose
(
p_file
);
free
(
psz_dest
dir
);
free
(
psz_dest
ination
);
free
(
psz_destfile
);
free
(
p_buffer
);
free
(
psz_size
);
...
...
src/misc/update.h
View file @
ebfd9455
...
...
@@ -149,7 +149,7 @@ typedef struct
{
VLC_COMMON_MEMBERS
update_t
*
p_update
;
char
*
psz_dest
dir
;
char
*
psz_dest
ination
;
}
update_download_thread_t
;
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment