projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
967280d
)
rtpvorbispay: Don't send headers twice if we got them from the caps already
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 4 Dec 2013 20:55:53 +0000
(21:55 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 4 Dec 2013 20:58:29 +0000
(21:58 +0100)
gst/rtp/gstrtpvorbispay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvorbispay.c
b/gst/rtp/gstrtpvorbispay.c
index 93190b4943a0e14c5dc5dabb3336d5419aa38362..265479b7c207874432dd564b53b67f06debad19d 100644
(file)
--- a/
gst/rtp/gstrtpvorbispay.c
+++ b/
gst/rtp/gstrtpvorbispay.c
@@
-761,8
+761,14
@@
gst_rtp_vorbis_pay_handle_buffer (GstRTPBasePayload * basepayload,
ret = GST_FLOW_OK;
goto done;
} else if (rtpvorbispay->headers) {
- if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
- goto header_error;
+ if (rtpvorbispay->need_headers) {
+ if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
+ goto header_error;
+ } else {
+ g_list_free_full (rtpvorbispay->headers,
+ (GDestroyNotify) gst_buffer_unref);
+ rtpvorbispay->headers = NULL;
+ }
}
/* there is a config request, see if we need to insert it */