ext/ffmpeg/gstffmpegscale.c: don't leak refcounts in event handler. Fixes #444332.

Original commit message from CVS:
Patch by: Laurent Glayal <spglegle at yahoo dot fr>
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_handle_src_event):
don't leak refcounts in event handler. Fixes #444332.
This commit is contained in:
Laurent Glayal 2007-06-05 13:41:54 +00:00 committed by Wim Taymans
parent c413858fe6
commit 991730660c
2 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-06-05 Wim Taymans <wim@fluendo.com>
Patch by: Laurent Glayal <spglegle at yahoo dot fr>
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_handle_src_event):
don't leak refcounts in event handler. Fixes #444332.
2007-05-25 Wim Taymans <wim@fluendo.com>
* ext/ffmpeg/gstffmpegdec.c: (clip_video_buffer),

View file

@ -365,9 +365,12 @@ gst_ffmpegscale_transform (GstBaseTransform * trans, GstBuffer * inbuf,
static gboolean
gst_ffmpegscale_handle_src_event (GstPad * pad, GstEvent * event)
{
GstFFMpegScale *scale = GST_FFMPEGSCALE (gst_pad_get_parent (pad));
GstFFMpegScale *scale;
GstStructure *structure;
gdouble pointer;
gboolean res;
scale = GST_FFMPEGSCALE (gst_pad_get_parent (pad));
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_NAVIGATION:
@ -390,7 +393,11 @@ gst_ffmpegscale_handle_src_event (GstPad * pad, GstEvent * event)
break;
}
return gst_pad_event_default (pad, event);
res = gst_pad_event_default (pad, event);
gst_object_unref (scale);
return res;
}
gboolean