Commit cd758cdb authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

app: export gst_app_stream_type_get_type()

API: gst_app_stream_type_get_type()
API: GST_TYPE_APP_STREAM_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=639747
parent b311b833
...@@ -198,23 +198,24 @@ GST_STATIC_PAD_TEMPLATE ("src", ...@@ -198,23 +198,24 @@ GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY); GST_STATIC_CAPS_ANY);
GType
#define GST_TYPE_APP_STREAM_TYPE (stream_type_get_type ()) gst_app_stream_type_get_type (void)
static GType
stream_type_get_type (void)
{ {
static GType stream_type_type = 0; static volatile gsize stream_type_type = 0;
static const GEnumValue stream_type[] = { static const GEnumValue stream_type[] = {
{GST_APP_STREAM_TYPE_STREAM, "Stream", "stream"}, {GST_APP_STREAM_TYPE_STREAM, "GST_APP_STREAM_TYPE_STREAM", "stream"},
{GST_APP_STREAM_TYPE_SEEKABLE, "Seekable", "seekable"}, {GST_APP_STREAM_TYPE_SEEKABLE, "GST_APP_STREAM_TYPE_SEEKABLE", "seekable"},
{GST_APP_STREAM_TYPE_RANDOM_ACCESS, "Random Access", "random-access"}, {GST_APP_STREAM_TYPE_RANDOM_ACCESS, "GST_APP_STREAM_TYPE_RANDOM_ACCESS",
{0, NULL, NULL}, "random-access"},
{0, NULL, NULL}
}; };
if (!stream_type_type) { if (g_once_init_enter (&stream_type_type)) {
stream_type_type = g_enum_register_static ("GstAppStreamType", stream_type); GType tmp = g_enum_register_static ("GstAppStreamType", stream_type);
g_once_init_leave (&stream_type_type, tmp);
} }
return stream_type_type;
return (GType) stream_type_type;
} }
static void gst_app_src_uri_handler_init (gpointer g_iface, static void gst_app_src_uri_handler_init (gpointer g_iface,
......
...@@ -117,6 +117,10 @@ struct _GstAppSrcClass ...@@ -117,6 +117,10 @@ struct _GstAppSrcClass
GType gst_app_src_get_type(void); GType gst_app_src_get_type(void);
/* GType getter for GstAppStreamType, since 0.10.32 */
#define GST_TYPE_APP_STREAM_TYPE (gst_app_stream_type_get_type ())
GType gst_app_stream_type_get_type (void);
void gst_app_src_set_caps (GstAppSrc *appsrc, const GstCaps *caps); void gst_app_src_set_caps (GstAppSrc *appsrc, const GstCaps *caps);
GstCaps* gst_app_src_get_caps (GstAppSrc *appsrc); GstCaps* gst_app_src_get_caps (GstAppSrc *appsrc);
......
...@@ -31,3 +31,4 @@ EXPORTS ...@@ -31,3 +31,4 @@ EXPORTS
gst_app_src_set_max_bytes gst_app_src_set_max_bytes
gst_app_src_set_size gst_app_src_set_size
gst_app_src_set_stream_type gst_app_src_set_stream_type
gst_app_stream_type_get_type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment