mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 15:38:50 +00:00
videoaggregator: Make sure not to unref a NULL pointer
This commit is contained in:
parent
9e122f6442
commit
47aea18826
1 changed files with 4 additions and 2 deletions
|
@ -940,7 +940,8 @@ 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);
|
||||||
gst_buffer_unref (buf);
|
if (buf)
|
||||||
|
gst_buffer_unref (buf);
|
||||||
}
|
}
|
||||||
eos = FALSE;
|
eos = FALSE;
|
||||||
} else if (start_time >= output_end_time) {
|
} else if (start_time >= output_end_time) {
|
||||||
|
@ -956,7 +957,8 @@ 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);
|
||||||
gst_buffer_unref (buf);
|
if (buf)
|
||||||
|
gst_buffer_unref (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
need_more_data = TRUE;
|
need_more_data = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue