mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
videorate: don't leak previous buffer when shutting down
Implement stop vfunc after port to basetransform, so we can clean up properly. Fixes make elements/videorate.valgrind
This commit is contained in:
parent
b58b8b1ba5
commit
99c7a51908
1 changed files with 9 additions and 0 deletions
|
@ -147,6 +147,7 @@ static GstFlowReturn gst_video_rate_transform_ip (GstBaseTransform * trans,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static gboolean gst_video_rate_start (GstBaseTransform * trans);
|
static gboolean gst_video_rate_start (GstBaseTransform * trans);
|
||||||
|
static gboolean gst_video_rate_stop (GstBaseTransform * trans);
|
||||||
|
|
||||||
|
|
||||||
static void gst_video_rate_set_property (GObject * object,
|
static void gst_video_rate_set_property (GObject * object,
|
||||||
|
@ -195,6 +196,7 @@ gst_video_rate_class_init (GstVideoRateClass * klass)
|
||||||
GST_DEBUG_FUNCPTR (gst_video_rate_prepare_output_buffer);
|
GST_DEBUG_FUNCPTR (gst_video_rate_prepare_output_buffer);
|
||||||
base_class->event = GST_DEBUG_FUNCPTR (gst_video_rate_event);
|
base_class->event = GST_DEBUG_FUNCPTR (gst_video_rate_event);
|
||||||
base_class->start = GST_DEBUG_FUNCPTR (gst_video_rate_start);
|
base_class->start = GST_DEBUG_FUNCPTR (gst_video_rate_start);
|
||||||
|
base_class->stop = GST_DEBUG_FUNCPTR (gst_video_rate_stop);
|
||||||
base_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_video_rate_fixate_caps);
|
base_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_video_rate_fixate_caps);
|
||||||
base_class->query = GST_DEBUG_FUNCPTR (gst_video_rate_query);
|
base_class->query = GST_DEBUG_FUNCPTR (gst_video_rate_query);
|
||||||
|
|
||||||
|
@ -1175,6 +1177,13 @@ gst_video_rate_start (GstBaseTransform * trans)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
gst_video_rate_stop (GstBaseTransform * trans)
|
||||||
|
{
|
||||||
|
gst_video_rate_reset (GST_VIDEO_RATE (trans));
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_video_rate_set_property (GObject * object,
|
gst_video_rate_set_property (GObject * object,
|
||||||
guint prop_id, const GValue * value, GParamSpec * pspec)
|
guint prop_id, const GValue * value, GParamSpec * pspec)
|
||||||
|
|
Loading…
Reference in a new issue