| 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_app_stream_type_get_type() |
| 10 |
{ |
| 11 |
static GType const type = g_type_from_name("GstAppStreamType"); |
| 12 |
return type; |
| 13 |
} |
| 14 |
|
| 15 |
GType gst_app_src_gstreamermm_get_type() |
| 16 |
{ |
| 17 |
static GType type = 0; |
| 18 |
GstElementFactory* factory = 0; |
| 19 |
GstPluginFeature* feature = 0; |
| 20 |
|
| 21 |
if(!type) |
| 22 |
{ |
| 23 |
factory = gst_element_factory_find("appsrc"); |
| 24 |
// Make sure that the feature is actually loaded: |
| 25 |
if(factory) |
| 26 |
{ |
| 27 |
feature = |
| 28 |
gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 29 |
|
| 30 |
g_object_unref(factory); |
| 31 |
factory = GST_ELEMENT_FACTORY(feature); |
| 32 |
type = gst_element_factory_get_element_type(factory); |
| 33 |
g_object_unref(factory); |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
return type; |
| 38 |
} |
| 39 |
|
| 40 |
} // extern "C" |
| 41 |
|
| 42 |
namespace Gst |
| 43 |
{ |
| 44 |
|
| 45 |
AppSrc::AppSrc() |
| 46 |
: _CONSTRUCT("name", static_cast<char*>(0)) |
| 47 |
{} |
| 48 |
|
| 49 |
AppSrc::AppSrc(const Glib::ustring& name) |
| 50 |
: _CONSTRUCT("name", name.c_str()) |
| 51 |
{} |
| 52 |
|
| 53 |
Gst::FlowReturn AppSrc::push_buffer(const Glib::RefPtr<Gst::Buffer>& arg0) |
| 54 |
{ |
| 55 |
GstFlowReturn result; |
| 56 |
g_signal_emit_by_name(gobj(), "push-buffer", _CONVERT(`const Glib::RefPtr<Gst::Buffer>&', `GstBuffer*', `arg0'), &result, static_cast<void*>(0)); |
| 57 |
return _CONVERT(`GstFlowReturn', `Gst::FlowReturn', `result'); |
| 58 |
} |
| 59 |
|
| 60 |
Gst::FlowReturn AppSrc::push_sample(const Glib::RefPtr<Gst::Sample>& arg0) |
| 61 |
{ |
| 62 |
GstFlowReturn result; |
| 63 |
g_signal_emit_by_name(gobj(), "push-sample", _CONVERT(`const Glib::RefPtr<Gst::Sample>&', `GstSample*', `arg0'), &result, static_cast<void*>(0)); |
| 64 |
return _CONVERT(`GstFlowReturn', `Gst::FlowReturn', `result'); |
| 65 |
} |
| 66 |
|
| 67 |
Gst::FlowReturn AppSrc::end_of_stream() |
| 68 |
{ |
| 69 |
GstFlowReturn result; |
| 70 |
g_signal_emit_by_name(gobj(), "end-of-stream", &result, static_cast<void*>(0)); |
| 71 |
return _CONVERT(`GstFlowReturn', `Gst::FlowReturn', `result'); |
| 72 |
} |
| 73 |
|
| 74 |
} |