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
11ab2cdc
Commit
11ab2cdc
authored
May 28, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: merge stream outputs
parent
0e944452
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
22 deletions
+7
-22
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+4
-12
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+3
-10
No files found.
modules/demux/adaptative/Streams.cpp
View file @
11ab2cdc
...
@@ -447,10 +447,10 @@ AbstractStreamOutput *DefaultStreamOutputFactory::create(demux_t *demux, int for
...
@@ -447,10 +447,10 @@ AbstractStreamOutput *DefaultStreamOutputFactory::create(demux_t *demux, int for
switch
(
format
)
switch
(
format
)
{
{
case
StreamFormat
:
:
MP4
:
case
StreamFormat
:
:
MP4
:
return
new
MP4StreamOutput
(
demux
);
return
new
BaseStreamOutput
(
demux
,
"mp4"
);
case
StreamFormat
:
:
MPEG2TS
:
case
StreamFormat
:
:
MPEG2TS
:
return
new
MPEG2TSStreamOutput
(
demux
);
return
new
BaseStreamOutput
(
demux
,
"ts"
);
default:
default:
throw
VLC_EBADVAR
;
throw
VLC_EBADVAR
;
...
@@ -460,18 +460,10 @@ AbstractStreamOutput *DefaultStreamOutputFactory::create(demux_t *demux, int for
...
@@ -460,18 +460,10 @@ AbstractStreamOutput *DefaultStreamOutputFactory::create(demux_t *demux, int for
}
}
MP4StreamOutput
::
MP4StreamOutput
(
demux_t
*
demux
)
:
BaseStreamOutput
::
BaseStreamOutput
(
demux_t
*
demux
,
const
std
::
string
&
name
)
:
AbstractStreamOutput
(
demux
)
AbstractStreamOutput
(
demux
)
{
{
demuxstream
=
stream_DemuxNew
(
demux
,
"mp4"
,
fakeesout
);
demuxstream
=
stream_DemuxNew
(
demux
,
name
.
c_str
(),
fakeesout
);
if
(
!
demuxstream
)
throw
VLC_EGENERIC
;
}
MPEG2TSStreamOutput
::
MPEG2TSStreamOutput
(
demux_t
*
demux
)
:
AbstractStreamOutput
(
demux
)
{
demuxstream
=
stream_DemuxNew
(
demux
,
"ts"
,
fakeesout
);
if
(
!
demuxstream
)
if
(
!
demuxstream
)
throw
VLC_EGENERIC
;
throw
VLC_EGENERIC
;
}
}
modules/demux/adaptative/Streams.hpp
View file @
11ab2cdc
...
@@ -141,18 +141,11 @@ namespace adaptative
...
@@ -141,18 +141,11 @@ namespace adaptative
virtual
AbstractStreamOutput
*
create
(
demux_t
*
,
int
streamType
)
const
;
virtual
AbstractStreamOutput
*
create
(
demux_t
*
,
int
streamType
)
const
;
};
};
class
MP4
StreamOutput
:
public
AbstractStreamOutput
class
Base
StreamOutput
:
public
AbstractStreamOutput
{
{
public:
public:
MP4StreamOutput
(
demux_t
*
);
BaseStreamOutput
(
demux_t
*
,
const
std
::
string
&
);
virtual
~
MP4StreamOutput
(){}
virtual
~
BaseStreamOutput
(){}
};
class
MPEG2TSStreamOutput
:
public
AbstractStreamOutput
{
public:
MPEG2TSStreamOutput
(
demux_t
*
);
virtual
~
MPEG2TSStreamOutput
(){}
};
};
}
}
...
...
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