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
98a01d40
Commit
98a01d40
authored
Jan 05, 2012
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Jan 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Cleaning Period class.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8158205e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
modules/stream_filter/dash/mpd/BasicCMParser.cpp
modules/stream_filter/dash/mpd/BasicCMParser.cpp
+1
-1
modules/stream_filter/dash/mpd/Period.cpp
modules/stream_filter/dash/mpd/Period.cpp
+12
-7
modules/stream_filter/dash/mpd/Period.h
modules/stream_filter/dash/mpd/Period.h
+3
-8
No files found.
modules/stream_filter/dash/mpd/BasicCMParser.cpp
View file @
98a01d40
...
...
@@ -157,7 +157,7 @@ void BasicCMParser::setPeriods (Node *root)
for
(
size_t
i
=
0
;
i
<
periods
.
size
();
i
++
)
{
Period
*
period
=
new
Period
(
periods
.
at
(
i
)
->
getAttributes
()
);
Period
*
period
=
new
Period
();
this
->
setGroups
(
periods
.
at
(
i
),
period
);
this
->
mpd
->
addPeriod
(
period
);
}
...
...
modules/stream_filter/dash/mpd/Period.cpp
View file @
98a01d40
...
...
@@ -21,29 +21,34 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "Period.h"
#include <vlc_common.h>
#include <vlc_arrays.h>
using
namespace
dash
::
mpd
;
Period
::
Period
(
std
::
map
<
std
::
string
,
std
::
string
>
attributes
)
Period
::
Period
(
)
{
this
->
attributes
=
attributes
;
}
Period
::~
Period
()
{
for
(
size_t
i
=
0
;
i
<
this
->
groups
.
size
();
i
++
)
delete
(
this
->
groups
.
at
(
i
));
vlc_delete_all
(
this
->
groups
);
}
std
::
vector
<
Group
*>
Period
::
getGroups
()
const
std
::
vector
<
Group
*>&
Period
::
getGroups
()
const
{
return
this
->
groups
;
}
void
Period
::
addGroup
(
Group
*
group
)
void
Period
::
addGroup
(
Group
*
group
)
{
this
->
groups
.
push_back
(
group
);
if
(
group
!=
NULL
)
this
->
groups
.
push_back
(
group
);
}
modules/stream_filter/dash/mpd/Period.h
View file @
98a01d40
...
...
@@ -26,10 +26,8 @@
#include <vector>
#include <string>
#include <map>
#include "mpd/Group.h"
#include "mpd/Representation.h"
namespace
dash
{
...
...
@@ -38,17 +36,14 @@ namespace dash
class
Period
{
public:
Period
(
std
::
map
<
std
::
string
,
std
::
string
>
attributes
);
Period
(
);
virtual
~
Period
();
std
::
vector
<
Group
*>
getGroups
()
;
void
addGroup
(
Group
*
group
);
const
std
::
vector
<
Group
*>&
getGroups
()
const
;
void
addGroup
(
Group
*
group
);
private:
std
::
map
<
std
::
string
,
std
::
string
>
attributes
;
std
::
vector
<
Group
*>
groups
;
};
}
}
...
...
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