Commit 9d4b0408 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

aout: constify the video_format_t when requesting a vout

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ae681dd8
......@@ -334,7 +334,7 @@ VLC_API block_t *aout_FiltersPlay(aout_filters_t *, block_t *, int rate);
VLC_API block_t *aout_FiltersDrain(aout_filters_t *);
VLC_API void aout_FiltersFlush(aout_filters_t *);
VLC_API vout_thread_t * aout_filter_RequestVout( filter_t *, vout_thread_t *p_vout, video_format_t *p_fmt );
VLC_API vout_thread_t * aout_filter_RequestVout( filter_t *, vout_thread_t *p_vout, const video_format_t *p_fmt );
/** @} */
......
......@@ -38,7 +38,7 @@ enum {
struct aout_request_vout
{
struct vout_thread_t *(*pf_request_vout)( void *, struct vout_thread_t *,
video_format_t *, bool );
const video_format_t *, bool );
void *p_private;
};
......
......@@ -354,7 +354,7 @@ static int VisualizationCallback (vlc_object_t *obj, const char *var,
}
vout_thread_t *aout_filter_RequestVout (filter_t *filter, vout_thread_t *vout,
video_format_t *fmt)
const video_format_t *fmt)
{
/* NOTE: This only works from aout_filters_t.
* If you want to use visualization filters from another place, you will
......
......@@ -278,7 +278,8 @@ static void DecoderUpdateFormatLocked( decoder_t *p_dec )
* Buffers allocation callbacks for the decoders
*****************************************************************************/
static vout_thread_t *aout_request_vout( void *p_private,
vout_thread_t *p_vout, video_format_t *p_fmt, bool b_recyle )
vout_thread_t *p_vout,
const video_format_t *p_fmt, bool b_recyle )
{
decoder_t *p_dec = p_private;
decoder_owner_sys_t *p_owner = p_dec->p_owner;
......
......@@ -195,7 +195,7 @@ static void DisplayVoutTitle( input_resource_t *p_resource,
}
static vout_thread_t *RequestVout( input_resource_t *p_resource,
vout_thread_t *p_vout,
video_format_t *p_fmt, unsigned dpb_size,
const video_format_t *p_fmt, unsigned dpb_size,
bool b_recycle )
{
vlc_assert_locked( &p_resource->lock );
......@@ -460,7 +460,7 @@ void input_resource_SetInput( input_resource_t *p_resource, input_thread_t *p_in
vout_thread_t *input_resource_RequestVout( input_resource_t *p_resource,
vout_thread_t *p_vout,
video_format_t *p_fmt, unsigned dpb_size,
const video_format_t *p_fmt, unsigned dpb_size,
bool b_recycle )
{
vlc_mutex_lock( &p_resource->lock );
......
......@@ -39,7 +39,8 @@ sout_instance_t *input_resource_RequestSout( input_resource_t *, sout_instance_t
/**
* This function handles vout request.
*/
vout_thread_t *input_resource_RequestVout( input_resource_t *, vout_thread_t *, video_format_t *, unsigned dpb_size, bool b_recycle );
vout_thread_t *input_resource_RequestVout( input_resource_t *, vout_thread_t *,
const video_format_t *, unsigned dpb_size, bool b_recycle );
/**
* This function returns one of the current vout if any.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment