2009-04-14 15:55:19 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
const gchar *
|
2009-04-14 15:58:28 +00:00
|
|
|
gstsharp_gst_static_pad_template_get_name_template (const GstStaticPadTemplate *
|
|
|
|
templ)
|
|
|
|
{
|
2009-04-14 15:55:19 +00:00
|
|
|
return templ->name_template;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstPadDirection
|
2009-04-14 15:58:28 +00:00
|
|
|
gstsharp_gst_static_pad_template_get_direction (const GstStaticPadTemplate *
|
|
|
|
templ)
|
|
|
|
{
|
2009-04-14 15:55:19 +00:00
|
|
|
return templ->direction;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstPadPresence
|
2009-04-14 15:58:28 +00:00
|
|
|
gstsharp_gst_static_pad_template_get_presence (const GstStaticPadTemplate *
|
|
|
|
templ)
|
|
|
|
{
|
2009-04-14 15:55:19 +00:00
|
|
|
return templ->presence;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstStaticPadTemplate *
|
2009-04-14 15:58:28 +00:00
|
|
|
gstsharp_gst_static_pad_template_new (const gchar * name_template,
|
|
|
|
GstPadDirection direction, GstPadPresence presence, const gchar * caps)
|
|
|
|
{
|
2009-04-14 15:55:19 +00:00
|
|
|
GstStaticPadTemplate *ret = g_new0 (GstStaticPadTemplate, 1);
|
|
|
|
ret->name_template = g_strdup (name_template);
|
|
|
|
ret->direction = direction;
|
|
|
|
ret->presence = presence;
|
|
|
|
ret->static_caps.string = g_strdup (caps);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|