GstRtpJitterBufferPrivate *priv;
jitterbuffer = GST_RTP_JITTER_BUFFER (gst_pad_get_parent (pad));
- if (G_UNLIKELY (jitterbuffer == NULL))
+ if (G_UNLIKELY (jitterbuffer == NULL)) {
+ gst_event_unref (event);
return FALSE;
+ }
priv = jitterbuffer->priv;
GST_DEBUG_OBJECT (jitterbuffer, "received %s", GST_EVENT_TYPE_NAME (event));
gboolean res = FALSE;
rtpdemux = GST_RTP_PT_DEMUX (gst_pad_get_parent (pad));
- if (G_UNLIKELY (rtpdemux == NULL))
+ if (G_UNLIKELY (rtpdemux == NULL)) {
+ gst_event_unref (event);
return FALSE;
+ }
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_CUSTOM_DOWNSTREAM:
gboolean ret = FALSE;
rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad));
- if (G_UNLIKELY (rtpsession == NULL))
+ if (G_UNLIKELY (rtpsession == NULL)) {
+ gst_event_unref (event);
return FALSE;
+ }
GST_DEBUG_OBJECT (rtpsession, "received event %s",
GST_EVENT_TYPE_NAME (event));
guint pt;
rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad));
+ if (G_UNLIKELY (rtpsession == NULL)) {
+ gst_event_unref (event);
+ return FALSE;
+ }
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_CUSTOM_UPSTREAM:
GST_DEBUG_OBJECT (rtpsession, "received EVENT");
rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad));
- if (G_UNLIKELY (rtpsession == NULL))
+ if (G_UNLIKELY (rtpsession == NULL)) {
+ gst_event_unref (event);
return FALSE;
+ }
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
gboolean res = FALSE;
demux = GST_RTP_SSRC_DEMUX (gst_pad_get_parent (pad));
- if (G_UNLIKELY (demux == NULL))
+ if (G_UNLIKELY (demux == NULL)) {
+ gst_event_unref (event);
return FALSE;
+ }
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_STOP: