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
d9c81702
Commit
d9c81702
authored
Apr 26, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: fix path extension on non-local inputs (fixes #8115)
parent
d9b28c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
include/vlc_demux.h
include/vlc_demux.h
+3
-4
No files found.
include/vlc_demux.h
View file @
d9c81702
...
...
@@ -177,10 +177,9 @@ VLC_API int demux_vaControlHelper( stream_t *, int64_t i_start, int64_t i_end, i
VLC_USED
static
inline
bool
demux_IsPathExtension
(
demux_t
*
p_demux
,
const
char
*
psz_extension
)
{
if
(
!
p_demux
->
psz_file
)
return
false
;
const
char
*
psz_ext
=
strrchr
(
p_demux
->
psz_file
,
'.'
);
const
char
*
name
=
(
p_demux
->
psz_file
!=
NULL
)
?
p_demux
->
psz_file
:
p_demux
->
psz_location
;
const
char
*
psz_ext
=
strrchr
(
name
,
'.'
);
if
(
!
psz_ext
||
strcasecmp
(
psz_ext
,
psz_extension
)
)
return
false
;
return
true
;
...
...
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