fieldanalysis: Fix unitiailized variable compiler warning
And also use the pad's default event function instead
of just pushing to the peerpad. This makes sure any
default handling of events is called.
diff --git a/gst/fieldanalysis/gstfieldanalysis.c b/gst/fieldanalysis/gstfieldanalysis.c
index 0978259..bc4800f 100644
--- a/gst/fieldanalysis/gstfieldanalysis.c
+++ b/gst/fieldanalysis/gstfieldanalysis.c
@@ -792,11 +792,12 @@
break;
}
default:
+ forward = TRUE;
break;
}
if (forward) {
- ret = gst_pad_push_event (filter->srcpad, event);
+ ret = gst_pad_event_default (pad, parent, event);
}
return ret;