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
45827b28
Commit
45827b28
authored
Dec 29, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Dec 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Removing now unused ElementNotPresentException
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3319c47e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
21 additions
and
77 deletions
+21
-77
modules/stream_filter/dash/Modules.am
modules/stream_filter/dash/Modules.am
+0
-1
modules/stream_filter/dash/exceptions/ElementNotPresentException.h
...tream_filter/dash/exceptions/ElementNotPresentException.h
+0
-43
modules/stream_filter/dash/mpd/BasicCMManager.cpp
modules/stream_filter/dash/mpd/BasicCMManager.cpp
+8
-18
modules/stream_filter/dash/mpd/BasicCMManager.h
modules/stream_filter/dash/mpd/BasicCMManager.h
+7
-8
modules/stream_filter/dash/mpd/BasicCMParser.cpp
modules/stream_filter/dash/mpd/BasicCMParser.cpp
+1
-1
modules/stream_filter/dash/mpd/MPD.h
modules/stream_filter/dash/mpd/MPD.h
+0
-1
modules/stream_filter/dash/mpd/ProgramInformation.h
modules/stream_filter/dash/mpd/ProgramInformation.h
+0
-1
modules/stream_filter/dash/mpd/Representation.cpp
modules/stream_filter/dash/mpd/Representation.cpp
+0
-1
modules/stream_filter/dash/mpd/Representation.h
modules/stream_filter/dash/mpd/Representation.h
+5
-1
modules/stream_filter/dash/mpd/SegmentInfo.cpp
modules/stream_filter/dash/mpd/SegmentInfo.cpp
+0
-1
modules/stream_filter/dash/mpd/SegmentInfo.h
modules/stream_filter/dash/mpd/SegmentInfo.h
+0
-1
No files found.
modules/stream_filter/dash/Modules.am
View file @
45827b28
...
...
@@ -11,7 +11,6 @@ SOURCES_stream_filter_dash = \
adaptationlogic/RateBasedAdaptationLogic.h \
adaptationlogic/RateBasedAdaptationLogic.cpp \
exceptions/AttributeNotPresentException.h \
exceptions/ElementNotPresentException.h \
exceptions/EOFException.h \
http/Chunk.cpp \
http/Chunk.h \
...
...
modules/stream_filter/dash/exceptions/ElementNotPresentException.h
deleted
100644 → 0
View file @
3319c47e
/*
* ElementNotPresentException.h
*****************************************************************************
* Copyright (C) 2010 - 2011 Klagenfurt University
*
* Created on: Aug 10, 2010
* 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 ELEMENTNOTPRESENTEXCEPTION_H_
#define ELEMENTNOTPRESENTEXCEPTION_H_
#include <stdexcept>
namespace
dash
{
namespace
exception
{
class
ElementNotPresentException
:
public
std
::
exception
{
public:
ElementNotPresentException
()
:
std
::
exception
()
{}
};
}
}
#endif
/* ELEMENTNOTPRESENTEXCEPTION_H_ */
modules/stream_filter/dash/mpd/BasicCMManager.cpp
View file @
45827b28
...
...
@@ -41,24 +41,14 @@ BasicCMManager::~BasicCMManager ()
std
::
vector
<
Segment
*>
BasicCMManager
::
getSegments
(
Representation
*
rep
)
{
std
::
vector
<
Segment
*>
retSegments
;
try
{
SegmentInfo
*
info
=
rep
->
getSegmentInfo
();
Segment
*
initSegment
=
info
->
getInitSegment
();
retSegments
.
push_back
(
initSegment
);
std
::
vector
<
Segment
*>
segments
=
info
->
getSegments
();
for
(
size_t
i
=
0
;
i
<
segments
.
size
();
i
++
)
retSegments
.
push_back
(
segments
.
at
(
i
));
}
catch
(
ElementNotPresentException
&
e
)
{
/*TODO Debug */
}
std
::
vector
<
Segment
*>
retSegments
;
SegmentInfo
*
info
=
rep
->
getSegmentInfo
();
Segment
*
initSegment
=
info
->
getInitSegment
();
if
(
initSegment
)
retSegments
.
push_back
(
initSegment
);
retSegments
.
insert
(
retSegments
.
end
(),
info
->
getSegments
().
begin
(),
info
->
getSegments
().
end
()
);
return
retSegments
;
}
const
std
::
vector
<
Period
*>&
BasicCMManager
::
getPeriods
()
const
...
...
modules/stream_filter/dash/mpd/BasicCMManager.h
View file @
45827b28
...
...
@@ -37,7 +37,6 @@
#include "mpd/Segment.h"
#include "mpd/IMPDManager.h"
#include "exceptions/AttributeNotPresentException.h"
#include "exceptions/ElementNotPresentException.h"
namespace
dash
{
...
...
@@ -49,13 +48,13 @@ namespace dash
BasicCMManager
(
MPD
*
mpd
);
virtual
~
BasicCMManager
();
const
std
::
vector
<
Period
*>&
getPeriods
()
const
;
Period
*
getFirstPeriod
();
Period
*
getNextPeriod
(
Period
*
period
);
Representation
*
getBestRepresentation
(
Period
*
period
);
std
::
vector
<
Segment
*>
getSegments
(
Representation
*
rep
);
Representation
*
getRepresentation
(
Period
*
period
,
long
bitrate
);
const
MPD
*
getMPD
()
const
;
const
std
::
vector
<
Period
*>&
getPeriods
()
const
;
Period
*
getFirstPeriod
();
Period
*
getNextPeriod
(
Period
*
period
);
Representation
*
getBestRepresentation
(
Period
*
period
);
std
::
vector
<
Segment
*>
getSegments
(
Representation
*
rep
);
Representation
*
getRepresentation
(
Period
*
period
,
long
bitrate
);
const
MPD
*
getMPD
()
const
;
private:
MPD
*
mpd
;
...
...
modules/stream_filter/dash/mpd/BasicCMParser.cpp
View file @
45827b28
...
...
@@ -258,7 +258,7 @@ bool BasicCMParser::setSegmentInfo (Node *root, Representation *rep)
//Init segment is not mandatory.
this
->
setInitSegment
(
segmentInfo
,
info
);
//If we don't have any segment, there's no point keeping this SegmentInfo.
if
(
this
->
setSegments
(
segmentInfo
,
info
)
==
false
)
if
(
this
->
setSegments
(
segmentInfo
,
info
)
==
false
)
{
delete
info
;
return
false
;
...
...
modules/stream_filter/dash/mpd/MPD.h
View file @
45827b28
...
...
@@ -33,7 +33,6 @@
#include "mpd/BaseUrl.h"
#include "mpd/ProgramInformation.h"
#include "exceptions/AttributeNotPresentException.h"
#include "exceptions/ElementNotPresentException.h"
#include "mpd/IMPDManager.h"
namespace
dash
...
...
modules/stream_filter/dash/mpd/ProgramInformation.h
View file @
45827b28
...
...
@@ -29,7 +29,6 @@
#include <map>
#include "exceptions/AttributeNotPresentException.h"
#include "exceptions/ElementNotPresentException.h"
namespace
dash
{
...
...
modules/stream_filter/dash/mpd/Representation.cpp
View file @
45827b28
...
...
@@ -30,7 +30,6 @@
#include "Representation.h"
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
Representation
::
Representation
(
const
std
::
map
<
std
::
string
,
std
::
string
>&
attributes
)
:
qualityRanking
(
-
1
),
...
...
modules/stream_filter/dash/mpd/Representation.h
View file @
45827b28
...
...
@@ -30,7 +30,6 @@
#include "mpd/CommonAttributesElements.h"
#include "mpd/SegmentInfo.h"
#include "mpd/TrickModeType.h"
#include "exceptions/ElementNotPresentException.h"
namespace
dash
{
...
...
@@ -55,6 +54,11 @@ namespace dash
void
setQualityRanking
(
int
qualityRanking
);
const
std
::
list
<
const
Representation
*>&
getDependencies
()
const
;
void
addDependency
(
const
Representation
*
dep
);
/**
* @return This SegmentInfo for this Representation.
* It cannot be NULL, or without any Segments in it.
* It can however have a NULL InitSegment
*/
SegmentInfo
*
getSegmentInfo
()
const
;
TrickModeType
*
getTrickModeType
()
const
;
...
...
modules/stream_filter/dash/mpd/SegmentInfo.cpp
View file @
45827b28
...
...
@@ -28,7 +28,6 @@
#include "SegmentInfo.h"
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
SegmentInfo
::
SegmentInfo
()
:
initSeg
(
NULL
),
...
...
modules/stream_filter/dash/mpd/SegmentInfo.h
View file @
45827b28
...
...
@@ -30,7 +30,6 @@
#include <map>
#include "mpd/Segment.h"
#include "exceptions/ElementNotPresentException.h"
namespace
dash
{
...
...
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