From ac2bcfa8333cd7fbd98aacecde408110f48463fb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 31 Mar 2013 19:14:04 +0200 Subject: [PATCH] theorapay: add delta-unit to output frames --- gst/rtp/gstrtptheoradepay.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c index f25a678..8fa348a 100644 --- a/gst/rtp/gstrtptheoradepay.c +++ b/gst/rtp/gstrtptheoradepay.c @@ -549,8 +549,11 @@ gst_rtp_theora_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) gst_buffer_fill (outbuf, 0, payload, length); } - if (payload_len > 0 && (payload[0] & 0xC0) == 0x0) + if (payload_len > 0 && (payload[0] & 0xC0) == 0x0) { rtptheoradepay->needs_keyframe = FALSE; + } else { + GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT); + } payload += length; payload_len -= length; -- 2.7.4