mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
asfdepay: set DELTA_UNIT flag correctly
Only set the DELTA_UNIT flag when we are not dealing with a keyframe. Add some more debug info.
This commit is contained in:
parent
8de1502c9b
commit
c53fd9ded1
1 changed files with 3 additions and 1 deletions
|
@ -224,6 +224,7 @@ gst_rtp_asf_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
|
|||
|
||||
/* flush remaining data on discont */
|
||||
if (GST_BUFFER_IS_DISCONT (buf)) {
|
||||
GST_LOG_OBJECT (depay, "got DISCONT");
|
||||
gst_adapter_clear (depay->adapter);
|
||||
depay->wait_start = TRUE;
|
||||
depay->discont = TRUE;
|
||||
|
@ -373,10 +374,11 @@ gst_rtp_asf_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
|
|||
|
||||
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (depayload->srcpad));
|
||||
|
||||
if (S)
|
||||
if (!S)
|
||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
|
||||
if (depay->discont) {
|
||||
GST_LOG_OBJECT (depay, "setting DISCONT");
|
||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
|
||||
depay->discont = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue