[rygel] media-export: Reenable media art extraction
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Reenable media art extraction
- Date: Thu, 22 Nov 2012 22:56:58 +0000 (UTC)
commit 25e6f23dff4fcf13c2cd6080fc8d5137586da4e1
Author: Jens Georg <jensg openismus com>
Date: Thu Nov 22 22:18:26 2012 +0100
media-export: Reenable media art extraction
.../media-export/rygel-media-export-item.vala | 4 ++--
.../rygel-media-export-jpeg-writer.vala | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 90c100b..2a786d8 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -199,7 +199,7 @@ namespace Rygel.MediaExport.ItemFactory {
return item;
}
-/* Sample sample;
+ Sample sample;
audio_info.get_tags ().get_sample (Tags.IMAGE, out sample);
if (sample == null) {
return item;
@@ -222,7 +222,7 @@ namespace Rygel.MediaExport.ItemFactory {
break;
default:
break;
- } */
+ }
return item;
}
diff --git a/src/plugins/media-export/rygel-media-export-jpeg-writer.vala b/src/plugins/media-export/rygel-media-export-jpeg-writer.vala
index d5162fa..0434485 100644
--- a/src/plugins/media-export/rygel-media-export-jpeg-writer.vala
+++ b/src/plugins/media-export/rygel-media-export-jpeg-writer.vala
@@ -55,13 +55,13 @@ internal class Rygel.MediaExport.JPEGWriter : GLib.Object {
*
* FIXME This uses a nested main-loop to block which is ugly.
*/
-/* public void write (Gst.Buffer buffer, File file) {
+ public void write (Gst.Buffer buffer, File file) {
+ Gst.FlowReturn flow;
this.sink.file = file;
- var new_buffer = Gst.buffer_copy (buffer);
- this.appsrc.push_buffer (new_buffer);
+ Signal.emit_by_name (appsrc, "push-buffer", buffer, out flow);
this.appsrc.end_of_stream ();
this.bin.set_state (State.PLAYING);
this.loop.run ();
this.bin.set_state (State.NULL);
- } */
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]