videoaggregator: Make sure not to unref a NULL pointer

This commit is contained in:
Thibault Saunier 2014-07-30 11:57:46 +02:00
parent 9e122f6442
commit 47aea18826

View file

@ -940,6 +940,7 @@ gst_videoaggregator_fill_queues (GstVideoAggregator * vagg,
} else { } else {
gst_buffer_unref (buf); gst_buffer_unref (buf);
buf = gst_aggregator_pad_steal_buffer (bpad); buf = gst_aggregator_pad_steal_buffer (bpad);
if (buf)
gst_buffer_unref (buf); gst_buffer_unref (buf);
} }
eos = FALSE; eos = FALSE;
@ -956,6 +957,7 @@ gst_videoaggregator_fill_queues (GstVideoAggregator * vagg,
} else { } else {
gst_buffer_unref (buf); gst_buffer_unref (buf);
buf = gst_aggregator_pad_steal_buffer (bpad); buf = gst_aggregator_pad_steal_buffer (bpad);
if (buf)
gst_buffer_unref (buf); gst_buffer_unref (buf);
} }