summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/rtp/gstrtpmp4adepay.c3
-rw-r--r--gst/rtp/gstrtpmp4apay.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index cb8735d0..15dfb0dc 100644
--- a/gst/rtp/gstrtpmp4adepay.c
+++ b/gst/rtp/gstrtpmp4adepay.c
@@ -316,6 +316,8 @@ gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
("Packet invalid"), ("Not all payload consumed: "
"possible wrongly encoded packet."));
}
+
+ gst_buffer_unref (outbuf);
}
return NULL;
@@ -324,6 +326,7 @@ wrong_size:
{
GST_ELEMENT_WARNING (rtpmp4adepay, STREAM, DECODE,
("Packet did not validate"), ("wrong packet size"));
+ gst_buffer_unref (outbuf);
return NULL;
}
}
diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c
index 6d18bd06..f4c9d255 100644
--- a/gst/rtp/gstrtpmp4apay.c
+++ b/gst/rtp/gstrtpmp4apay.c
@@ -447,6 +447,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
fragmented = TRUE;
}
+
+ gst_buffer_unref (buffer);
+
return ret;
}