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
fe187eff
Commit
fe187eff
authored
Apr 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drawable: use var_Inherit*()
parent
7ef83b1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/video_output/drawable.c
modules/video_output/drawable.c
+7
-7
No files found.
modules/video_output/drawable.c
View file @
fe187eff
...
@@ -57,18 +57,18 @@ static vlc_mutex_t serializer = VLC_STATIC_MUTEX;
...
@@ -57,18 +57,18 @@ static vlc_mutex_t serializer = VLC_STATIC_MUTEX;
static
int
Open
(
vout_window_t
*
wnd
,
const
vout_window_cfg_t
*
cfg
)
static
int
Open
(
vout_window_t
*
wnd
,
const
vout_window_cfg_t
*
cfg
)
{
{
VLC_UNUSED
(
cfg
);
VLC_UNUSED
(
cfg
);
void
**
used
,
*
val
;
void
*
val
=
var_InheritAddress
(
wnd
,
"drawable-hwnd"
);
size_t
n
=
0
;
if
(
val
==
NULL
)
return
VLC_EGENERIC
;
if
(
var_Create
(
wnd
->
p_libvlc
,
"hwnd-in-use"
,
VLC_VAR_ADDRESS
)
if
(
var_Create
(
wnd
->
p_libvlc
,
"hwnd-in-use"
,
VLC_VAR_ADDRESS
))
||
var_Create
(
wnd
,
"drawable-hwnd"
,
VLC_VAR_DOINHERIT
|
VLC_VAR_ADDRESS
))
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
val
=
var_GetAddress
(
wnd
,
"drawable-hwnd"
);
var_Destroy
(
wnd
,
"drawable-hwnd"
);
/* Keep a list of busy drawables, so we don't overlap videos if there are
/* Keep a list of busy drawables, so we don't overlap videos if there are
* more than one video track in the stream. */
* more than one video track in the stream. */
void
**
used
;
size_t
n
=
0
;
vlc_mutex_lock
(
&
serializer
);
vlc_mutex_lock
(
&
serializer
);
used
=
var_GetAddress
(
wnd
->
p_libvlc
,
"hwnd-in-use"
);
used
=
var_GetAddress
(
wnd
->
p_libvlc
,
"hwnd-in-use"
);
if
(
used
!=
NULL
)
if
(
used
!=
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