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
b74c4c50
Commit
b74c4c50
authored
Oct 02, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: add pcr reset command
parent
42880f79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
modules/demux/adaptative/plumbing/CommandsQueue.cpp
modules/demux/adaptative/plumbing/CommandsQueue.cpp
+18
-1
modules/demux/adaptative/plumbing/CommandsQueue.hpp
modules/demux/adaptative/plumbing/CommandsQueue.hpp
+12
-0
No files found.
modules/demux/adaptative/plumbing/CommandsQueue.cpp
View file @
b74c4c50
...
...
@@ -19,6 +19,7 @@
*****************************************************************************/
#include "CommandsQueue.hpp"
#include "FakeESOutID.hpp"
#include "FakeESOut.hpp"
#include <vlc_es_out.h>
#include <vlc_block.h>
#include <algorithm>
...
...
@@ -30,7 +31,8 @@ enum
ES_OUT_PRIVATE_COMMAND_ADD
=
ES_OUT_PRIVATE_START
,
ES_OUT_PRIVATE_COMMAND_DEL
,
ES_OUT_PRIVATE_COMMAND_DESTROY
,
ES_OUT_PRIVATE_COMMAND_SEND
ES_OUT_PRIVATE_COMMAND_SEND
,
ES_OUT_PRIVATE_COMMAND_DISCONTINUITY
};
AbstractCommand
::
AbstractCommand
(
int
type_
)
...
...
@@ -150,6 +152,16 @@ void EsOutDestroyCommand::Execute( es_out_t *out )
es_out_Delete
(
out
);
}
EsOutControlResetPCRCommand
::
EsOutControlResetPCRCommand
()
:
AbstractCommand
(
ES_OUT_PRIVATE_COMMAND_DISCONTINUITY
)
{
}
void
EsOutControlResetPCRCommand
::
Execute
(
es_out_t
*
)
{
}
/*
* Commands Default Factory
*/
...
...
@@ -179,6 +191,11 @@ EsOutDestroyCommand * CommandsFactory::createEsOutDestroyCommand()
return
new
(
std
::
nothrow
)
EsOutDestroyCommand
();
}
EsOutControlResetPCRCommand
*
CommandsFactory
::
creatEsOutControlResetPCRCommand
()
{
return
new
(
std
::
nothrow
)
EsOutControlResetPCRCommand
();
}
/*
* Commands Queue management
*/
...
...
modules/demux/adaptative/plumbing/CommandsQueue.hpp
View file @
b74c4c50
...
...
@@ -32,6 +32,7 @@
namespace
adaptative
{
class
FakeESOut
;
class
FakeESOutID
;
class
AbstractCommand
...
...
@@ -113,6 +114,16 @@ namespace adaptative
EsOutDestroyCommand
();
};
class
EsOutControlResetPCRCommand
:
public
AbstractCommand
{
friend
class
CommandsFactory
;
public:
virtual
void
Execute
(
es_out_t
*
out
);
protected:
EsOutControlResetPCRCommand
();
};
/* Factory so we can alter behaviour and filter on execution */
class
CommandsFactory
{
...
...
@@ -122,6 +133,7 @@ namespace adaptative
virtual
EsOutDelCommand
*
createEsOutDelCommand
(
FakeESOutID
*
);
virtual
EsOutAddCommand
*
createEsOutAddCommand
(
FakeESOutID
*
,
const
es_format_t
*
);
virtual
EsOutControlPCRCommand
*
createEsOutControlPCRCommand
(
int
,
mtime_t
);
virtual
EsOutControlResetPCRCommand
*
creatEsOutControlResetPCRCommand
();
virtual
EsOutDestroyCommand
*
createEsOutDestroyCommand
();
};
...
...
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