mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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).
This commit is contained in:
parent
f4dd37e871
commit
59c1122481
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
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]);
|
||||
|
|
Loading…
Reference in a new issue