History

avfilter/af_lv2: Free inpad's name generically

Andreas Rheinhardt committed 5 years ago

Commit f28db2c1 parent 7670e241 file · +3 −8Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_lv2.c+3−8
@@ -393,7 +393,7 @@ static av_cold int init(AVFilterContext *ctx) · 392 unmodified lines
393393 const LilvPlugin *plugin;
394394 AVFilterPad pad = { NULL };
395395 LilvNode *uri;
396− int i;
396+ int i, ret;
397397
398398 s->world = lilv_world_new();
399399 if (!s->world)
@@ -464,10 +464,8 @@ static av_cold int init(AVFilterContext *ctx) · 64 unmodified lines
464464 return AVERROR(ENOMEM);
465465
466466 pad.filter_frame = filter_frame;
467− if (ff_append_inpad(ctx, &pad) < 0) {
468− av_freep(&pad.name);
469− return AVERROR(ENOMEM);
470− }
467+ if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
468+ return ret;
471469 }
472470
473471 return 0;
@@ -562,9 +560,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 88 unmodified lines
562560 av_freep(&s->maxes);
563561 av_freep(&s->controls);
564562 av_freep(&s->seq_out);
565−
566− if (ctx->nb_inputs)
567− av_freep(&ctx->input_pads[0].name);
568563 }
569564
570565 static const AVFilterPad lv2_outputs[] = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t