Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
d76d1a6d
Commit
d76d1a6d
authored
Dec 19, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display: balance format init/clean
parent
f4a5d339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/video_output/display.c
src/video_output/display.c
+5
-3
No files found.
src/video_output/display.c
View file @
d76d1a6d
...
...
@@ -77,12 +77,14 @@ static int vout_display_start(void *func, va_list ap)
video_format_t
*
fmtp
=
va_arg
(
ap
,
video_format_t
*
);
vlc_video_context
*
context
=
va_arg
(
ap
,
vlc_video_context
*
);
video_format_Clean
(
fmtp
);
video_format_Copy
(
fmtp
,
&
vd
->
source
);
fmtp
->
i_sar_num
=
0
;
fmtp
->
i_sar_den
=
0
;
return
activate
(
vd
,
cfg
,
fmtp
,
context
);
int
ret
=
activate
(
vd
,
cfg
,
fmtp
,
context
);
if
(
ret
!=
VLC_SUCCESS
)
video_format_Clean
(
fmtp
);
return
ret
;
}
/**
...
...
@@ -99,7 +101,6 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
/* */
video_format_Copy
(
&
vd
->
source
,
fmt
);
video_format_Init
(
&
vd
->
fmt
,
0
);
/* Picture buffer does not have the concept of aspect ratio */
...
...
@@ -130,6 +131,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
vout_window_SetSize
(
cfg
->
window
,
cfg
->
display
.
width
,
cfg
->
display
.
height
);
}
else
{
video_format_Copy
(
&
vd
->
fmt
,
&
vd
->
source
);
vd
->
module
=
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