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
446593be
Commit
446593be
authored
Nov 27, 2013
by
Vittorio Giovara
Committed by
Jean-Baptiste Kempf
Dec 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: use same source name in DisplayNew
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
9bff58d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
src/video_output/display.c
src/video_output/display.c
+9
-17
No files found.
src/video_output/display.c
View file @
446593be
...
...
@@ -1216,7 +1216,7 @@ struct vlc_gl_t *vout_GetDisplayOpengl(vout_display_t *vd)
}
static
vout_display_t
*
DisplayNew
(
vout_thread_t
*
vout
,
const
video_format_t
*
source
_org
,
const
video_format_t
*
source
,
const
vout_display_state_t
*
state
,
const
char
*
module
,
bool
is_wrapper
,
vout_display_t
*
wrapper
,
...
...
@@ -1233,7 +1233,7 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys
->
sar_initial
.
num
=
state
->
sar
.
num
;
osys
->
sar_initial
.
den
=
state
->
sar
.
den
;
vout_display_GetDefaultDisplaySize
(
&
cfg
->
display
.
width
,
&
cfg
->
display
.
height
,
source
_org
,
cfg
);
source
,
cfg
);
osys
->
vout
=
vout
;
osys
->
is_wrapper
=
is_wrapper
;
...
...
@@ -1258,7 +1258,7 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
cfg_windowed
.
display
.
height
=
0
;
vout_display_GetDefaultDisplaySize
(
&
osys
->
width_saved
,
&
osys
->
height_saved
,
source
_org
,
&
cfg_windowed
);
source
,
&
cfg_windowed
);
}
osys
->
zoom
.
num
=
cfg
->
zoom
.
num
;
osys
->
zoom
.
den
=
cfg
->
zoom
.
den
;
...
...
@@ -1266,7 +1266,7 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys
->
fit_window
=
0
;
osys
->
event
.
fifo
=
NULL
;
osys
->
source
=
*
source
_org
;
osys
->
source
=
*
source
;
osys
->
crop
.
left
=
0
;
osys
->
crop
.
top
=
0
;
osys
->
crop
.
right
=
0
;
...
...
@@ -1276,8 +1276,8 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys
->
crop
.
num
=
0
;
osys
->
crop
.
den
=
0
;
osys
->
sar
.
num
=
osys
->
sar_initial
.
num
?
osys
->
sar_initial
.
num
:
source
_org
->
i_sar_num
;
osys
->
sar
.
den
=
osys
->
sar_initial
.
den
?
osys
->
sar_initial
.
den
:
source
_org
->
i_sar_den
;
osys
->
sar
.
num
=
osys
->
sar_initial
.
num
?
osys
->
sar_initial
.
num
:
source
->
i_sar_num
;
osys
->
sar
.
den
=
osys
->
sar_initial
.
den
?
osys
->
sar_initial
.
den
:
source
->
i_sar_den
;
#ifdef ALLOW_DUMMY_VOUT
vlc_mouse_Init
(
&
osys
->
vout_mouse
);
#endif
...
...
@@ -1292,12 +1292,9 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
}
owner
.
sys
=
osys
;
/* keep a reference to the source before display */
video_format_t
source
=
*
source_org
;
vout_display_t
*
p_display
=
vout_display_New
(
VLC_OBJECT
(
vout
),
module
,
!
is_wrapper
,
&
source
,
cfg
,
&
owner
);
source
,
cfg
,
&
owner
);
if
(
!
p_display
)
{
free
(
osys
);
return
NULL
;
...
...
@@ -1306,16 +1303,11 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
VoutDisplayCreateRender
(
p_display
);
/* Setup delayed request */
if
(
osys
->
sar
.
num
!=
source
.
i_sar_num
||
osys
->
sar
.
den
!=
source
.
i_sar_den
)
if
(
osys
->
sar
.
num
!=
source
->
i_sar_num
||
osys
->
sar
.
den
!=
source
->
i_sar_den
)
osys
->
ch_sar
=
true
;
if
(
osys
->
wm_state
!=
osys
->
wm_state_initial
)
osys
->
ch_wm_state
=
true
;
if
(
source
.
i_x_offset
!=
source_org
->
i_x_offset
||
source
.
i_y_offset
!=
source_org
->
i_y_offset
||
source
.
i_visible_width
!=
source_org
->
i_visible_width
||
source
.
i_visible_height
!=
source_org
->
i_visible_height
)
osys
->
ch_crop
=
true
;
return
p_display
;
}
...
...
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