GStreamer and D
Mike Wey via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 17 03:25:03 PDT 2017
On 06/17/2017 01:34 AM, Jay Norwood wrote:
> gst_plugin_feature_get_name
This is a macro, the alternative:
```
import gobject.Value;
Value name;
feature.getProperty("name", name);
name.getString();
```
or if you don't want to use GValue.
```
to!string((cast(GstObject)feature.getPluginFeatureStruct()).name);
```
> g_list_next
https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/glib/ListG.d#L75
> g_return_if_fail
Also a macro, witch basically does this:
```
if ( !expression )
return;
```
> g_value_get_boolean
https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/gobject/Value.d#L245
--
Mike Wey
More information about the Digitalmars-d-learn
mailing list