summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpmp4adepay.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtp/gstrtpmp4adepay.c')
-rw-r--r--gst/rtp/gstrtpmp4adepay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index 395db196..173abae2 100644
--- a/gst/rtp/gstrtpmp4adepay.c
+++ b/gst/rtp/gstrtpmp4adepay.c
@@ -249,8 +249,9 @@ gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
goto bad_packet;
/* flush remaining data on discont */
- if (GST_BUFFER_IS_DISCONT (buf))
+ if (GST_BUFFER_IS_DISCONT (buf)) {
gst_adapter_clear (rtpmp4adepay->adapter);
+ }
outbuf = gst_rtp_buffer_get_payload_buffer (buf);