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
0020f822
Commit
0020f822
authored
Apr 29, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* record: use add_directory (instead of add_string) + parse the name to
remove the uri/path part.
parent
40641a7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
modules/access_filter/record.c
modules/access_filter/record.c
+14
-5
No files found.
modules/access_filter/record.c
View file @
0020f822
...
...
@@ -54,8 +54,8 @@ vlc_module_begin();
set_capability
(
"access_filter"
,
0
);
add_shortcut
(
"record"
);
add_
string
(
"record-path"
,
NULL
,
NULL
,
RECORD_PATH_TXT
,
RECORD_PATH_LONGTXT
,
VLC_TRUE
);
add_
directory
(
"record-path"
,
NULL
,
NULL
,
RECORD_PATH_TXT
,
RECORD_PATH_LONGTXT
,
VLC_TRUE
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -341,13 +341,22 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
if
(
p_input
)
{
vlc_mutex_lock
(
&
p_input
->
input
.
p_item
->
lock
);
if
(
p_input
->
input
.
p_item
->
psz_name
&&
strlen
(
p_input
->
input
.
p_item
->
psz_name
)
<
64
)
psz_name
=
strdup
(
p_input
->
input
.
p_item
->
psz_name
);
if
(
p_input
->
input
.
p_item
->
psz_name
)
{
char
*
p
=
strrchr
(
p_input
->
input
.
p_item
->
psz_name
,
'/'
);
if
(
p
==
NULL
)
p
=
strrchr
(
p_input
->
input
.
p_item
->
psz_name
,
'\\'
);
if
(
p
==
NULL
)
psz_name
=
strdup
(
p_input
->
input
.
p_item
->
psz_name
);
else
if
(
p
[
1
]
!=
'\0'
)
psz_name
=
strdup
(
&
p
[
1
]
);
}
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
vlc_object_release
(
p_input
);
}
if
(
psz_name
==
NULL
)
psz_name
=
strdup
(
"Unknown"
);
...
...
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