Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
ee12bb07
Commit
ee12bb07
authored
Jul 26, 2015
by
François Cartegnie
🤞
Browse files
demux: adaptative: check token existence
parent
b78ea64b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/adaptative/tools/Helper.cpp
View file @
ee12bb07
...
...
@@ -49,9 +49,9 @@ std::string Helper::combinePaths (const std::string &path1, const std::st
}
std
::
string
Helper
::
getDirectoryPath
(
const
std
::
string
&
path
)
{
in
t
pos
=
path
.
find_last_of
(
'/'
);
std
::
size_
t
pos
=
path
.
find_last_of
(
'/'
);
return
path
.
substr
(
0
,
pos
);
return
(
pos
!=
std
::
string
::
npos
)
?
path
.
substr
(
0
,
pos
)
:
path
;
}
bool
Helper
::
ifind
(
std
::
string
haystack
,
std
::
string
needle
)
...
...
Write
Preview
Supports
Markdown
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