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
4bf20dd9
Commit
4bf20dd9
authored
Oct 11, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: remove unused and incomplete support for multiple windows
parent
2ebff444
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
27 deletions
+15
-27
src/video_output/video_output.c
src/video_output/video_output.c
+15
-26
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+0
-1
No files found.
src/video_output/video_output.c
View file @
4bf20dd9
...
...
@@ -620,45 +620,37 @@ vout_window_t * vout_NewDisplayWindow(vout_thread_t *vout,
vout_window_t
*
window
=
vout
->
p
->
window
.
object
;
if
(
vout
->
p
->
window
.
is_unused
&&
window
!=
NULL
)
{
if
(
window
!=
NULL
)
{
if
(
!
cfg_override
.
is_standalone
==
!
vout
->
p
->
window
.
cfg
.
is_standalone
&&
cfg_override
.
type
==
vout
->
p
->
window
.
cfg
.
type
)
{
/* Reuse the stored window */
msg_Dbg
(
vout
,
"Reusing previous vout window"
);
if
(
cfg_override
.
width
!=
vout
->
p
->
window
.
cfg
.
width
||
cfg_override
.
height
!=
vout
->
p
->
window
.
cfg
.
height
)
vout_window_SetSize
(
window
,
cfg_override
.
width
,
cfg_override
.
height
);
vout
->
p
->
window
.
is_unused
=
false
;
vout
->
p
->
window
.
cfg
=
cfg_override
;
return
window
;
}
vout_window_Delete
(
window
);
vout
->
p
->
window
.
is_unused
=
true
;
vout
->
p
->
window
.
object
=
NULL
;
}
window
=
vout_window_New
(
VLC_OBJECT
(
vout
),
"$window"
,
&
cfg_override
);
if
(
window
!=
NULL
)
{
vout
->
p
->
window
.
is_unused
=
false
;
if
(
window
!=
NULL
)
vout
->
p
->
window
.
cfg
=
cfg_override
;
vout
->
p
->
window
.
object
=
window
;
}
return
window
;
}
void
vout_DeleteDisplayWindow
(
vout_thread_t
*
vout
,
vout_window_t
*
window
)
{
if
(
!
vout
->
p
->
window
.
is_unused
&&
vout
->
p
->
window
.
object
==
window
)
{
vout
->
p
->
window
.
is_unused
=
true
;
}
else
if
(
vout
->
p
->
window
.
is_unused
&&
vout
->
p
->
window
.
object
&&
!
window
)
{
if
(
window
==
NULL
&&
vout
->
p
->
window
.
object
!=
NULL
)
{
vout_window_Delete
(
vout
->
p
->
window
.
object
);
vout
->
p
->
window
.
is_unused
=
true
;
vout
->
p
->
window
.
object
=
NULL
;
}
else
if
(
window
)
{
vout_window_Delete
(
window
);
}
assert
(
vout
->
p
->
window
.
object
==
window
);
}
/* */
...
...
@@ -1395,7 +1387,6 @@ static void ThreadStop(vout_thread_t *vout, vout_display_state_t *state)
static
void
ThreadInit
(
vout_thread_t
*
vout
)
{
vout
->
p
->
window
.
is_unused
=
true
;
vout
->
p
->
window
.
object
=
NULL
;
vout
->
p
->
dead
=
false
;
vout
->
p
->
is_late_dropped
=
var_InheritBool
(
vout
,
"drop-late-frames"
);
...
...
@@ -1407,10 +1398,8 @@ static void ThreadInit(vout_thread_t *vout)
static
void
ThreadClean
(
vout_thread_t
*
vout
)
{
if
(
vout
->
p
->
window
.
object
)
{
assert
(
vout
->
p
->
window
.
is_unused
);
if
(
vout
->
p
->
window
.
object
!=
NULL
)
vout_window_Delete
(
vout
->
p
->
window
.
object
);
}
vout_chrono_Clean
(
&
vout
->
p
->
render
);
vout
->
p
->
dead
=
true
;
vout_control_Dead
(
&
vout
->
p
->
control
);
...
...
src/video_output/vout_internal.h
View file @
4bf20dd9
...
...
@@ -70,7 +70,6 @@ struct vout_thread_sys_t
/* Video output window */
struct
{
bool
is_unused
;
vout_window_cfg_t
cfg
;
vout_window_t
*
object
;
}
window
;
...
...
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