aboutsummaryrefslogtreecommitdiffhomepage
path: root/filters
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-04-21 15:37:12 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commitd2349cb833efd99b2f3382a7629b9e70f2b50d24 (patch)
treecce13a4bd218673c4cbb53e07f740fe6f0e2e87e /filters
parenta5610b2a0df711a0c1151fb1cea78e03958167a7 (diff)
f_output_chain: remove a redundant variable
Diffstat (limited to 'filters')
-rw-r--r--filters/f_output_chain.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/filters/f_output_chain.c b/filters/f_output_chain.c
index 3b96f4a0a5..69c05ab85f 100644
--- a/filters/f_output_chain.c
+++ b/filters/f_output_chain.c
@@ -61,7 +61,6 @@ struct mp_user_filter {
char *label;
bool generated_label;
char *name;
- bool is_output_converter;
struct mp_image_params last_in_vformat;
struct mp_aframe *last_in_aformat;
@@ -153,7 +152,7 @@ static void process_user(struct mp_filter *f)
assert(u->name);
if (!u->failed && mp_filter_has_failed(u->f)) {
- if (u->is_output_converter) {
+ if (u == p->convert_wrapper) {
// This is a fuckup we can't ignore.
MP_FATAL(p, "Cannot convert decoder/filter output to any format "
"supported by the output.\n");
@@ -167,7 +166,7 @@ static void process_user(struct mp_filter *f)
}
if (u->failed) {
- if (u->is_output_converter) {
+ if (u == p->convert_wrapper) {
if (mp_pin_in_needs_data(f->ppins[1])) {
if (!u->error_eof_sent)
mp_pin_in_write(f->ppins[1], MP_EOF_FRAME);
@@ -717,7 +716,6 @@ struct mp_output_chain *mp_output_chain_create(struct mp_filter *parent,
if (!p->convert)
abort();
p->convert_wrapper->name = "convert";
- p->convert_wrapper->is_output_converter = true;
p->convert_wrapper->f = p->convert->f;
MP_TARRAY_APPEND(p, p->post_filters, p->num_post_filters, p->convert_wrapper);