diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-08-04 20:59:17 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-08-11 12:47:23 +0200 |
commit | b1089fb5207697ba26edb4ff66ed0f465c6df3cf (patch) | |
tree | f9ae899c9cf4707d142500b1b05deb9c530f4525 /gst/rtp/gstrtpmp2tdepay.c | |
parent | 288b0bbb38c75b77bf22e6a21139167292beb233 (diff) |
rtp: Copy metadata in the (de)payloader, but only the relevant ones
The payloader didn't copy anything so far, the depayloader copied every
possible meta. Let's make it consistent and just copy all metas without
tags or with only the video tag.
https://bugzilla.gnome.org/show_bug.cgi?id=751774
Diffstat (limited to 'gst/rtp/gstrtpmp2tdepay.c')
-rw-r--r-- | gst/rtp/gstrtpmp2tdepay.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c index da73db651..6f4d933d0 100644 --- a/gst/rtp/gstrtpmp2tdepay.c +++ b/gst/rtp/gstrtpmp2tdepay.c @@ -25,6 +25,7 @@ #include <string.h> #include "gstrtpmp2tdepay.h" +#include "gstrtputils.h" /* RtpMP2TDepay signals and args */ enum @@ -180,10 +181,13 @@ gst_rtp_mp2t_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) gst_rtp_buffer_get_payload_subbuffer (rtp, rtpmp2tdepay->skip_first_bytes, payload_len); - if (outbuf) + if (outbuf) { GST_DEBUG ("gst_rtp_mp2t_depay_chain: pushing buffer of size %" G_GSIZE_FORMAT, gst_buffer_get_size (outbuf)); + gst_rtp_drop_meta (GST_ELEMENT_CAST (depayload), outbuf, 0); + } + return outbuf; /* ERRORS */ |