[gnac] Removed useless function
- From: BenoÃt Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac] Removed useless function
- Date: Mon, 13 Feb 2012 22:46:21 +0000 (UTC)
commit 0e80fecd105dc4dcc97187e33c2fa0eb98fc5ead
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date: Mon Feb 13 22:44:25 2012 +0000
Removed useless function
libgnac/libgnac-metadata.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/libgnac/libgnac-metadata.c b/libgnac/libgnac-metadata.c
index 3252b55..8b51f28 100644
--- a/libgnac/libgnac-metadata.c
+++ b/libgnac/libgnac-metadata.c
@@ -197,16 +197,6 @@ libgnac_metadata_add_uint_value(LibgnacMetadata *md,
static void
-libgnac_metadata_size_prepared_cb(GdkPixbufLoader *loader,
- gint width,
- gint height,
- gpointer user_data)
-{
- gdk_pixbuf_loader_set_size(loader, width, height);
-}
-
-
-static void
libgnac_metadata_process_tag_image(const GstTagList *taglist,
const gchar *tag_name,
gint count,
@@ -240,15 +230,10 @@ libgnac_metadata_process_tag_image(const GstTagList *taglist,
(image_type == GST_TAG_IMAGE_TYPE_UNDEFINED && count == 1))
{
GdkPixbufLoader *loader = gdk_pixbuf_loader_new();
-
- g_signal_connect(loader, "size-prepared",
- G_CALLBACK(libgnac_metadata_size_prepared_cb), NULL);
-
+ GError *error = NULL;
guint8 *data = GST_BUFFER_DATA(buffer);
guint size = GST_BUFFER_SIZE(buffer);
- GError *error = NULL;
-
if (!gdk_pixbuf_loader_write(loader, data, size, &error)) {
libgnac_debug("Error writing data to pixbuf: %s", error->message);
gdk_pixbuf_loader_close(loader, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]