Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b9baae25
Commit
b9baae25
authored
Aug 05, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http.c: Support for ~ in foreach directory.
parent
4e69a722
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
modules/control/http.c
modules/control/http.c
+12
-3
modules/misc/logger.c
modules/misc/logger.c
+2
-2
No files found.
modules/control/http.c
View file @
b9baae25
...
@@ -1212,7 +1212,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
...
@@ -1212,7 +1212,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
char
*
psz_dir
)
char
*
psz_dir
)
{
{
mvar_t
*
s
=
mvar_New
(
name
,
"set"
);
mvar_t
*
s
=
mvar_New
(
name
,
"set"
);
char
tmp
[
MAX_DIR_SIZE
],
*
p
,
*
src
;
char
tmp
[
MAX_DIR_SIZE
],
dir
[
MAX_DIR_SIZE
],
*
p
,
*
src
;
#ifdef HAVE_SYS_STAT_H
#ifdef HAVE_SYS_STAT_H
struct
stat
stat_info
;
struct
stat
stat_info
;
#endif
#endif
...
@@ -1255,6 +1255,15 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
...
@@ -1255,6 +1255,15 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
{
{
return
s
;
return
s
;
}
}
if
(
*
psz_dir
==
'~'
)
{
/* This is incomplete : we should also support the ~cmassiot/ syntax. */
snprintf
(
dir
,
sizeof
(
dir
),
"%s/%s"
,
p_intf
->
p_vlc
->
psz_homedir
,
psz_dir
+
1
);
psz_dir
=
dir
;
}
/* first fix all .. dir */
/* first fix all .. dir */
p
=
src
=
psz_dir
;
p
=
src
=
psz_dir
;
while
(
*
src
)
while
(
*
src
)
...
@@ -1332,7 +1341,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
...
@@ -1332,7 +1341,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
continue
;
continue
;
}
}
s
printf
(
tmp
,
"%s/%s"
,
psz_dir
,
p_dir_content
->
d_name
);
s
nprintf
(
tmp
,
sizeof
(
tmp
)
,
"%s/%s"
,
psz_dir
,
p_dir_content
->
d_name
);
#ifdef HAVE_SYS_STAT_H
#ifdef HAVE_SYS_STAT_H
if
(
stat
(
tmp
,
&
stat_info
)
==
-
1
)
if
(
stat
(
tmp
,
&
stat_info
)
==
-
1
)
...
@@ -1346,7 +1355,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
...
@@ -1346,7 +1355,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
p_dir_content
->
d_name
);
p_dir_content
->
d_name
);
psz_name
=
FromUTF8
(
p_intf
,
psz_tmp
);
psz_name
=
FromUTF8
(
p_intf
,
psz_tmp
);
free
(
psz_tmp
);
free
(
psz_tmp
);
s
printf
(
tmp
,
"%s/%s"
,
psz_dir
,
psz_name
);
s
nprintf
(
tmp
,
sizeof
(
tmp
)
,
"%s/%s"
,
psz_dir
,
psz_name
);
mvar_AppendNewVar
(
f
,
"name"
,
tmp
);
mvar_AppendNewVar
(
f
,
"name"
,
tmp
);
mvar_AppendNewVar
(
f
,
"basename"
,
psz_name
);
mvar_AppendNewVar
(
f
,
"basename"
,
psz_name
);
...
...
modules/misc/logger.c
View file @
b9baae25
...
@@ -160,7 +160,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -160,7 +160,7 @@ static int Open( vlc_object_t *p_this )
if
(
!
psz_file
)
if
(
!
psz_file
)
{
{
#ifdef SYS_DARWIN
#ifdef SYS_DARWIN
char
*
psz_homedir
=
p_this
->
p_vlc
->
psz_homedir
;
char
*
psz_homedir
=
p_this
->
p_vlc
->
psz_homedir
;
if
(
!
psz_homedir
)
if
(
!
psz_homedir
)
{
{
...
@@ -185,7 +185,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -185,7 +185,7 @@ static int Open( vlc_object_t *p_this )
}
}
}
}
#else
#else
switch
(
p_intf
->
p_sys
->
i_mode
)
switch
(
p_intf
->
p_sys
->
i_mode
)
{
{
case
MODE_HTML
:
case
MODE_HTML
:
psz_file
=
strdup
(
LOG_FILE_HTML
);
psz_file
=
strdup
(
LOG_FILE_HTML
);
...
...
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