mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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:
parent
c413858fe6
commit
991730660c
2 changed files with 16 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue