devicemonitor: fix typo in sample code in docs
authorTim-Philipp Müller <tim@centricular.com>
Wed, 3 Sep 2014 16:38:16 +0000 (17:38 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 3 Sep 2014 18:55:07 +0000 (19:55 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=735975

gst/gstdevicemonitor.c

index 458c43b..a1394a2 100644 (file)
@@ -41,7 +41,7 @@
  *   my_bus_func (GstBus * bus, GstMessage * message, gpointer user_data)
  *   {
  *      GstDevice *device;
- *      gchar name;
+ *      gchar *name;
  *
  *      switch (GST_MESSAGE_TYPE (message)) {
  *        case GST_MESSAGE_DEVICE_ADDED:
@@ -75,7 +75,7 @@
  *      gst_bus_add_watch (bus, my_bus_func, NULL);
  *      gst_object_unref (bus);
  *
- *      caps = gst_caps_new_simple_empty ("video/x-raw");
+ *      caps = gst_caps_new_empty_simple ("video/x-raw");
  *      gst_device_monitor_add_filter (monitor, "Video/Source", caps);
  *      gst_caps_unref (caps);
  *