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
c261c25f
Commit
c261c25f
authored
Oct 30, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't forget to release the video output object
parent
d5b5c6cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/control/video.c
src/control/video.c
+8
-7
No files found.
src/control/video.c
View file @
c261c25f
...
...
@@ -325,29 +325,30 @@ char *libvlc_video_get_aspect_ratio( libvlc_input_t *p_input,
libvlc_exception_t
*
p_e
)
{
char
*
psz_aspect
=
0
;
vout_thread_t
*
p_vout
1
=
GetVout
(
p_input
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
if
(
!
p_vout
1
)
if
(
!
p_vout
)
return
0
;
psz_aspect
=
var_GetString
(
p_vout
1
,
"aspect-ratio"
);
vlc_object_release
(
p_vout
1
);
psz_aspect
=
var_GetString
(
p_vout
,
"aspect-ratio"
);
vlc_object_release
(
p_vout
);
return
psz_aspect
;
}
void
libvlc_video_set_aspect_ratio
(
libvlc_input_t
*
p_input
,
char
*
psz_aspect
,
libvlc_exception_t
*
p_e
)
{
vout_thread_t
*
p_vout
1
=
GetVout
(
p_input
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
int
i_ret
=
-
1
;
if
(
!
p_vout
1
)
if
(
!
p_vout
)
return
;
i_ret
=
var_SetString
(
p_vout
1
,
"aspect-ratio"
,
psz_aspect
);
i_ret
=
var_SetString
(
p_vout
,
"aspect-ratio"
,
psz_aspect
);
if
(
i_ret
)
libvlc_exception_raise
(
p_e
,
"Unexpected error while setting aspect-ratio value"
);
vlc_object_release
(
p_vout
);
}
int
libvlc_video_destroy
(
libvlc_input_t
*
p_input
,
...
...
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