index f253b415eb884cd171525b6da2b8f9fcd85dc5aa..b57d377d6939ee1551461b2cf71d4e8b0d088743 100644 (file)
GType
gst_dp_version_get_type (void)
{
- static GType gst_dp_version_type = 0;
+ static gsize gst_dp_version_type = 0;
static const GEnumValue gst_dp_version[] = {
- {GST_DP_VERSION_0_2, "GDP Version 0.2", "0.2"},
- {GST_DP_VERSION_1_0, "GDP Version 1.0", "1.0"},
+ {GST_DP_VERSION_0_2, "GST_DP_VERSION_0_2", "0.2"},
+ {GST_DP_VERSION_1_0, "GST_DP_VERSION_1_0", "1.0"},
{0, NULL, NULL},
};
- if (!gst_dp_version_type) {
- gst_dp_version_type =
- g_enum_register_static ("GstDPVersion", gst_dp_version);
+ if (g_once_init_enter (&gst_dp_version_type)) {
+ GType tmp = g_enum_register_static ("GstDPVersion", gst_dp_version);
+ g_once_init_leave (&gst_dp_version_type, tmp);
}
- return gst_dp_version_type;
+
+ return (GType) gst_dp_version_type;
};
/**
/**
* gst_dp_header_from_buffer:
* @buffer: a #GstBuffer to create a header for
- * @flags: the #GDPHeaderFlags to create the header with
+ * @flags: the #GstDPHeaderFlag to create the header with
* @length: a guint pointer to store the header length in
* @header: a guint8 * pointer to store a newly allocated header byte array in
*
* Returns: %TRUE if the header was successfully created.
*/
#ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+gboolean
+gst_dp_header_from_buffer (const GstBuffer * buffer, GstDPHeaderFlag flags,
+ guint * length, guint8 ** header);
+#endif
gboolean
gst_dp_header_from_buffer (const GstBuffer * buffer, GstDPHeaderFlag flags,
guint * length, guint8 ** header)
/**
* gst_dp_packet_from_caps:
* @caps: a #GstCaps to create a packet for
- * @flags: the #GDPHeaderFlags to create the header with
+ * @flags: the #GstDPHeaderFlag to create the header with
* @length: a guint pointer to store the header length in
* @header: a guint8 pointer to store a newly allocated header byte array in
* @payload: a guint8 pointer to store a newly allocated payload byte array in
@@ -410,6 +416,11 @@ gst_dp_header_from_buffer_1_0 (const GstBuffer * buffer, GstDPHeaderFlag flags,
* Returns: %TRUE if the packet was successfully created.
*/
#ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+gboolean
+gst_dp_packet_from_caps (const GstCaps * caps, GstDPHeaderFlag flags,
+ guint * length, guint8 ** header, guint8 ** payload);
+#endif
gboolean
gst_dp_packet_from_caps (const GstCaps * caps, GstDPHeaderFlag flags,
guint * length, guint8 ** header, guint8 ** payload)
/**
* gst_dp_packet_from_event:
* @event: a #GstEvent to create a packet for
- * @flags: the #GDPHeaderFlags to create the header with
+ * @flags: the #GstDPHeaderFlag to create the header with
* @length: a guint pointer to store the header length in
* @header: a guint8 pointer to store a newly allocated header byte array in
* @payload: a guint8 pointer to store a newly allocated payload byte array in
* Returns: %TRUE if the packet was successfully created.
*/
#ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+gboolean
+gst_dp_packet_from_event (const GstEvent * event, GstDPHeaderFlag flags,
+ guint * length, guint8 ** header, guint8 ** payload);
+#endif
gboolean
gst_dp_packet_from_event (const GstEvent * event, GstDPHeaderFlag flags,
guint * length, guint8 ** header, guint8 ** payload)