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
f188c1f5
Commit
f188c1f5
authored
Mar 31, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Allow NULL item name.
parent
f39e70a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/input/item.c
src/input/item.c
+8
-2
No files found.
src/input/item.c
View file @
f188c1f5
...
...
@@ -277,7 +277,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
if
(
psz_name
!=
NULL
)
p_input
->
psz_name
=
strdup
(
psz_name
);
else
if
(
p_input
->
i_type
==
ITEM_TYPE_FILE
)
else
if
(
p_input
->
i_type
==
ITEM_TYPE_FILE
&&
p_input
->
psz_uri
)
{
const
char
*
psz_filename
=
strrchr
(
p_input
->
psz_uri
,
DIR_SEP_CHAR
);
if
(
psz_filename
&&
*
psz_filename
==
DIR_SEP_CHAR
)
...
...
@@ -286,7 +286,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
?
psz_filename
:
p_input
->
psz_uri
);
}
else
p_input
->
psz_name
=
strdup
(
p_input
->
psz_uri
)
;
p_input
->
psz_name
=
p_input
->
psz_uri
?
strdup
(
p_input
->
psz_uri
)
:
NULL
;
p_input
->
i_duration
=
i_duration
;
...
...
@@ -318,6 +318,12 @@ static void GuessType( input_item_t *p_item)
{
NULL
,
0
}
};
if
(
!
p_item
->
psz_uri
)
{
p_item
->
i_type
=
ITEM_TYPE_FILE
;
return
;
}
for
(
i
=
0
;
types_array
[
i
].
psz_search
!=
NULL
;
i
++
)
{
if
(
!
strncmp
(
p_item
->
psz_uri
,
types_array
[
i
].
psz_search
,
...
...
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