Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
af0f20c9
Commit
af0f20c9
authored
Jun 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* livedotcom: begin support of PAUSE. It doesn't work yet, resume
always restarts from the start :(
parent
cfceb817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
2 deletions
+39
-2
modules/demux/livedotcom.cpp
modules/demux/livedotcom.cpp
+39
-2
No files found.
modules/demux/livedotcom.cpp
View file @
af0f20c9
...
...
@@ -679,7 +679,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int64_t
*
pi64
;
double
*
pf
,
f
;
vlc_bool_t
*
pb
;
vlc_bool_t
*
pb
,
b_bool
;
int
i
;
switch
(
i_query
)
{
...
...
@@ -738,13 +739,49 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Special for access_demux */
case
DEMUX_CAN_PAUSE
:
pb
=
(
vlc_bool_t
*
)
va_arg
(
args
,
vlc_bool_t
*
);
if
(
p_sys
->
rtsp
)
*
pb
=
VLC_TRUE
;
/* Not always true, but will be handled in SET_PAUSE_STATE */
else
*
pb
=
VLC_FALSE
;
return
VLC_SUCCESS
;
case
DEMUX_CAN_CONTROL_PACE
:
/* TODO */
pb
=
(
vlc_bool_t
*
)
va_arg
(
args
,
vlc_bool_t
*
);
*
pb
=
VLC_FALSE
;
return
VLC_SUCCESS
;
case
DEMUX_SET_PAUSE_STATE
:
MediaSubsessionIterator
*
iter
;
MediaSubsession
*
sub
;
b_bool
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_t
);
if
(
p_sys
->
rtsp
==
NULL
)
return
VLC_EGENERIC
;
iter
=
new
MediaSubsessionIterator
(
*
p_sys
->
ms
);
while
(
(
sub
=
iter
->
next
()
)
!=
NULL
)
{
if
(
(
b_bool
&&
!
p_sys
->
rtsp
->
pauseMediaSubsession
(
*
sub
)
)
||
(
!
b_bool
&&
!
p_sys
->
rtsp
->
playMediaSubsession
(
*
sub
,
-
1
)
)
)
{
delete
iter
;
return
VLC_EGENERIC
;
}
}
delete
iter
;
/* reset PCR and PCR start, mmh won't work well for multi-stream I fear */
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
live_track_t
*
tk
=
p_sys
->
track
[
i
];
tk
->
i_pts
=
0
;
}
p_sys
->
i_pcr_start
=
0
;
/* FIXME Wrong */
p_sys
->
i_pcr
=
0
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TITLE_INFO
:
case
DEMUX_SET_TITLE
:
case
DEMUX_SET_SEEKPOINT
:
...
...
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