summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2012-10-23 15:54:06 +0200
committerStefan Sauer <ensonic@users.sf.net>2012-10-23 15:54:06 +0200
commit87ff291ebefbbfb441002ece5c944dc2323b32cc (patch)
tree255d4edac318cd98fec04b98011a855d7b29a136
parent4de435be78aaa60d87c9b0d3e3c18215ef3f2a43 (diff)
cleanup. update name and year, queue a redraw for album art
-rw-r--r--src/mi-app.vala4
-rw-r--r--src/mi-info.vala15
2 files changed, 7 insertions, 12 deletions
diff --git a/src/mi-app.vala b/src/mi-app.vala
index 04bb624..94f6228 100644
--- a/src/mi-app.vala
+++ b/src/mi-app.vala
@@ -1,5 +1,5 @@
/* GStreamer media browser
- * Copyright (C) 2010 Stefan Kost <ensonic@user.sf.net>
+ * Copyright (C) 2010-2012 Stefan Sauer <ensonic@user.sf.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -153,7 +153,7 @@ public class MediaInfo.App : Window
dlg.set_version(Config.PACKAGE_VERSION);
dlg.set_program_name("GStreamer Media Info");
dlg.set_comments(_("Quickly browse, play and analyze media files."));
- dlg.set_copyright("Stefan Kost <ensonic@users.sf.net>");
+ dlg.set_copyright("Stefan Sauer <ensonic@users.sf.net>");
dlg.run();
dlg.hide();
}
diff --git a/src/mi-info.vala b/src/mi-info.vala
index 8dc441b..1a1a2ba 100644
--- a/src/mi-info.vala
+++ b/src/mi-info.vala
@@ -1,5 +1,5 @@
/* GStreamer media browser
- * Copyright (C) 2010 Stefan Kost <ensonic@user.sf.net>
+ * Copyright (C) 2010-2012 Stefan Sauer <ensonic@user.sf.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -628,6 +628,8 @@ public class MediaInfo.Info : VPaned
nb.append_page (table, new Label (@"audio $i"));
}
nb.show_all();
+
+ drawing_area.queue_draw();
//l = info.get_container_streams ();
@@ -765,15 +767,7 @@ public class MediaInfo.Info : VPaned
if (str.length > 0)
str += "\n";
- // TODO: decode images:
- /*
- GInputStream is = g_memory_input_stream_new_from_data(GST_BUFFER_DATA(buf),GST_BUFFER_SIZE(buf,NULL);
- GdkPixbuf pb = gdk_pixbuf_new_from_stream(is, NULL, NULL);
- g_input_stream_close(is,NULL,NULL);
- res = gdk_pixbuf_scale_simple(pb, w, h, GDK_INTERP_BILINEAR);
- */
- // - need to figure a way to return them
- // - where we show them -> in the drawing area
+ // decode images, we show them in the drawing area
v = s.get_value (fn);
if (v.holds(typeof(Gst.Buffer))) {
Gst.Buffer buf = v.get_buffer();
@@ -782,6 +776,7 @@ public class MediaInfo.Info : VPaned
try {
InputStream is = new MemoryInputStream.from_data (buf.data,null);
album_art = new Gdk.Pixbuf.from_stream (is, null);
+ debug("found album art");
is.close(null);
} catch (Error e) {
debug ("Decoding album art failed: %s: %s", e.domain.to_string (), e.message);