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 (event) {
if (!gst_pad_push_event (adder->srcpad, event)) { if (!gst_pad_push_event (adder->srcpad, event)) {
GST_WARNING_OBJECT (adder->srcpad, "Sending event %p (%s) failed.", GST_WARNING_OBJECT (adder->srcpad, "Sending event failed");
event, GST_EVENT_TYPE_NAME (event));
} }
} else { } else {
GST_WARNING_OBJECT (adder->srcpad, "Creating new segment event for " GST_WARNING_OBJECT (adder->srcpad, "Creating new segment event for "