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
44d674dd
Commit
44d674dd
authored
May 16, 2009
by
Rémi Duraffort
Committed by
Jean-Baptiste Kempf
May 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the type guess: this can be a protocol only if you xan find a :// in it.
(and add ftp and smb to the list)
parent
64828ecc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/input/item.c
src/input/item.c
+3
-1
No files found.
src/input/item.c
View file @
44d674dd
...
...
@@ -788,10 +788,12 @@ static void GuessType( input_item_t *p_item)
{
"dvb"
,
ITEM_TYPE_CARD
},
{
"qpsk"
,
ITEM_TYPE_CARD
},
{
"sdp"
,
ITEM_TYPE_NET
},
{
"ftp"
,
ITEM_TYPE_NET
},
{
"smb"
,
ITEM_TYPE_NET
},
{
NULL
,
0
}
};
if
(
!
p_item
->
psz_uri
)
if
(
!
p_item
->
psz_uri
||
!
strstr
(
p_item
->
psz_uri
,
"://"
)
)
{
p_item
->
i_type
=
ITEM_TYPE_FILE
;
return
;
...
...
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