Commit 59c11224 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

gst/effectv/gstquark.c: Add some NULL pointer checks (possibly related to #385623).

Original commit message from CVS:
* gst/effectv/gstquark.c: (gst_quarktv_transform),
(gst_quarktv_planetable_clear):
Add some NULL pointer checks (possibly related to #385623).
parent f4dd37e8
2006-12-14 Tim-Philipp Müller <tim at centricular dot net>
* gst/effectv/gstquark.c: (gst_quarktv_transform),
(gst_quarktv_planetable_clear):
Add some NULL pointer checks (possibly related to #385623).
2006-12-12 Tim-Philipp Müller <tim at centricular dot net>
* gst/apetag/gsttagdemux.c: (gst_tag_demux_chain_parse_tag),
......
......@@ -167,6 +167,9 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in,
src = (guint32 *) GST_BUFFER_DATA (in);
dest = (guint32 *) GST_BUFFER_DATA (out);
if (G_UNLIKELY (filter->planetable == NULL))
return GST_FLOW_WRONG_STATE;
if (filter->planetable[filter->current_plane])
gst_buffer_unref (filter->planetable[filter->current_plane]);
......@@ -197,6 +200,9 @@ gst_quarktv_planetable_clear (GstQuarkTV * filter)
{
gint i;
if (filter->planetable == NULL)
return;
for (i = 0; i < filter->planes; i++) {
if (GST_IS_BUFFER (filter->planetable[i])) {
gst_buffer_unref (filter->planetable[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment