| 1 |
// Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 2 |
|
| 3 |
|
| 4 |
_PINCLUDE(gstreamermm/private/basesrc_p.h) |
| 5 |
|
| 6 |
extern "C" |
| 7 |
{ |
| 8 |
|
| 9 |
static GType gst_fake_src_data_type_get_type() |
| 10 |
{ |
| 11 |
static GType const type = g_type_from_name("GstFakeSrcDataType"); |
| 12 |
return type; |
| 13 |
} |
| 14 |
|
| 15 |
static GType gst_fake_src_size_type_get_type() |
| 16 |
{ |
| 17 |
static GType const type = g_type_from_name("GstFakeSrcSizeType"); |
| 18 |
return type; |
| 19 |
} |
| 20 |
|
| 21 |
static GType gst_fake_src_fill_type_get_type() |
| 22 |
{ |
| 23 |
static GType const type = g_type_from_name("GstFakeSrcFillType"); |
| 24 |
return type; |
| 25 |
} |
| 26 |
|
| 27 |
GType gst_fake_src_gstreamermm_get_type() |
| 28 |
{ |
| 29 |
static GType type = 0; |
| 30 |
GstElementFactory* factory = 0; |
| 31 |
GstPluginFeature* feature = 0; |
| 32 |
|
| 33 |
if(!type) |
| 34 |
{ |
| 35 |
factory = gst_element_factory_find("fakesrc"); |
| 36 |
// Make sure that the feature is actually loaded: |
| 37 |
if(factory) |
| 38 |
{ |
| 39 |
feature = |
| 40 |
gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 41 |
|
| 42 |
g_object_unref(factory); |
| 43 |
factory = GST_ELEMENT_FACTORY(feature); |
| 44 |
type = gst_element_factory_get_element_type(factory); |
| 45 |
g_object_unref(factory); |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
return type; |
| 50 |
} |
| 51 |
|
| 52 |
} // extern "C" |
| 53 |
|
| 54 |
namespace Gst |
| 55 |
{ |
| 56 |
|
| 57 |
FakeSrc::FakeSrc() |
| 58 |
: _CONSTRUCT("name", static_cast<char*>(0)) |
| 59 |
{} |
| 60 |
|
| 61 |
FakeSrc::FakeSrc(const Glib::ustring& name) |
| 62 |
: _CONSTRUCT("name", name.c_str()) |
| 63 |
{} |
| 64 |
|
| 65 |
} |