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
d1ee36b8
Commit
d1ee36b8
authored
Sep 15, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: refactor a bit commands
parent
ebcae016
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
modules/demux/adaptative/plumbing/CommandsQueue.cpp
modules/demux/adaptative/plumbing/CommandsQueue.cpp
+9
-6
modules/demux/adaptative/plumbing/CommandsQueue.hpp
modules/demux/adaptative/plumbing/CommandsQueue.hpp
+10
-5
No files found.
modules/demux/adaptative/plumbing/CommandsQueue.cpp
View file @
d1ee36b8
...
...
@@ -53,10 +53,15 @@ int AbstractCommand::getType() const
return
type
;
}
EsOutSendCommand
::
EsOutSendCommand
(
FakeESOutID
*
p_es
,
block_t
*
p_block_
)
:
AbstractCommand
(
ES_OUT_PRIVATE_COMMAND_SEND
)
AbstractFakeEsCommand
::
AbstractFakeEsCommand
(
int
type
,
FakeESOutID
*
p_es
)
:
AbstractCommand
(
type
)
{
p_fakeid
=
p_es
;
}
EsOutSendCommand
::
EsOutSendCommand
(
FakeESOutID
*
p_es
,
block_t
*
p_block_
)
:
AbstractFakeEsCommand
(
ES_OUT_PRIVATE_COMMAND_SEND
,
p_es
)
{
p_block
=
p_block_
;
}
...
...
@@ -85,9 +90,8 @@ mtime_t EsOutSendCommand::getTime() const
}
EsOutDelCommand
::
EsOutDelCommand
(
FakeESOutID
*
p_es
)
:
Abstract
Command
(
ES_OUT_PRIVATE_COMMAND_DEL
)
Abstract
FakeEsCommand
(
ES_OUT_PRIVATE_COMMAND_DEL
,
p_es
)
{
p_fakeid
=
p_es
;
}
void
EsOutDelCommand
::
Execute
(
es_out_t
*
)
...
...
@@ -96,11 +100,10 @@ void EsOutDelCommand::Execute( es_out_t * )
}
EsOutAddCommand
::
EsOutAddCommand
(
FakeESOutID
*
p_es
,
const
es_format_t
*
p_fmt
)
:
EsOutDelCommand
(
p_es
)
AbstractFakeEsCommand
(
ES_OUT_PRIVATE_COMMAND_ADD
,
p_es
)
{
es_format_Copy
(
&
fmt
,
p_fmt
);
fmt
.
i_group
=
0
;
/* Always ignore group for adaptative */
type
=
ES_OUT_PRIVATE_COMMAND_ADD
;
}
EsOutAddCommand
::~
EsOutAddCommand
()
...
...
modules/demux/adaptative/plumbing/CommandsQueue.hpp
View file @
d1ee36b8
...
...
@@ -48,7 +48,14 @@ namespace adaptative
int
type
;
};
class
EsOutSendCommand
:
public
AbstractCommand
class
AbstractFakeEsCommand
:
public
AbstractCommand
{
protected:
AbstractFakeEsCommand
(
int
,
FakeESOutID
*
);
FakeESOutID
*
p_fakeid
;
};
class
EsOutSendCommand
:
public
AbstractFakeEsCommand
{
friend
class
CommandsFactory
;
public:
...
...
@@ -58,11 +65,10 @@ namespace adaptative
protected:
EsOutSendCommand
(
FakeESOutID
*
,
block_t
*
);
FakeESOutID
*
p_fakeid
;
block_t
*
p_block
;
};
class
EsOutDelCommand
:
public
AbstractCommand
class
EsOutDelCommand
:
public
Abstract
FakeEs
Command
{
friend
class
CommandsFactory
;
public:
...
...
@@ -70,10 +76,9 @@ namespace adaptative
protected:
EsOutDelCommand
(
FakeESOutID
*
);
FakeESOutID
*
p_fakeid
;
};
class
EsOutAddCommand
:
public
EsOutDel
Command
class
EsOutAddCommand
:
public
AbstractFakeEs
Command
{
friend
class
CommandsFactory
;
public:
...
...
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