rtp: Initialize GstRTPBuffer before usage
[platform/upstream/gst-plugins-good.git] / gst / rtp / gstrtpmpapay.h
index 9ab5124..3a5c854 100644 (file)
@@ -1,5 +1,5 @@
-/* Gnome-Streamer
- * Copyright (C) <2005> Wim Taymans <wim@fluendo.com>
+/* GStreamer
+ * Copyright (C) <2005> Wim Taymans <wim.taymans@gmail.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -21,7 +21,7 @@
 #define __GST_RTP_MPA_PAY_H__
 
 #include <gst/gst.h>
-#include <gst/rtp/gstbasertppayload.h>
+#include <gst/rtp/gstrtpbasepayload.h>
 #include <gst/base/gstadapter.h>
 
 G_BEGIN_DECLS
@@ -31,10 +31,10 @@ G_BEGIN_DECLS
 #define GST_RTP_MPA_PAY(obj) \
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_MPA_PAY,GstRtpMPAPay))
 #define GST_RTP_MPA_PAY_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_MPA_PAY,GstRtpMPAPay))
+  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_MPA_PAY,GstRtpMPAPayClass))
 #define GST_IS_RTP_MPA_PAY(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_MPA_PAY))
-#define GST_IS_RTP_MPA_PAY_CLASS(obj) \
+#define GST_IS_RTP_MPA_PAY_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_MPA_PAY))
 
 typedef struct _GstRtpMPAPay GstRtpMPAPay;
@@ -42,7 +42,7 @@ typedef struct _GstRtpMPAPayClass GstRtpMPAPayClass;
 
 struct _GstRtpMPAPay
 {
-  GstBaseRTPPayload payload;
+  GstRTPBasePayload payload;
 
   GstAdapter *adapter;
   GstClockTime first_ts;
@@ -51,9 +51,11 @@ struct _GstRtpMPAPay
 
 struct _GstRtpMPAPayClass
 {
-  GstBaseRTPPayloadClass parent_class;
+  GstRTPBasePayloadClass parent_class;
 };
 
+GType gst_rtp_mpa_pay_get_type (void);
+
 gboolean gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS