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
7127d0c9
Commit
7127d0c9
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 useless AttributeNotPresentException
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
45827b28
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
24 additions
and
86 deletions
+24
-86
modules/stream_filter/dash/Modules.am
modules/stream_filter/dash/Modules.am
+0
-1
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
...eam_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
+0
-1
modules/stream_filter/dash/exceptions/AttributeNotPresentException.h
...eam_filter/dash/exceptions/AttributeNotPresentException.h
+0
-42
modules/stream_filter/dash/mpd/BasicCMManager.cpp
modules/stream_filter/dash/mpd/BasicCMManager.cpp
+22
-33
modules/stream_filter/dash/mpd/BasicCMManager.h
modules/stream_filter/dash/mpd/BasicCMManager.h
+0
-1
modules/stream_filter/dash/mpd/Group.cpp
modules/stream_filter/dash/mpd/Group.cpp
+0
-1
modules/stream_filter/dash/mpd/Group.h
modules/stream_filter/dash/mpd/Group.h
+0
-1
modules/stream_filter/dash/mpd/MPD.cpp
modules/stream_filter/dash/mpd/MPD.cpp
+0
-1
modules/stream_filter/dash/mpd/MPD.h
modules/stream_filter/dash/mpd/MPD.h
+0
-1
modules/stream_filter/dash/mpd/ProgramInformation.cpp
modules/stream_filter/dash/mpd/ProgramInformation.cpp
+0
-1
modules/stream_filter/dash/mpd/ProgramInformation.h
modules/stream_filter/dash/mpd/ProgramInformation.h
+0
-2
modules/stream_filter/dash/mpd/Representation.h
modules/stream_filter/dash/mpd/Representation.h
+2
-1
No files found.
modules/stream_filter/dash/Modules.am
View file @
7127d0c9
...
@@ -10,7 +10,6 @@ SOURCES_stream_filter_dash = \
...
@@ -10,7 +10,6 @@ SOURCES_stream_filter_dash = \
adaptationlogic/NullAdaptationLogic.h \
adaptationlogic/NullAdaptationLogic.h \
adaptationlogic/RateBasedAdaptationLogic.h \
adaptationlogic/RateBasedAdaptationLogic.h \
adaptationlogic/RateBasedAdaptationLogic.cpp \
adaptationlogic/RateBasedAdaptationLogic.cpp \
exceptions/AttributeNotPresentException.h \
exceptions/EOFException.h \
exceptions/EOFException.h \
http/Chunk.cpp \
http/Chunk.cpp \
http/Chunk.h \
http/Chunk.h \
...
...
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
View file @
7127d0c9
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "mpd/Period.h"
#include "mpd/Period.h"
#include "mpd/Representation.h"
#include "mpd/Representation.h"
#include "mpd/Segment.h"
#include "mpd/Segment.h"
#include "exceptions/AttributeNotPresentException.h"
#include "exceptions/EOFException.h"
#include "exceptions/EOFException.h"
namespace
dash
namespace
dash
...
...
modules/stream_filter/dash/exceptions/AttributeNotPresentException.h
deleted
100644 → 0
View file @
45827b28
/*
* AttributeNotPresentException.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 ATTRIBUTENOTPRESENTEXCEPTION_H_
#define ATTRIBUTENOTPRESENTEXCEPTION_H_
#include <stdexcept>
namespace
dash
{
namespace
exception
{
class
AttributeNotPresentException
:
public
std
::
exception
{
public:
AttributeNotPresentException
()
:
std
::
exception
()
{}
};
}
}
#endif
/* ATTRIBUTENOTPRESENTEXCEPTION_H_ */
modules/stream_filter/dash/mpd/BasicCMManager.cpp
View file @
7127d0c9
...
@@ -27,8 +27,9 @@
...
@@ -27,8 +27,9 @@
#include "BasicCMManager.h"
#include "BasicCMManager.h"
#include <cassert>
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
BasicCMManager
::
BasicCMManager
(
MPD
*
mpd
)
BasicCMManager
::
BasicCMManager
(
MPD
*
mpd
)
{
{
...
@@ -60,7 +61,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
...
@@ -60,7 +61,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
{
{
std
::
vector
<
Group
*>
groups
=
period
->
getGroups
();
std
::
vector
<
Group
*>
groups
=
period
->
getGroups
();
long
bitrate
=
0
;
int
bitrate
=
0
;
Representation
*
best
=
NULL
;
Representation
*
best
=
NULL
;
for
(
size_t
i
=
0
;
i
<
groups
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
groups
.
size
();
i
++
)
...
@@ -68,22 +69,16 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
...
@@ -68,22 +69,16 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
std
::
vector
<
Representation
*>
reps
=
groups
.
at
(
i
)
->
getRepresentations
();
std
::
vector
<
Representation
*>
reps
=
groups
.
at
(
i
)
->
getRepresentations
();
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
{
{
try
int
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
{
assert
(
currentBitrate
!=
-
1
);
long
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
if
(
currentBitrate
>
bitrate
)
if
(
currentBitrate
>
bitrate
)
{
bitrate
=
currentBitrate
;
best
=
reps
.
at
(
j
);
}
}
catch
(
AttributeNotPresentException
&
e
)
{
{
/* TODO DEBUG */
bitrate
=
currentBitrate
;
best
=
reps
.
at
(
j
);
}
}
}
}
}
}
return
best
;
return
best
;
}
}
Period
*
BasicCMManager
::
getFirstPeriod
()
Period
*
BasicCMManager
::
getFirstPeriod
()
...
@@ -95,41 +90,35 @@ Period* BasicCMManager::getFirstPeriod ()
...
@@ -95,41 +90,35 @@ Period* BasicCMManager::getFirstPeriod ()
return
periods
.
at
(
0
);
return
periods
.
at
(
0
);
}
}
Representation
*
BasicCMManager
::
getRepresentation
(
Period
*
period
,
long
bitrate
)
Representation
*
BasicCMManager
::
getRepresentation
(
Period
*
period
,
long
bitrate
)
{
{
std
::
vector
<
Group
*>
groups
=
period
->
getGroups
();
std
::
vector
<
Group
*>
groups
=
period
->
getGroups
();
Representation
*
best
=
NULL
;
Representation
*
best
=
NULL
;
long
bestDif
=
-
1
;
int
bestDif
=
-
1
;
for
(
size_t
i
=
0
;
i
<
groups
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
groups
.
size
();
i
++
)
{
{
std
::
vector
<
Representation
*>
reps
=
groups
.
at
(
i
)
->
getRepresentations
();
std
::
vector
<
Representation
*>
reps
=
groups
.
at
(
i
)
->
getRepresentations
();
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
{
{
try
int
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
{
assert
(
currentBitrate
!=
-
1
);
long
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
int
dif
=
bitrate
-
currentBitrate
;
long
dif
=
bitrate
-
currentBitrate
;
if
(
bestDif
==
-
1
)
if
(
bestDif
==
-
1
)
{
bestDif
=
dif
;
best
=
reps
.
at
(
j
);
}
else
{
if
(
dif
>=
0
&&
dif
<
bestDif
)
{
{
bestDif
=
dif
;
bestDif
=
dif
;
best
=
reps
.
at
(
j
);
best
=
reps
.
at
(
j
);
}
}
else
{
if
(
dif
>=
0
&&
dif
<
bestDif
)
{
bestDif
=
dif
;
best
=
reps
.
at
(
j
);
}
}
}
catch
(
AttributeNotPresentException
&
e
)
{
/* TODO DEBUG */
}
}
}
}
}
}
...
...
modules/stream_filter/dash/mpd/BasicCMManager.h
View file @
7127d0c9
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
#include "mpd/SegmentInfo.h"
#include "mpd/SegmentInfo.h"
#include "mpd/Segment.h"
#include "mpd/Segment.h"
#include "mpd/IMPDManager.h"
#include "mpd/IMPDManager.h"
#include "exceptions/AttributeNotPresentException.h"
namespace
dash
namespace
dash
{
{
...
...
modules/stream_filter/dash/mpd/Group.cpp
View file @
7127d0c9
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <vlc_arrays.h>
#include <vlc_arrays.h>
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
Group
::
Group
()
:
Group
::
Group
()
:
subsegmentAlignmentFlag
(
false
)
subsegmentAlignmentFlag
(
false
)
...
...
modules/stream_filter/dash/mpd/Group.h
View file @
7127d0c9
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include "mpd/Representation.h"
#include "mpd/Representation.h"
#include "mpd/CommonAttributesElements.h"
#include "mpd/CommonAttributesElements.h"
#include "exceptions/AttributeNotPresentException.h"
namespace
dash
namespace
dash
{
{
...
...
modules/stream_filter/dash/mpd/MPD.cpp
View file @
7127d0c9
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "MPD.h"
#include "MPD.h"
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
MPD
::
MPD
()
:
MPD
::
MPD
()
:
profile
(
dash
::
mpd
::
UnknownProfile
),
profile
(
dash
::
mpd
::
UnknownProfile
),
...
...
modules/stream_filter/dash/mpd/MPD.h
View file @
7127d0c9
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "mpd/Period.h"
#include "mpd/Period.h"
#include "mpd/BaseUrl.h"
#include "mpd/BaseUrl.h"
#include "mpd/ProgramInformation.h"
#include "mpd/ProgramInformation.h"
#include "exceptions/AttributeNotPresentException.h"
#include "mpd/IMPDManager.h"
#include "mpd/IMPDManager.h"
namespace
dash
namespace
dash
...
...
modules/stream_filter/dash/mpd/ProgramInformation.cpp
View file @
7127d0c9
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "ProgramInformation.h"
#include "ProgramInformation.h"
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
const
std
::
string
&
ProgramInformation
::
getSource
()
const
const
std
::
string
&
ProgramInformation
::
getSource
()
const
{
{
...
...
modules/stream_filter/dash/mpd/ProgramInformation.h
View file @
7127d0c9
...
@@ -28,8 +28,6 @@
...
@@ -28,8 +28,6 @@
#include <string>
#include <string>
#include <map>
#include <map>
#include "exceptions/AttributeNotPresentException.h"
namespace
dash
namespace
dash
{
{
namespace
mpd
namespace
mpd
...
...
modules/stream_filter/dash/mpd/Representation.h
View file @
7127d0c9
...
@@ -46,7 +46,8 @@ namespace dash
...
@@ -46,7 +46,8 @@ namespace dash
/*
/*
* @return The bitrate required for this representation
* @return The bitrate required for this representation
* in Bytes per seconds.
* in Bytes per seconds.
* -1 if an error occurs.
* Will be a valid value, as the parser refuses Representation
* without bandwith.
*/
*/
int
getBandwidth
()
const
;
int
getBandwidth
()
const
;
void
setBandwidth
(
int
bandwidth
);
void
setBandwidth
(
int
bandwidth
);
...
...
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