adder: don't access the event after pushing

Fixes valgrind warnings.
This commit is contained in:
Stefan Sauer 2011-09-15 16:47:26 +02:00
parent bd52f00796
commit b678f6cf69

View file

@ -1186,8 +1186,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
if (event) {
if (!gst_pad_push_event (adder->srcpad, event)) {
GST_WARNING_OBJECT (adder->srcpad, "Sending event %p (%s) failed.",
event, GST_EVENT_TYPE_NAME (event));
GST_WARNING_OBJECT (adder->srcpad, "Sending event failed");
}
} else {
GST_WARNING_OBJECT (adder->srcpad, "Creating new segment event for "