Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
110b6818
Commit
110b6818
authored
Jan 30, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: added generic mpd generation
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
1def2aa7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/stream_filter/dash/dash.cpp
modules/stream_filter/dash/dash.cpp
+6
-7
No files found.
modules/stream_filter/dash/dash.cpp
View file @
110b6818
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
#include "xml/DOMParser.h"
#include "xml/DOMParser.h"
#include "http/HTTPConnectionManager.h"
#include "http/HTTPConnectionManager.h"
#include "adaptationlogic/IAdaptationLogic.h"
#include "adaptationlogic/IAdaptationLogic.h"
#include "mpd/
BasicCMParser
.h"
#include "mpd/
MPDFactory
.h"
#define SEEK 0
#define SEEK 0
...
@@ -90,19 +90,18 @@ static int Open(vlc_object_t *p_obj)
...
@@ -90,19 +90,18 @@ static int Open(vlc_object_t *p_obj)
msg_Dbg
(
p_stream
,
"Could not parse mpd file."
);
msg_Dbg
(
p_stream
,
"Could not parse mpd file."
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
//Begin the actual MPD parsing:
//Begin the actual MPD parsing:
dash
::
mpd
::
BasicCMParser
mpdParser
(
parser
.
getRootNode
(),
p_stream
->
p_source
);
dash
::
mpd
::
MPD
*
mpd
=
dash
::
mpd
::
MPDFactory
::
create
(
parser
.
getRootNode
(),
p_stream
->
p_source
,
parser
.
getProfile
());
if
(
mpdParser
.
parse
()
==
false
||
mpdParser
.
getMPD
()
==
NULL
)
{
if
(
mpd
==
NULL
)
msg_Err
(
p_obj
,
"MPD file parsing failed."
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
stream_sys_t
*
p_sys
=
(
stream_sys_t
*
)
malloc
(
sizeof
(
stream_sys_t
));
stream_sys_t
*
p_sys
=
(
stream_sys_t
*
)
malloc
(
sizeof
(
stream_sys_t
));
if
(
unlikely
(
p_sys
==
NULL
))
if
(
unlikely
(
p_sys
==
NULL
))
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
p_sys
->
p_mpd
=
mpd
Parser
.
getMPD
()
;
p_sys
->
p_mpd
=
mpd
;
dash
::
http
::
HTTPConnectionManager
*
p_conManager
=
dash
::
http
::
HTTPConnectionManager
*
p_conManager
=
new
dash
::
http
::
HTTPConnectionManager
(
p_stream
);
new
dash
::
http
::
HTTPConnectionManager
(
p_stream
);
dash
::
DASHManager
*
p_dashManager
=
dash
::
DASHManager
*
p_dashManager
=
...
...
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