Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
df01407a
Commit
df01407a
authored
Jan 30, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_item_WriteMeta: use make_path()
parent
3348a387
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
src/input/meta.c
src/input/meta.c
+13
-19
No files found.
src/input/meta.c
View file @
df01407a
...
...
@@ -277,30 +277,24 @@ int input_item_WriteMeta( vlc_object_t *obj, input_item_t *p_item )
vlc_mutex_lock
(
&
p_item
->
lock
);
type
=
p_item
->
i_type
;
vlc_mutex_unlock
(
&
p_item
->
lock
);
if
(
type
==
ITEM_TYPE_FILE
)
{
char
*
psz_uri
=
input_item_GetURI
(
p_item
);
if
(
type
!=
ITEM_TYPE_FILE
)
goto
error
;
#warning FIXME: function for URI->path conversion!
decode_URI
(
psz_uri
);
if
(
!
strncmp
(
psz_uri
,
"file://"
,
7
)
)
{
p_export
->
psz_file
=
strdup
(
psz_uri
+
7
);
free
(
psz_uri
);
}
else
#warning This should not happen!
p_export
->
psz_file
=
psz_uri
;
}
else
{
vlc_object_release
(
p_export
);
return
VLC_EGENERIC
;
}
char
*
psz_uri
=
input_item_GetURI
(
p_item
);
p_export
->
psz_file
=
make_path
(
psz_uri
);
if
(
p_export
->
psz_file
==
NULL
)
msg_Err
(
p_export
,
"cannot write meta to remote media %s"
,
psz_uri
);
free
(
psz_uri
);
if
(
p_export
->
psz_file
==
NULL
)
goto
error
;
module_t
*
p_mod
=
module_need
(
p_export
,
"meta writer"
,
NULL
,
false
);
if
(
p_mod
)
module_unneed
(
p_export
,
p_mod
);
vlc_object_release
(
p_export
);
return
VLC_SUCCESS
;
error:
vlc_object_release
(
p_export
);
return
VLC_EGENERIC
;
}
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