GNOME Bugzilla – Bug 735975
The GstDeviceMonitor documentation is outdated
Last modified: 2014-09-04 09:55:59 UTC
Seen here [1]. a) Line 5, it should say gchar* instead of just gchar. b) gst_caps_new_simple_empty doesn't seem to exist. [1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstDeviceMonitor.html#gst-device-monitor-start
Thanks for the bug report. Should be fixed in git now, the website will get updated as well at some point.
commit c06d9f7b98a2b1b41d2a2754d8b05ac37094cd5d Author: Tim-Philipp Müller <tim@centricular.com> Date: Wed Sep 3 17:38:16 2014 +0100 devicemonitor: fix typo in sample code in docs https://bugzilla.gnome.org/show_bug.cgi?id=735975