Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
575ef3b3
Commit
575ef3b3
authored
Feb 20, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: added path helpers
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
ad0ce25c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
0 deletions
+89
-0
modules/stream_filter/dash/Helper.cpp
modules/stream_filter/dash/Helper.cpp
+47
-0
modules/stream_filter/dash/Helper.h
modules/stream_filter/dash/Helper.h
+40
-0
modules/stream_filter/dash/Modules.am
modules/stream_filter/dash/Modules.am
+2
-0
No files found.
modules/stream_filter/dash/Helper.cpp
0 → 100644
View file @
575ef3b3
/*
* Helper.cpp
*****************************************************************************
* Copyright (C) 2010 - 2012 Klagenfurt University
*
* Created on: Feb 20, 2012
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "Helper.h"
using
namespace
dash
;
std
::
string
Helper
::
combinePaths
(
const
std
::
string
&
path1
,
const
std
::
string
&
path2
)
{
char
path1Last
=
path1
.
at
(
path1
.
size
()
-
1
);
char
path2First
=
path2
.
at
(
0
);
if
(
path1Last
==
'/'
&&
path2First
==
'/'
)
return
path1
+
path2
.
substr
(
1
,
path2
.
size
());
if
(
path1Last
!=
'/'
&&
path2First
!=
'/'
)
return
path1
+
"/"
+
path2
;
return
path1
+
path2
;
}
std
::
string
Helper
::
getDirectoryPath
(
const
std
::
string
&
path
)
{
int
pos
=
path
.
find_last_of
(
'/'
);
return
path
.
substr
(
0
,
pos
);
}
modules/stream_filter/dash/Helper.h
0 → 100644
View file @
575ef3b3
/*
* Helper.h
*****************************************************************************
* Copyright (C) 2010 - 2012 Klagenfurt University
*
* Created on: Feb 20, 2012
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef HELPER_H_
#define HELPER_H_
#include <string>
namespace
dash
{
class
Helper
{
public:
static
std
::
string
combinePaths
(
const
std
::
string
&
path1
,
const
std
::
string
&
path2
);
static
std
::
string
getDirectoryPath
(
const
std
::
string
&
path
);
};
}
#endif
/* HELPER_H_ */
modules/stream_filter/dash/Modules.am
View file @
575ef3b3
...
...
@@ -80,5 +80,7 @@ SOURCES_stream_filter_dash = \
DASHDownloader.h \
DASHManager.cpp \
DASHManager.h \
Helper.cpp \
Helper.h \
$(NULL)
libvlc_LTLIBRARIES += libstream_filter_dash_plugin.la
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