[FFmpeg-devel] [PATCH] lavc/libzvbi: remove deprecated API usage

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Feb 12 01:40:12 EET 2017


2017-02-12 0:23 GMT+01:00 Josh de Kock <josh at itanimul.li>:

> -        if (!vbi_event_handler_add(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
> +        if (!vbi_event_handler_register(ctx->vbi, VBI_EVENT_TTX_PAGE, handler, ctx)) {
>              vbi_decoder_delete(ctx->vbi);
>              ctx->vbi = NULL;
>              return AVERROR(ENOMEM);
> @@ -524,8 +524,12 @@ static int teletext_close_decoder(AVCodecContext *avctx)
>          subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
>      av_freep(&ctx->pages);
>
> -    vbi_decoder_delete(ctx->vbi);
> -    ctx->vbi = NULL;
> +    if (ctx->vbi) {
> +        vbi_event_handler_unregister(ctx->vbi, handler, ctx);

Does this work with 0.2.28?

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list