mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtsptransport: add GType for Profile
See https://bugzilla.gnome.org/show_bug.cgi?id=720696
This commit is contained in:
parent
86e6f10781
commit
5b13c5b464
2 changed files with 23 additions and 1 deletions
|
@ -102,6 +102,26 @@ static const RTSPProfileMap profiles[] = {
|
||||||
{NULL, GST_RTSP_PROFILE_UNKNOWN}
|
{NULL, GST_RTSP_PROFILE_UNKNOWN}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GType
|
||||||
|
gst_rtsp_profile_get_type (void)
|
||||||
|
{
|
||||||
|
static volatile gsize rtsp_profile_type = 0;
|
||||||
|
static const GFlagsValue rtsp_profile[] = {
|
||||||
|
{GST_RTSP_PROFILE_AVP, "GST_RTSP_PROFILE_AVP", "avp"},
|
||||||
|
{GST_RTSP_PROFILE_SAVP, "GST_RTSP_PROFILE_SAVP", "savp"},
|
||||||
|
{GST_RTSP_PROFILE_AVPF, "GST_RTSP_PROFILE_AVPF", "avpf"},
|
||||||
|
{GST_RTSP_PROFILE_SAVPF, "GST_RTSP_PROFILE_SAVPF", "savpf"},
|
||||||
|
{0, NULL, NULL},
|
||||||
|
};
|
||||||
|
|
||||||
|
if (g_once_init_enter (&rtsp_profile_type)) {
|
||||||
|
GType tmp = g_flags_register_static ("GstRTSPProfile", rtsp_profile);
|
||||||
|
g_once_init_leave (&rtsp_profile_type, tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (GType) rtsp_profile_type;
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
|
@ -115,7 +135,6 @@ static const RTSPLTransMap ltrans[] = {
|
||||||
{NULL, GST_RTSP_LOWER_TRANS_UNKNOWN}
|
{NULL, GST_RTSP_LOWER_TRANS_UNKNOWN}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_rtsp_lower_trans_get_type (void)
|
gst_rtsp_lower_trans_get_type (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,6 +80,9 @@ typedef enum {
|
||||||
GST_RTSP_PROFILE_SAVPF = (1 << 3),
|
GST_RTSP_PROFILE_SAVPF = (1 << 3),
|
||||||
} GstRTSPProfile;
|
} GstRTSPProfile;
|
||||||
|
|
||||||
|
#define GST_TYPE_RTSP_PROFILE (gst_rtsp_profile_get_type())
|
||||||
|
GType gst_rtsp_profile_get_type (void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstRTSPLowerTrans:
|
* GstRTSPLowerTrans:
|
||||||
* @GST_RTSP_LOWER_TRANS_UNKNOWN: invalid transport flag
|
* @GST_RTSP_LOWER_TRANS_UNKNOWN: invalid transport flag
|
||||||
|
|
Loading…
Reference in a new issue