Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GSoC2018
macOS
vlc
Commits
05e8bc77
Commit
05e8bc77
authored
Apr 26, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item: fix and check table ordering
parent
8d99c0fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
src/input/item.c
src/input/item.c
+16
-18
No files found.
src/input/item.c
View file @
05e8bc77
...
...
@@ -1040,7 +1040,6 @@ static int GuessType( const input_item_t *p_item, bool *p_net )
{
"dir"
,
ITEM_TYPE_DIRECTORY
,
false
},
{
"dshow"
,
ITEM_TYPE_CARD
,
false
},
{
"dtv"
,
ITEM_TYPE_CARD
,
false
},
{
"dv"
,
ITEM_TYPE_CARD
,
false
},
{
"dvb"
,
ITEM_TYPE_CARD
,
false
},
{
"dvd"
,
ITEM_TYPE_DISC
,
false
},
{
"eyetv"
,
ITEM_TYPE_CARD
,
false
},
...
...
@@ -1088,26 +1087,25 @@ static int GuessType( const input_item_t *p_item, bool *p_net )
{
"wasapi"
,
ITEM_TYPE_CARD
,
false
},
{
"window"
,
ITEM_TYPE_CARD
,
false
},
};
int
i_item_type
=
ITEM_TYPE_UNKNOWN
;
#ifndef NDEBUG
for
(
size_t
i
=
1
;
i
<
ARRAY_SIZE
(
tab
);
i
++
)
assert
(
typecmp
(
tab
+
i
,
tab
+
i
-
1
)
>
0
);
#endif
*
p_net
=
false
;
if
(
!
strstr
(
p_item
->
psz_uri
,
"://"
)
)
{
i_item_type
=
ITEM_TYPE_FILE
;
}
else
{
const
struct
item_type_entry
*
e
=
bsearch
(
p_item
->
psz_uri
,
tab
,
sizeof
(
tab
)
/
sizeof
(
tab
[
0
]
),
sizeof
(
tab
[
0
]
),
typecmp
);
if
(
e
)
{
*
p_net
=
e
->
b_net
;
i_item_type
=
e
->
i_type
;
}
}
if
(
strstr
(
p_item
->
psz_uri
,
"://"
)
==
NULL
)
return
ITEM_TYPE_UNKNOWN
;
/* invalid URI */
const
struct
item_type_entry
*
e
=
bsearch
(
p_item
->
psz_uri
,
tab
,
ARRAY_SIZE
(
tab
),
sizeof
(
tab
[
0
]
),
typecmp
);
if
(
e
==
NULL
)
return
ITEM_TYPE_UNKNOWN
;
return
i_item_type
;
*
p_net
=
e
->
b_net
;
return
e
->
i_type
;
}
input_item_node_t
*
input_item_node_Create
(
input_item_t
*
p_input
)
...
...
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