diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-11-01 21:09:56 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-11-01 21:10:21 +0000 |
commit | 5ac789408b14be72edee7dd59d3dfe038c3e7af7 (patch) | |
tree | 05d54833ce6d4415c48295bfd5e10144911042da /gst/rtp/gstrtpvp8pay.c | |
parent | 4a849d66905ae6c94f96b5e50d7284e46f6f4a17 (diff) |
rtpvp8: include config.h and minor style fixes
Diffstat (limited to 'gst/rtp/gstrtpvp8pay.c')
-rw-r--r-- | gst/rtp/gstrtpvp8pay.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c index 29d41c28b..988d55da3 100644 --- a/gst/rtp/gstrtpvp8pay.c +++ b/gst/rtp/gstrtpvp8pay.c @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include <stdio.h> #include <stdlib.h> @@ -35,6 +38,13 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp8_pay_debug); #define DEFAULT_PICTURE_ID_MODE VP8_PAY_PICTURE_ID_7BITS +static GstFlowReturn gst_rtp_vp8_pay_handle_buffer (GstRTPBasePayload * payload, + GstBuffer * buffer); +static gboolean gst_rtp_vp8_pay_sink_event (GstRTPBasePayload * payload, + GstEvent * event); +static gboolean gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, + GstCaps * caps); + G_DEFINE_TYPE (GstRtpVP8Pay, gst_rtp_vp8_pay, GST_TYPE_RTP_BASE_PAYLOAD); static GstStaticPadTemplate gst_rtp_vp8_pay_src_template = @@ -62,14 +72,6 @@ gst_rtp_vp8_pay_init (GstRtpVP8Pay * obj) obj->picture_id = g_random_int_range (0, G_MAXUINT16) & 0x7FFF; } -static GstFlowReturn gst_rtp_vp8_pay_handle_buffer (GstRTPBasePayload * payload, - GstBuffer * buffer); -static gboolean gst_rtp_vp8_pay_sink_event (GstRTPBasePayload * payload, - GstEvent * event); -static gboolean gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, - GstCaps * caps); - - static void gst_rtp_vp8_pay_class_init (GstRtpVP8PayClass * gst_rtp_vp8_pay_class) { @@ -297,11 +299,11 @@ gst_rtp_vp8_calc_header_len (GstRtpVP8Pay * self) } } - static gsize gst_rtp_vp8_calc_payload_len (GstRtpVP8Pay * self) { GstRTPBasePayload *payload = GST_RTP_BASE_PAYLOAD (self); + return gst_rtp_buffer_calc_payload_len (GST_RTP_BASE_PAYLOAD_MTU (payload) - gst_rtp_vp8_calc_header_len (self), 0, 0); } |