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
823a433b
Commit
823a433b
authored
Nov 25, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shm: cannot be paused
parent
dae295b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
22 deletions
+9
-22
modules/access/Modules.am
modules/access/Modules.am
+1
-1
modules/access/shm.c
modules/access/shm.c
+8
-21
No files found.
modules/access/Modules.am
View file @
823a433b
...
...
@@ -121,7 +121,7 @@ endif
libshm_plugin_la_SOURCES = shm.c
libshm_plugin_la_CFLAGS = $(AM_CFLAGS)
libshm_plugin_la_LIBADD = $(AM_LIBADD)
libshm_plugin_la_LIBADD = $(AM_LIBADD)
$(LIBM)
libvlc_LTLIBRARIES += libshm_plugin.la
libv4l2_plugin_la_SOURCES = \
...
...
modules/access/shm.c
View file @
823a433b
...
...
@@ -25,6 +25,7 @@
#endif
#include <stdarg.h>
#include <math.h>
#include <fcntl.h>
#ifdef HAVE_SYS_SHM_H
# include <sys/ipc.h>
...
...
@@ -128,7 +129,6 @@ struct demux_sys_t
}
mem
;
};
es_out_id_t
*
es
;
mtime_t
interval
;
vlc_timer_t
timer
;
void
(
*
detach
)
(
demux_sys_t
*
);
};
...
...
@@ -211,8 +211,8 @@ static int Open (vlc_object_t *obj)
if
(
rate
<=
0
.)
goto
error
;
sys
->
interval
=
(
float
)
CLOCK_FREQ
/
rate
;
if
(
!
sys
->
interval
)
mtime_t
interval
=
llroundf
((
float
)
CLOCK_FREQ
/
rate
)
;
if
(
!
interval
)
goto
error
;
es_format_t
fmt
;
...
...
@@ -230,7 +230,7 @@ static int Open (vlc_object_t *obj)
/* Initializes demux */
if
(
vlc_timer_create
(
&
sys
->
timer
,
Demux
,
demux
))
goto
error
;
vlc_timer_schedule
(
sys
->
timer
,
false
,
1
,
sys
->
interval
);
vlc_timer_schedule
(
sys
->
timer
,
false
,
1
,
interval
);
demux
->
p_sys
=
sys
;
demux
->
pf_demux
=
NULL
;
...
...
@@ -267,8 +267,6 @@ static void no_detach (demux_sys_t *sys)
*/
static
int
Control
(
demux_t
*
demux
,
int
query
,
va_list
args
)
{
demux_sys_t
*
sys
=
demux
->
p_sys
;
switch
(
query
)
{
case
DEMUX_GET_POSITION
:
...
...
@@ -294,28 +292,17 @@ static int Control (demux_t *demux, int query, va_list args)
}
case
DEMUX_CAN_PAUSE
:
{
bool
*
v
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
v
=
true
;
return
VLC_SUCCESS
;
}
case
DEMUX_SET_PAUSE_STATE
:
{
bool
pausing
=
va_arg
(
args
,
int
);
vlc_timer_schedule
(
sys
->
timer
,
false
,
!
pausing
,
sys
->
interval
);
return
VLC_SUCCESS
;
}
case
DEMUX_CAN_CONTROL_PACE
:
case
DEMUX_CAN_CONTROL_RATE
:
case
DEMUX_CAN_SEEK
:
{
bool
*
v
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
bool
*
v
=
va_arg
(
args
,
bool
*
);
*
v
=
false
;
return
VLC_SUCCESS
;
}
case
DEMUX_SET_PAUSE_STATE
:
return
VLC_SUCCESS
;
/* should not happen */
}
return
VLC_EGENERIC
;
...
...
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