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
70141801
Commit
70141801
authored
Mar 09, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Mar 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: removed EOFException
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
96789285
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
70 deletions
+13
-70
modules/stream_filter/dash/DASHDownloader.cpp
modules/stream_filter/dash/DASHDownloader.cpp
+2
-6
modules/stream_filter/dash/DASHDownloader.h
modules/stream_filter/dash/DASHDownloader.h
+0
-1
modules/stream_filter/dash/DASHManager.cpp
modules/stream_filter/dash/DASHManager.cpp
+0
-1
modules/stream_filter/dash/DASHManager.h
modules/stream_filter/dash/DASHManager.h
+0
-1
modules/stream_filter/dash/Modules.am
modules/stream_filter/dash/Modules.am
+0
-1
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
...m_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
+0
-1
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
...eam_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
+0
-1
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
...filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
+3
-4
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.h
...m_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.h
+1
-2
modules/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
...les/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
+2
-3
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
..._filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
+4
-5
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
...am_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
+1
-2
modules/stream_filter/dash/exceptions/EOFException.h
modules/stream_filter/dash/exceptions/EOFException.h
+0
-42
No files found.
modules/stream_filter/dash/DASHDownloader.cpp
View file @
70141801
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
using
namespace
dash
;
using
namespace
dash
;
using
namespace
dash
::
http
;
using
namespace
dash
::
http
;
using
namespace
dash
::
logic
;
using
namespace
dash
::
logic
;
using
namespace
dash
::
exception
;
using
namespace
dash
::
buffer
;
using
namespace
dash
::
buffer
;
DASHDownloader
::
DASHDownloader
(
HTTPConnectionManager
*
conManager
,
IAdaptationLogic
*
adaptationLogic
,
BlockBuffer
*
buffer
)
DASHDownloader
::
DASHDownloader
(
HTTPConnectionManager
*
conManager
,
IAdaptationLogic
*
adaptationLogic
,
BlockBuffer
*
buffer
)
...
@@ -67,11 +66,8 @@ void* DASHDownloader::download (void *thread_sys)
...
@@ -67,11 +66,8 @@ void* DASHDownloader::download (void *thread_sys)
{
{
if
(
currentChunk
==
NULL
)
if
(
currentChunk
==
NULL
)
{
{
try
currentChunk
=
adaptationLogic
->
getNextChunk
();
{
if
(
currentChunk
==
NULL
)
currentChunk
=
adaptationLogic
->
getNextChunk
();
}
catch
(
EOFException
&
e
)
{
{
buffer
->
setEOF
(
true
);
buffer
->
setEOF
(
true
);
}
}
...
...
modules/stream_filter/dash/DASHDownloader.h
View file @
70141801
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "http/HTTPConnectionManager.h"
#include "http/HTTPConnectionManager.h"
#include "adaptationlogic/IAdaptationLogic.h"
#include "adaptationlogic/IAdaptationLogic.h"
#include "exceptions/EOFException.h"
#include "buffer/BlockBuffer.h"
#include "buffer/BlockBuffer.h"
#define BLOCKSIZE 32768
#define BLOCKSIZE 32768
...
...
modules/stream_filter/dash/DASHManager.cpp
View file @
70141801
...
@@ -33,7 +33,6 @@ using namespace dash::xml;
...
@@ -33,7 +33,6 @@ using namespace dash::xml;
using
namespace
dash
::
logic
;
using
namespace
dash
::
logic
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
buffer
;
using
namespace
dash
::
buffer
;
using
namespace
dash
::
exception
;
DASHManager
::
DASHManager
(
HTTPConnectionManager
*
conManager
,
MPD
*
mpd
,
DASHManager
::
DASHManager
(
HTTPConnectionManager
*
conManager
,
MPD
*
mpd
,
IAdaptationLogic
::
LogicType
type
,
stream_t
*
stream
)
:
IAdaptationLogic
::
LogicType
type
,
stream_t
*
stream
)
:
...
...
modules/stream_filter/dash/DASHManager.h
View file @
70141801
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "mpd/MPDManagerFactory.h"
#include "mpd/MPDManagerFactory.h"
#include "buffer/BlockBuffer.h"
#include "buffer/BlockBuffer.h"
#include "DASHDownloader.h"
#include "DASHDownloader.h"
#include "exceptions/EOFException.h"
#include "mpd/MPD.h"
#include "mpd/MPD.h"
namespace
dash
namespace
dash
...
...
modules/stream_filter/dash/Modules.am
View file @
70141801
...
@@ -12,7 +12,6 @@ SOURCES_stream_filter_dash = \
...
@@ -12,7 +12,6 @@ SOURCES_stream_filter_dash = \
buffer/BlockBuffer.cpp \
buffer/BlockBuffer.cpp \
buffer/BlockBuffer.h \
buffer/BlockBuffer.h \
buffer/IBufferObserver.h \
buffer/IBufferObserver.h \
exceptions/EOFException.h \
http/Chunk.cpp \
http/Chunk.cpp \
http/Chunk.h \
http/Chunk.h \
http/HTTPConnection.cpp \
http/HTTPConnection.cpp \
...
...
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
View file @
70141801
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
using
namespace
dash
::
logic
;
using
namespace
dash
::
logic
;
using
namespace
dash
::
xml
;
using
namespace
dash
::
xml
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
AbstractAdaptationLogic
::
AbstractAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
AbstractAdaptationLogic
::
AbstractAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
bpsAvg
(
0
),
bpsAvg
(
0
),
...
...
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
View file @
70141801
...
@@ -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/EOFException.h"
struct
stream_t
;
struct
stream_t
;
...
...
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
View file @
70141801
...
@@ -31,7 +31,6 @@ using namespace dash::logic;
...
@@ -31,7 +31,6 @@ using namespace dash::logic;
using
namespace
dash
::
xml
;
using
namespace
dash
::
xml
;
using
namespace
dash
::
http
;
using
namespace
dash
::
http
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
AlwaysBestAdaptationLogic
::
AlwaysBestAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
AlwaysBestAdaptationLogic
::
AlwaysBestAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
AbstractAdaptationLogic
(
mpdManager
,
stream
)
AbstractAdaptationLogic
(
mpdManager
,
stream
)
...
@@ -44,13 +43,13 @@ AlwaysBestAdaptationLogic::~AlwaysBestAdaptationLogic ()
...
@@ -44,13 +43,13 @@ AlwaysBestAdaptationLogic::~AlwaysBestAdaptationLogic ()
{
{
}
}
Chunk
*
AlwaysBestAdaptationLogic
::
getNextChunk
()
throw
(
EOFException
)
Chunk
*
AlwaysBestAdaptationLogic
::
getNextChunk
()
{
{
if
(
this
->
schedule
.
size
()
==
0
)
if
(
this
->
schedule
.
size
()
==
0
)
throw
EOFException
()
;
return
NULL
;
if
(
this
->
count
==
this
->
schedule
.
size
())
if
(
this
->
count
==
this
->
schedule
.
size
())
throw
EOFException
()
;
return
NULL
;
if
(
this
->
count
<
this
->
schedule
.
size
()
)
if
(
this
->
count
<
this
->
schedule
.
size
()
)
{
{
...
...
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.h
View file @
70141801
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include "mpd/IMPDManager.h"
#include "mpd/IMPDManager.h"
#include "mpd/Period.h"
#include "mpd/Period.h"
#include "mpd/Segment.h"
#include "mpd/Segment.h"
#include "exceptions/EOFException.h"
#include "mpd/BasicCMManager.h"
#include "mpd/BasicCMManager.h"
#include <vector>
#include <vector>
...
@@ -45,7 +44,7 @@ namespace dash
...
@@ -45,7 +44,7 @@ namespace dash
AlwaysBestAdaptationLogic
(
dash
::
mpd
::
IMPDManager
*
mpdManager
,
stream_t
*
stream
);
AlwaysBestAdaptationLogic
(
dash
::
mpd
::
IMPDManager
*
mpdManager
,
stream_t
*
stream
);
virtual
~
AlwaysBestAdaptationLogic
();
virtual
~
AlwaysBestAdaptationLogic
();
dash
::
http
::
Chunk
*
getNextChunk
()
throw
(
dash
::
exception
::
EOFException
)
;
dash
::
http
::
Chunk
*
getNextChunk
();
const
mpd
::
Representation
*
getCurrentRepresentation
()
const
;
const
mpd
::
Representation
*
getCurrentRepresentation
()
const
;
private:
private:
...
...
modules/stream_filter/dash/adaptationlogic/IAdaptationLogic.h
View file @
70141801
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <http/Chunk.h>
#include <http/Chunk.h>
#include <adaptationlogic/IDownloadRateObserver.h>
#include <adaptationlogic/IDownloadRateObserver.h>
#include <exceptions/EOFException.h>
#include "mpd/Representation.h"
#include "mpd/Representation.h"
#include "buffer/IBufferObserver.h"
#include "buffer/IBufferObserver.h"
...
@@ -47,8 +46,8 @@ namespace dash
...
@@ -47,8 +46,8 @@ namespace dash
RateBased
RateBased
};
};
virtual
dash
::
http
::
Chunk
*
getNextChunk
()
throw
(
dash
::
exception
::
EOFException
)
=
0
;
virtual
dash
::
http
::
Chunk
*
getNextChunk
()
=
0
;
virtual
const
dash
::
mpd
::
Representation
*
getCurrentRepresentation
()
const
=
0
;
virtual
const
dash
::
mpd
::
Representation
*
getCurrentRepresentation
()
const
=
0
;
/**
/**
* \return The average bitrate in bits per second.
* \return The average bitrate in bits per second.
*/
*/
...
...
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
View file @
70141801
...
@@ -31,7 +31,6 @@ using namespace dash::logic;
...
@@ -31,7 +31,6 @@ using namespace dash::logic;
using
namespace
dash
::
xml
;
using
namespace
dash
::
xml
;
using
namespace
dash
::
http
;
using
namespace
dash
::
http
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
RateBasedAdaptationLogic
::
RateBasedAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
RateBasedAdaptationLogic
::
RateBasedAdaptationLogic
(
IMPDManager
*
mpdManager
,
stream_t
*
stream
)
:
AbstractAdaptationLogic
(
mpdManager
,
stream
),
AbstractAdaptationLogic
(
mpdManager
,
stream
),
...
@@ -45,13 +44,13 @@ RateBasedAdaptationLogic::RateBasedAdaptationLogic (IMPDManager *mpdManager, st
...
@@ -45,13 +44,13 @@ RateBasedAdaptationLogic::RateBasedAdaptationLogic (IMPDManager *mpdManager, st
this
->
height
=
var_InheritInteger
(
stream
,
"dash-prefheight"
);
this
->
height
=
var_InheritInteger
(
stream
,
"dash-prefheight"
);
}
}
Chunk
*
RateBasedAdaptationLogic
::
getNextChunk
()
throw
(
EOFException
)
Chunk
*
RateBasedAdaptationLogic
::
getNextChunk
()
{
{
if
(
this
->
mpdManager
==
NULL
)
if
(
this
->
mpdManager
==
NULL
)
throw
EOFException
()
;
return
NULL
;
if
(
this
->
currentPeriod
==
NULL
)
if
(
this
->
currentPeriod
==
NULL
)
throw
EOFException
()
;
return
NULL
;
uint64_t
bitrate
=
this
->
getBpsAvg
();
uint64_t
bitrate
=
this
->
getBpsAvg
();
...
@@ -61,7 +60,7 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
...
@@ -61,7 +60,7 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
Representation
*
rep
=
this
->
mpdManager
->
getRepresentation
(
this
->
currentPeriod
,
bitrate
,
this
->
width
,
this
->
height
);
Representation
*
rep
=
this
->
mpdManager
->
getRepresentation
(
this
->
currentPeriod
,
bitrate
,
this
->
width
,
this
->
height
);
if
(
rep
==
NULL
)
if
(
rep
==
NULL
)
throw
EOFException
()
;
return
NULL
;
std
::
vector
<
Segment
*>
segments
=
this
->
mpdManager
->
getSegments
(
rep
);
std
::
vector
<
Segment
*>
segments
=
this
->
mpdManager
->
getSegments
(
rep
);
...
...
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
View file @
70141801
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include "xml/Node.h"
#include "xml/Node.h"
#include "mpd/IMPDManager.h"
#include "mpd/IMPDManager.h"
#include "http/Chunk.h"
#include "http/Chunk.h"
#include "exceptions/EOFException.h"
#include "mpd/BasicCMManager.h"
#include "mpd/BasicCMManager.h"
#include <vlc_common.h>
#include <vlc_common.h>
...
@@ -46,7 +45,7 @@ namespace dash
...
@@ -46,7 +45,7 @@ namespace dash
public:
public:
RateBasedAdaptationLogic
(
dash
::
mpd
::
IMPDManager
*
mpdManager
,
stream_t
*
stream
);
RateBasedAdaptationLogic
(
dash
::
mpd
::
IMPDManager
*
mpdManager
,
stream_t
*
stream
);
dash
::
http
::
Chunk
*
getNextChunk
()
throw
(
dash
::
exception
::
EOFException
)
;
dash
::
http
::
Chunk
*
getNextChunk
();
const
dash
::
mpd
::
Representation
*
getCurrentRepresentation
()
const
;
const
dash
::
mpd
::
Representation
*
getCurrentRepresentation
()
const
;
private:
private:
...
...
modules/stream_filter/dash/exceptions/EOFException.h
deleted
100644 → 0
View file @
96789285
/*
* EOFException.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 EOFEXCEPTION_H_
#define EOFEXCEPTION_H_
#include <stdexcept>
namespace
dash
{
namespace
exception
{
class
EOFException
:
public
std
::
exception
{
public:
EOFException
()
:
std
::
exception
()
{}
};
}
}
#endif
/* EOFEXCEPTION_H_ */
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