mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
lavc/libzvbi: remove deprecated API usage
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Josh de Kock <josh@itanimul.li>
This commit is contained in:
parent
68b8be0811
commit
2dafbae994
@ -395,7 +395,7 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si
|
|||||||
if (!ctx->vbi) {
|
if (!ctx->vbi) {
|
||||||
if (!(ctx->vbi = vbi_decoder_new()))
|
if (!(ctx->vbi = vbi_decoder_new()))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
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);
|
vbi_decoder_delete(ctx->vbi);
|
||||||
ctx->vbi = NULL;
|
ctx->vbi = NULL;
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user