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
05aa24c8
Commit
05aa24c8
authored
Oct 08, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: remove unused streamType
parent
184a8446
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
92 deletions
+0
-92
modules/demux/Makefile.am
modules/demux/Makefile.am
+0
-1
modules/demux/adaptative/SegmentTracker.hpp
modules/demux/adaptative/SegmentTracker.hpp
+0
-1
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+0
-21
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+0
-4
modules/demux/adaptative/StreamsType.hpp
modules/demux/adaptative/StreamsType.hpp
+0
-39
modules/demux/adaptative/playlist/BasePeriod.cpp
modules/demux/adaptative/playlist/BasePeriod.cpp
+0
-23
modules/demux/adaptative/playlist/BasePeriod.h
modules/demux/adaptative/playlist/BasePeriod.h
+0
-3
No files found.
modules/demux/Makefile.am
View file @
05aa24c8
...
...
@@ -318,7 +318,6 @@ libadaptative_plugin_la_SOURCES = \
demux/adaptative/StreamFormat.hpp
\
demux/adaptative/Streams.cpp
\
demux/adaptative/Streams.hpp
\
demux/adaptative/StreamsType.hpp
\
demux/adaptative/Time.hpp
\
demux/adaptative/tools/Debug.hpp
\
demux/adaptative/tools/Helper.cpp
\
...
...
modules/demux/adaptative/SegmentTracker.hpp
View file @
05aa24c8
...
...
@@ -24,7 +24,6 @@
# include "config.h"
#endif
#include "StreamsType.hpp"
#include <vlc_common.h>
#include <list>
...
...
modules/demux/adaptative/Streams.cpp
View file @
05aa24c8
...
...
@@ -35,7 +35,6 @@ using namespace adaptative::logic;
AbstractStream
::
AbstractStream
(
demux_t
*
demux_
,
const
StreamFormat
&
format_
)
{
p_realdemux
=
demux_
;
type
=
UNKNOWN
;
format
=
format_
;
adaptationLogic
=
NULL
;
currentChunk
=
NULL
;
...
...
@@ -80,21 +79,6 @@ AbstractStream::~AbstractStream()
delete
fakeesout
;
}
StreamType
AbstractStream
::
mimeToType
(
const
std
::
string
&
mime
)
{
StreamType
mimetype
;
if
(
!
mime
.
compare
(
0
,
6
,
"video/"
))
mimetype
=
VIDEO
;
else
if
(
!
mime
.
compare
(
0
,
6
,
"audio/"
))
mimetype
=
AUDIO
;
else
if
(
!
mime
.
compare
(
0
,
12
,
"application/"
))
mimetype
=
APPLICATION
;
else
if
(
!
mime
.
compare
(
0
,
5
,
"text/"
))
mimetype
=
SUBTITLE
;
else
/* unknown of unsupported */
mimetype
=
UNKNOWN
;
return
mimetype
;
}
void
AbstractStream
::
bind
(
AbstractAdaptationLogic
*
logic
,
SegmentTracker
*
tracker
,
HTTPConnectionManager
*
conn
)
...
...
@@ -157,11 +141,6 @@ int AbstractStream::esCount() const
return
fakeesout
->
esCount
();
}
bool
AbstractStream
::
operator
==
(
const
AbstractStream
&
stream
)
const
{
return
stream
.
type
==
type
;
}
SegmentChunk
*
AbstractStream
::
getChunk
()
{
if
(
currentChunk
==
NULL
&&
!
eof
)
...
...
modules/demux/adaptative/Streams.hpp
View file @
05aa24c8
...
...
@@ -25,7 +25,6 @@
#endif
#include <vlc_common.h>
#include "StreamsType.hpp"
#include "StreamFormat.hpp"
#include "ChunksSource.hpp"
...
...
@@ -64,8 +63,6 @@ namespace adaptative
public:
AbstractStream
(
demux_t
*
,
const
StreamFormat
&
);
virtual
~
AbstractStream
();
bool
operator
==
(
const
AbstractStream
&
)
const
;
static
StreamType
mimeToType
(
const
std
::
string
&
mime
);
void
bind
(
AbstractAdaptationLogic
*
,
SegmentTracker
*
,
HTTPConnectionManager
*
);
...
...
@@ -106,7 +103,6 @@ namespace adaptative
Demuxer
*
syncdemux
;
demux_t
*
p_realdemux
;
StreamType
type
;
StreamFormat
format
;
AbstractAdaptationLogic
*
adaptationLogic
;
...
...
modules/demux/adaptative/StreamsType.hpp
deleted
100644 → 0
View file @
184a8446
/*
* StreamsType.hpp
*****************************************************************************
* Copyright (C) 2014 - VideoLAN and VLC authors
*
* 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 Lesser 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 STREAMSTYPE_HPP
#define STREAMSTYPE_HPP
namespace
adaptative
{
enum
StreamType
{
UNKNOWN
=
0
,
VIDEO
,
AUDIO
,
SUBTITLE
,
APPLICATION
};
static
const
int
StreamTypeCount
=
APPLICATION
+
1
;
}
#endif
modules/demux/adaptative/playlist/BasePeriod.cpp
View file @
05aa24c8
...
...
@@ -61,18 +61,6 @@ const std::vector<BaseAdaptationSet*>& BasePeriod::getAdaptationSets() const
return
adaptationSets
;
}
const
std
::
vector
<
BaseAdaptationSet
*>
BasePeriod
::
getAdaptationSets
(
adaptative
::
StreamType
type
)
const
{
std
::
vector
<
BaseAdaptationSet
*>
list
;
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
it
;
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
++
it
)
{
if
(
AbstractStream
::
mimeToType
((
*
it
)
->
getMimeType
())
==
type
)
list
.
push_back
(
*
it
);
}
return
list
;
}
void
BasePeriod
::
addAdaptationSet
(
BaseAdaptationSet
*
adaptationSet
)
{
if
(
adaptationSet
!=
NULL
)
...
...
@@ -93,17 +81,6 @@ BaseAdaptationSet *BasePeriod::getAdaptationSetByID(const ID &id)
return
NULL
;
}
BaseAdaptationSet
*
BasePeriod
::
getAdaptationSet
(
adaptative
::
StreamType
type
)
const
{
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
it
;
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
++
it
)
{
if
(
AbstractStream
::
mimeToType
((
*
it
)
->
getMimeType
())
==
type
)
return
*
it
;
}
return
NULL
;
}
void
BasePeriod
::
debug
(
vlc_object_t
*
obj
,
int
indent
)
const
{
std
::
string
text
(
indent
,
' '
);
...
...
modules/demux/adaptative/playlist/BasePeriod.h
View file @
05aa24c8
...
...
@@ -29,7 +29,6 @@
#include "BaseAdaptationSet.h"
#include "SegmentInformation.hpp"
#include "../tools/Properties.hpp"
#include "../StreamsType.hpp"
namespace
adaptative
{
...
...
@@ -42,9 +41,7 @@ namespace adaptative
virtual
~
BasePeriod
();
const
std
::
vector
<
BaseAdaptationSet
*>&
getAdaptationSets
()
const
;
const
std
::
vector
<
BaseAdaptationSet
*>
getAdaptationSets
(
StreamType
)
const
;
BaseAdaptationSet
*
getAdaptationSetByID
(
const
ID
&
);
BaseAdaptationSet
*
getAdaptationSet
(
StreamType
)
const
;
void
addAdaptationSet
(
BaseAdaptationSet
*
AdaptationSet
);
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
...
...
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