History

Use av_log(ctx, ...) instead of av_log(NULL, ...) Commited in SoC by Vitor Sessak on 2007-12-21 11:10:29

Originally committed as revision 12713 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak committed 18 years ago

Commit 1df675b1 parent de5985b1 file · +7 −6Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+7−6
@@ -492,7 +492,8 @@ int avfilter_graph_config_links(AVFilterContext *graphctx) · 491 unmodified lines
492492 return 0;
493493 }
494494
495−static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
495+static AVFilterContext *create_filter_with_args(AVFilterContext *graphctx,
496+ const char *filt, void *opaque)
496497 {
497498 AVFilterContext *ret;
498499 char *filter = av_strdup(filt); /* copy - don't mangle the input string */
@@ -507,17 +508,17 @@ static AVFilterContext *create_filter_with_args(const char *filt, void *opaque) · 8 unmodified lines
507508 *args ++ = 0;
508509 }
509510
510− av_log(NULL, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n",
511+ av_log(graphctx, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n",
511512 name, args ? args : "(none)");
512513
513514 if((ret = avfilter_open(avfilter_get_by_name(name), NULL))) {
514515 if(avfilter_init_filter(ret, args, opaque)) {
515− av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n");
516+ av_log(graphctx, AV_LOG_ERROR, "error initializing filter!\n");
516517 avfilter_destroy(ret);
517518 goto fail;
518519 }
519520 } else {
520− av_log(NULL, AV_LOG_ERROR,
521+ av_log(graphctx, AV_LOG_ERROR,
521522 "error creating filter \"%s\" with args \"%s\"\n",
522523 name, args ? args : "(none)");
523524 }
@@ -544,13 +545,13 @@ static int graph_load_chain(AVFilterContext *graphctx, · 20 unmodified lines
544545 if(opaque) op = opaque[i];
545546 else op = NULL;
546547
547− if(!(filters[1] = create_filter_with_args(filter_list[i], op)))
548+ if(!(filters[1] = create_filter_with_args(graphctx, filter_list[i], op)))
548549 goto fail;
549550 if(i == 0) {
550551 if(first) *first = filters[1];
551552 } else {
552553 if(avfilter_link(filters[0], 0, filters[1], 0)) {
553− av_log(NULL, AV_LOG_ERROR, "error linking filters!\n");
554+ av_log(graphctx, AV_LOG_ERROR, "error linking filters!\n");
554555 goto fail;
555556 }
556557 }

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