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
b5b258f7
Commit
b5b258f7
authored
Oct 22, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed non thread safe callbacks on video-title-show/timeout/position.
parent
82676b9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
42 deletions
+7
-42
src/video_output/video_output.c
src/video_output/video_output.c
+4
-0
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+3
-42
No files found.
src/video_output/video_output.c
View file @
b5b258f7
...
@@ -137,6 +137,10 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
...
@@ -137,6 +137,10 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
/* Take care of some "interface/control" related initialisations */
/* Take care of some "interface/control" related initialisations */
vout_IntfInit
(
vout
);
vout_IntfInit
(
vout
);
vout
->
p
->
title
.
show
=
var_GetBool
(
vout
,
"video-title-show"
);
vout
->
p
->
title
.
timeout
=
var_GetInteger
(
vout
,
"video-title-timeout"
);
vout
->
p
->
title
.
position
=
var_GetInteger
(
vout
,
"video-title-position"
);
/* Get splitter name if present */
/* Get splitter name if present */
char
*
splitter_name
=
var_GetNonEmptyString
(
vout
,
"vout-filter"
);
char
*
splitter_name
=
var_GetNonEmptyString
(
vout
,
"vout-filter"
);
if
(
splitter_name
)
{
if
(
splitter_name
)
{
...
...
src/video_output/vout_intf.c
View file @
b5b258f7
...
@@ -78,12 +78,6 @@ static int SubFilterCallback( vlc_object_t *, char const *,
...
@@ -78,12 +78,6 @@ static int SubFilterCallback( vlc_object_t *, char const *,
vlc_value_t
,
vlc_value_t
,
void
*
);
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
SubMarginCallback
(
vlc_object_t
*
,
char
const
*
,
static
int
SubMarginCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
TitleShowCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
TitleTimeoutCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
TitlePositionCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
/*****************************************************************************
/*****************************************************************************
* vout_IntfInit: called during the vout creation to initialise misc things.
* vout_IntfInit: called during the vout creation to initialise misc things.
...
@@ -185,14 +179,9 @@ void vout_IntfInit( vout_thread_t *p_vout )
...
@@ -185,14 +179,9 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Create
(
p_vout
,
"mouse-hide-timeout"
,
var_Create
(
p_vout
,
"mouse-hide-timeout"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
p_vout
->
p
->
title
.
show
=
var_CreateGetBool
(
p_vout
,
"video-title-show"
);
var_Create
(
p_vout
,
"video-title-show"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
p_vout
->
p
->
title
.
timeout
=
var_CreateGetInteger
(
p_vout
,
var_Create
(
p_vout
,
"video-title-timeout"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
"video-title-timeout"
);
var_Create
(
p_vout
,
"video-title-position"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
p_vout
->
p
->
title
.
position
=
var_CreateGetInteger
(
p_vout
,
"video-title-position"
);
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
);
/* Zoom object var */
/* Zoom object var */
var_Create
(
p_vout
,
"zoom"
,
VLC_VAR_FLOAT
|
VLC_VAR_ISCOMMAND
|
var_Create
(
p_vout
,
"zoom"
,
VLC_VAR_FLOAT
|
VLC_VAR_ISCOMMAND
|
...
@@ -808,31 +797,3 @@ static int SubMarginCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -808,31 +797,3 @@ static int SubMarginCallback( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
int
TitleShowCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
title
.
show
=
newval
.
b_bool
;
return
VLC_SUCCESS
;
}
static
int
TitleTimeoutCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
title
.
timeout
=
(
mtime_t
)
newval
.
i_int
;
return
VLC_SUCCESS
;
}
static
int
TitlePositionCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
title
.
position
=
newval
.
i_int
;
return
VLC_SUCCESS
;
}
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