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
2c2f3856
Commit
2c2f3856
authored
Apr 25, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used vout_control for various commands (vout).
It also improves reactivity of seek while paused.
parent
1618a00d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
169 additions
and
186 deletions
+169
-186
src/video_output/control.c
src/video_output/control.c
+10
-1
src/video_output/control.h
src/video_output/control.h
+10
-7
src/video_output/video_output.c
src/video_output/video_output.c
+147
-168
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+2
-8
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+0
-2
No files found.
src/video_output/control.c
View file @
2c2f3856
...
...
@@ -40,7 +40,8 @@ void vout_control_cmd_Clean(vout_control_cmd_t *cmd)
switch
(
cmd
->
type
)
{
//case VOUT_CONTROL_OSD_MESSAGE:
case
VOUT_CONTROL_OSD_TITLE
:
free
(
cmd
->
u
.
message
.
string
);
case
VOUT_CONTROL_CHANGE_FILTERS
:
free
(
cmd
->
u
.
string
);
break
;
#if 0
case VOUT_CONTROL_OSD_TEXT:
...
...
@@ -165,6 +166,14 @@ void vout_control_PushPair(vout_control_t *ctrl, int type, int a, int b)
cmd
.
u
.
pair
.
b
=
b
;
vout_control_Push
(
ctrl
,
&
cmd
);
}
void
vout_control_PushString
(
vout_control_t
*
ctrl
,
int
type
,
const
char
*
string
)
{
vout_control_cmd_t
cmd
;
vout_control_cmd_Init
(
&
cmd
,
type
);
cmd
.
u
.
string
=
strdup
(
string
);
vout_control_Push
(
ctrl
,
&
cmd
);
}
int
vout_control_Pop
(
vout_control_t
*
ctrl
,
vout_control_cmd_t
*
cmd
,
mtime_t
deadline
,
mtime_t
timeout
)
...
...
src/video_output/control.h
View file @
2c2f3856
...
...
@@ -38,12 +38,6 @@ enum {
VOUT_CONTROL_START,
VOUT_CONTROL_STOP,
/* */
VOUT_CONTROL_RESET,
VOUT_CONTROL_FLUSH,
VOUT_CONTROL_PAUSE,
VOUT_CONTROL_STEP,
/* Controls */
VOUT_CONTROL_FULLSCREEN,
VOUT_CONTROL_DISPLAY_FILLED,
...
...
@@ -62,7 +56,13 @@ enum {
VOUT_CONTROL_OSD_ICON,
VOUT_CONTROL_OSD_SUBPICTURE,
#endif
VOUT_CONTROL_OSD_TITLE
,
VOUT_CONTROL_OSD_TITLE
,
/* string */
VOUT_CONTROL_CHANGE_FILTERS
,
/* string */
VOUT_CONTROL_PAUSE
,
VOUT_CONTROL_RESET
,
VOUT_CONTROL_FLUSH
,
/* time */
VOUT_CONTROL_STEP
,
/* time_ptr */
};
typedef
struct
{
...
...
@@ -71,6 +71,8 @@ typedef struct {
union
{
bool
boolean
;
mtime_t
time
;
mtime_t
*
time_ptr
;
char
*
string
;
struct
{
int
a
;
int
b
;
...
...
@@ -149,6 +151,7 @@ void vout_control_PushBool(vout_control_t *, int type, bool boolean);
void
vout_control_PushTime
(
vout_control_t
*
,
int
type
,
mtime_t
time
);
void
vout_control_PushMessage
(
vout_control_t
*
,
int
type
,
int
channel
,
const
char
*
string
);
void
vout_control_PushPair
(
vout_control_t
*
,
int
type
,
int
a
,
int
b
);
void
vout_control_PushString
(
vout_control_t
*
,
int
type
,
const
char
*
string
);
void
vout_control_Wake
(
vout_control_t
*
);
/* control inside of the vout thread */
...
...
src/video_output/video_output.c
View file @
2c2f3856
This diff is collapsed.
Click to expand it.
src/video_output/vout_internal.h
View file @
2c2f3856
...
...
@@ -67,8 +67,6 @@ struct vout_thread_sys_t
picture_t
*
filtered
;
}
display
;
bool
b_picture_empty
;
vlc_cond_t
picture_wait
;
struct
{
mtime_t
date
;
mtime_t
timestamp
;
...
...
@@ -78,7 +76,6 @@ struct vout_thread_sys_t
}
displayed
;
struct
{
bool
is_requested
;
mtime_t
last
;
mtime_t
timestamp
;
}
step
;
...
...
@@ -88,16 +85,13 @@ struct vout_thread_sys_t
mtime_t
date
;
}
pause
;
/* OSD title configuration */
struct
{
bool
show
;
mtime_t
timeout
;
int
position
;
char
*
value
;
}
title
;
/* */
vlc_mutex_t
vfilter_lock
;
/**< video filter2 lock */
/* */
unsigned
int
i_par_num
;
/**< monitor pixel aspect-ratio */
unsigned
int
i_par_den
;
/**< monitor pixel aspect-ratio */
...
...
@@ -111,8 +105,8 @@ struct vout_thread_sys_t
bool
b_filter_change
;
/* Video filter2 chain */
vlc_mutex_t
vfilter_lock
;
filter_chain_t
*
p_vf2_chain
;
char
*
psz_vf2
;
/* Snapshot interface */
vout_snapshot_t
snapshot
;
...
...
src/video_output/vout_intf.c
View file @
2c2f3856
...
...
@@ -180,8 +180,6 @@ void vout_IntfInit( vout_thread_t *p_vout )
"video-title-timeout"
);
p_vout
->
p
->
title
.
position
=
var_CreateGetInteger
(
p_vout
,
"video-title-position"
);
p_vout
->
p
->
title
.
value
=
NULL
;
var_AddCallback
(
p_vout
,
"video-title-show"
,
TitleShowCallback
,
NULL
);
var_AddCallback
(
p_vout
,
"video-title-timeout"
,
TitleTimeoutCallback
,
NULL
);
var_AddCallback
(
p_vout
,
"video-title-position"
,
TitlePositionCallback
,
NULL
);
...
...
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