mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtpmux: Fix some more leaks
This commit is contained in:
parent
1b5e769e0b
commit
c479f90274
2 changed files with 8 additions and 2 deletions
|
@ -172,9 +172,11 @@ gst_rtp_dtmf_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GST_OBJECT_UNLOCK (mux);
|
GST_OBJECT_UNLOCK (mux);
|
||||||
if (parent_class->chain_func)
|
if (parent_class->chain_func)
|
||||||
ret = parent_class->chain_func (pad, buffer);
|
ret = parent_class->chain_func (pad, buffer);
|
||||||
else
|
else {
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gst_object_unref (mux);
|
gst_object_unref (mux);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -104,6 +104,8 @@ static void gst_rtp_mux_set_property (GObject * object, guint prop_id,
|
||||||
static void gst_rtp_mux_get_property (GObject * object, guint prop_id,
|
static void gst_rtp_mux_get_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
|
static gboolean gst_rtp_mux_src_event (GstPad * pad, GstEvent * event);
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
static GstElementClass *parent_class = NULL;
|
||||||
|
|
||||||
GType
|
GType
|
||||||
|
@ -211,6 +213,7 @@ static gboolean gst_rtp_mux_src_event (GstPad * pad,
|
||||||
break;
|
break;
|
||||||
case GST_ITERATOR_RESYNC:
|
case GST_ITERATOR_RESYNC:
|
||||||
gst_iterator_resync (iter);
|
gst_iterator_resync (iter);
|
||||||
|
result = FALSE;
|
||||||
break;
|
break;
|
||||||
case GST_ITERATOR_ERROR:
|
case GST_ITERATOR_ERROR:
|
||||||
GST_WARNING_OBJECT (rtp_mux, "Error iterating sinkpads");
|
GST_WARNING_OBJECT (rtp_mux, "Error iterating sinkpads");
|
||||||
|
@ -219,7 +222,8 @@ static gboolean gst_rtp_mux_src_event (GstPad * pad,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gst_iterator_free (iter);
|
||||||
|
gst_object_unref (rtp_mux);
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue