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
Steve Lhomme
VLC
Commits
a4b5488b
Commit
a4b5488b
authored
May 18, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made video_format_t vout_Create/Request parameter const.
parent
3e8f184d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
include/vlc_vout.h
include/vlc_vout.h
+2
-2
src/video_output/video_output.c
src/video_output/video_output.c
+3
-4
No files found.
include/vlc_vout.h
View file @
a4b5488b
...
...
@@ -102,7 +102,7 @@ struct vout_thread_t
* \return a vout if p_fmt is non NULL and the request is successfull, NULL
* otherwise
*/
VLC_EXPORT
(
vout_thread_t
*
,
vout_Request
,
(
vlc_object_t
*
p_this
,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
)
);
VLC_EXPORT
(
vout_thread_t
*
,
vout_Request
,
(
vlc_object_t
*
p_this
,
vout_thread_t
*
p_vout
,
const
video_format_t
*
p_fmt
)
);
#define vout_Request(a,b,c) vout_Request(VLC_OBJECT(a),b,c)
/**
...
...
@@ -114,7 +114,7 @@ VLC_EXPORT( vout_thread_t *, vout_Request, ( vlc_object_t *p_this, vout_thread_t
* \param p_fmt the video format requested
* \return a vout if the request is successfull, NULL otherwise
*/
VLC_EXPORT
(
vout_thread_t
*
,
vout_Create
,
(
vlc_object_t
*
p_this
,
video_format_t
*
p_fmt
)
);
VLC_EXPORT
(
vout_thread_t
*
,
vout_Create
,
(
vlc_object_t
*
p_this
,
const
video_format_t
*
p_fmt
)
);
#define vout_Create(a,b) vout_Create(VLC_OBJECT(a),b)
/**
...
...
src/video_output/video_output.c
View file @
a4b5488b
...
...
@@ -92,15 +92,14 @@ static int VoutValidateFormat(video_format_t *dst,
return
VLC_SUCCESS
;
}
#undef vout_Request
/*****************************************************************************
* vout_Request: find a video output thread, create one, or destroy one.
*****************************************************************************
* This function looks for a video output thread matching the current
* properties. If not found, it spawns a new one.
*****************************************************************************/
vout_thread_t
*
vout_Request
(
vlc_object_t
*
p_this
,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
)
vout_thread_t
*
(
vout_Request
)
(
vlc_object_t
*
p_this
,
vout_thread_t
*
p_vout
,
const
video_format_t
*
p_fmt
)
{
if
(
!
p_fmt
)
{
...
...
@@ -164,7 +163,7 @@ vout_thread_t *vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
* This function creates a new video output thread, and returns a pointer
* to its description. On error, it returns NULL.
*****************************************************************************/
vout_thread_t
*
(
vout_Create
)(
vlc_object_t
*
p_parent
,
video_format_t
*
p_fmt
)
vout_thread_t
*
(
vout_Create
)(
vlc_object_t
*
p_parent
,
const
video_format_t
*
p_fmt
)
{
video_format_t
original
;
if
(
VoutValidateFormat
(
&
original
,
p_fmt
))
...
...
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