X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Frtp%2Fgstrtpmp4gpay.c;h=532e2de25cf630e749757ba33139279ff7a64c4f;hb=775ccdf9775bd7051929b257444b3be915e88ec6;hp=7333b498ed4b11170a6653c37d46b0e4cf939040;hpb=5986dc287c2e53b0a07498835d39ab1c2c47b939;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c index 7333b49..532e2de 100644 --- a/gst/rtp/gstrtpmp4gpay.c +++ b/gst/rtp/gstrtpmp4gpay.c @@ -87,9 +87,10 @@ static gboolean gst_rtp_mp4g_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event); #define gst_rtp_mp4g_pay_parent_class parent_class -G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD) +G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD); - static void gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass) +static void +gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass) { GObjectClass *gobject_class; GstElementClass *gstelement_class; @@ -471,7 +472,7 @@ gst_rtp_mp4g_pay_flush (GstRtpMP4GPay * rtpmp4gpay) GstRTPBuffer rtp = { NULL }; GstBuffer *paybuf; - /* this will be the total lenght of the packet */ + /* this will be the total length of the packet */ packet_len = gst_rtp_buffer_calc_packet_len (avail, 0, 0); /* fill one MTU or all available bytes, we need 4 spare bytes for @@ -486,8 +487,9 @@ gst_rtp_mp4g_pay_flush (GstRtpMP4GPay * rtpmp4gpay) packet_len, payload_len); /* create buffer to hold the payload, also make room for the 4 header bytes. */ - outbuf = gst_rtp_buffer_new_allocate (4, 0, 0); - + outbuf = + gst_rtp_base_payload_allocate_output_buffer (GST_RTP_BASE_PAYLOAD + (rtpmp4gpay), 4, 0, 0); gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp); /* copy payload */