[vlc-devel] [PATCH 1/2] vpx: refactor error handling

Jean-Baptiste Kempf jb at videolan.org
Tue Feb 9 00:23:35 CET 2016


On 08 Feb, Tristan Matthews wrote :
>  static picture_t *Decode(decoder_t *dec, block_t **pp_block)
>  {
>      struct vpx_codec_ctx *ctx = &dec->p_sys->ctx;
> +    vlc_object_t *p_this = (vlc_object_t *)dec;

This cast is a bit ugly, no?

Are you sure you do need that?

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list