mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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
This commit is contained in:
parent
b311b833c1
commit
cd758cdbd9
3 changed files with 18 additions and 12 deletions
|
@ -198,23 +198,24 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS_ANY);
|
||||
|
||||
|
||||
#define GST_TYPE_APP_STREAM_TYPE (stream_type_get_type ())
|
||||
static GType
|
||||
stream_type_get_type (void)
|
||||
GType
|
||||
gst_app_stream_type_get_type (void)
|
||||
{
|
||||
static GType stream_type_type = 0;
|
||||
static volatile gsize stream_type_type = 0;
|
||||
static const GEnumValue stream_type[] = {
|
||||
{GST_APP_STREAM_TYPE_STREAM, "Stream", "stream"},
|
||||
{GST_APP_STREAM_TYPE_SEEKABLE, "Seekable", "seekable"},
|
||||
{GST_APP_STREAM_TYPE_RANDOM_ACCESS, "Random Access", "random-access"},
|
||||
{0, NULL, NULL},
|
||||
{GST_APP_STREAM_TYPE_STREAM, "GST_APP_STREAM_TYPE_STREAM", "stream"},
|
||||
{GST_APP_STREAM_TYPE_SEEKABLE, "GST_APP_STREAM_TYPE_SEEKABLE", "seekable"},
|
||||
{GST_APP_STREAM_TYPE_RANDOM_ACCESS, "GST_APP_STREAM_TYPE_RANDOM_ACCESS",
|
||||
"random-access"},
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
|
||||
if (!stream_type_type) {
|
||||
stream_type_type = g_enum_register_static ("GstAppStreamType", stream_type);
|
||||
if (g_once_init_enter (&stream_type_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,
|
||||
|
|
|
@ -117,6 +117,10 @@ struct _GstAppSrcClass
|
|||
|
||||
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);
|
||||
GstCaps* gst_app_src_get_caps (GstAppSrc *appsrc);
|
||||
|
||||
|
|
|
@ -31,3 +31,4 @@ EXPORTS
|
|||
gst_app_src_set_max_bytes
|
||||
gst_app_src_set_size
|
||||
gst_app_src_set_stream_type
|
||||
gst_app_stream_type_get_type
|
||||
|
|
Loading…
Reference in a new issue