[vlc-devel] [PATCH] crystalhd: fix cast warning

Rémi Denis-Courmont remi at remlab.net
Tue Jul 9 16:31:06 CEST 2019


Le tiistaina 9. heinäkuuta 2019, 15.32.57 EEST Steve Lhomme a écrit :
> ---
>  modules/codec/crystalhd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/codec/crystalhd.c b/modules/codec/crystalhd.c
> index 98526e175ce..4c824e0f732 100644
> --- a/modules/codec/crystalhd.c
> +++ b/modules/codec/crystalhd.c
> @@ -478,7 +478,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t
> *p_block ) proc_out.PicInfo.width  = p_dec->fmt_out.video.i_width;
>      proc_out.PicInfo.height = p_dec->fmt_out.video.i_height;
>      proc_out.PoutFlags      = BC_POUT_FLAGS_SIZE;
> -    proc_out.AppCallBack    = ourCallback;
> +    proc_out.AppCallBack    = (dts_pout_callback) ourCallback;
>      proc_out.hnd            = p_dec;
>      p_sys->proc_out         = &proc_out;

That cast looks dubious. It seems more like ourCallback prototype is wrong.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list