[rhythmbox] gi: introspect the GStreamer helper functions



commit 8bbb1f24bab922a76314e3fbcd56d2eee3a95f55
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Mar 1 22:11:32 2013 +1000

    gi: introspect the GStreamer helper functions

 backends/gstreamer/rb-player-gst-helper.c |    4 ++--
 backends/gstreamer/rb-player-gst-helper.h |    4 ++--
 bindings/gi/Makefile.am                   |    2 ++
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-helper.c b/backends/gstreamer/rb-player-gst-helper.c
index b56ff83..ffbef2a 100644
--- a/backends/gstreamer/rb-player-gst-helper.c
+++ b/backends/gstreamer/rb-player-gst-helper.c
@@ -150,7 +150,7 @@ rb_player_gst_find_element_with_property (GstElement *element, const char *prope
  * Converts embedded image data extracted from a tag list into
  * a #GdkPixbuf.  The returned #GdkPixbuf is owned by the caller.
  *
- * Returns: a #GdkPixbuf, or NULL.
+ * Returns: (transfer full): a #GdkPixbuf, or NULL.
  */
 GdkPixbuf *
 rb_gst_process_embedded_image (const GstTagList *taglist, const char *tag)
@@ -167,7 +167,7 @@ rb_gst_process_embedded_image (const GstTagList *taglist, const char *tag)
                const GValue *value;
                const char *media_type;
                GstStructure *caps_struct;
-               int imgtype;
+               int imgtype = 0;
 
                value = gst_tag_list_get_value_index (taglist, tag, i);
                if (value == NULL) {
diff --git a/backends/gstreamer/rb-player-gst-helper.h b/backends/gstreamer/rb-player-gst-helper.h
index 30f6f15..9feb595 100644
--- a/backends/gstreamer/rb-player-gst-helper.h
+++ b/backends/gstreamer/rb-player-gst-helper.h
@@ -32,8 +32,8 @@
 #include <gst/gst.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
-#include "rb-player.h"
-#include "rb-metadata.h"
+#include <backends/rb-player.h>
+#include <metadata/rb-metadata.h>
 
 G_BEGIN_DECLS
 
diff --git a/bindings/gi/Makefile.am b/bindings/gi/Makefile.am
index 7194c61..ed35fe9 100644
--- a/bindings/gi/Makefile.am
+++ b/bindings/gi/Makefile.am
@@ -34,6 +34,8 @@ rb_introspection_sources = \
                backends/rb-player-gst-tee.c \
                backends/rb-player.h \
                backends/rb-player.c \
+               backends/gstreamer/rb-player-gst-helper.h \
+               backends/gstreamer/rb-player-gst-helper.c \
                lib/rb-async-copy.h \
                lib/rb-async-copy.c \
                lib/rb-builder-helpers.h \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]