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
adced89b
Commit
adced89b
authored
Sep 18, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_output: avoid variable shadowing
parent
7908311a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
src/video_output/display.c
src/video_output/display.c
+11
-14
No files found.
src/video_output/display.c
View file @
adced89b
...
...
@@ -1624,23 +1624,20 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
wrapper
->
sys
=
sys
;
/* */
video_splitter_owner_t
*
owner
=
malloc
(
sizeof
(
*
owner
));
if
(
!
owner
)
abort
();
owner
->
wrapper
=
wrapper
;
splitter
->
p_owner
=
owner
;
video_splitter_owner_t
*
vso
=
xmalloc
(
sizeof
(
*
vso
));
vso
->
wrapper
=
wrapper
;
splitter
->
p_owner
=
vso
;
splitter
->
pf_picture_new
=
SplitterPictureNew
;
splitter
->
pf_picture_del
=
SplitterPictureDel
;
/* */
TAB_INIT
(
sys
->
count
,
sys
->
display
);
for
(
int
i
=
0
;
i
<
splitter
->
i_output
;
i
++
)
{
vout_display_owner_t
owner
;
owner
.
event
=
SplitterEvent
;
owner
.
window_new
=
SplitterNewWindow
;
owner
.
window_del
=
SplitterDelWindow
;
vout_display_owner_t
vdo
=
{
.
event
=
SplitterEvent
,
.
window_new
=
SplitterNewWindow
,
.
window_del
=
SplitterDelWindow
,
};
const
video_splitter_output_t
*
output
=
&
splitter
->
p_output
[
i
];
vout_display_state_t
ostate
;
...
...
@@ -1654,9 +1651,9 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
ostate
.
cfg
.
zoom
.
den
=
1
;
vout_display_t
*
vd
=
DisplayNew
(
vout
,
&
output
->
fmt
,
&
ostate
,
output
->
psz_module
?
output
->
psz_module
:
module
,
false
,
wrapper
,
double_click_timeout
,
hide_timeout
,
&
owner
);
output
->
psz_module
?
output
->
psz_module
:
module
,
false
,
wrapper
,
double_click_timeout
,
hide_timeout
,
&
vdo
);
if
(
!
vd
)
{
vout_DeleteDisplay
(
wrapper
,
NULL
);
return
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