[rygel] media-export: Use proper way to ref sinks
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Use proper way to ref sinks
- Date: Mon, 12 Jul 2010 14:44:59 +0000 (UTC)
commit 7ff4705495f0f824d3e07a619a96834da7d618db
Author: Jens Georg <mail jensge org>
Date: Sun Jul 11 11:01:23 2010 +0300
media-export: Use proper way to ref sinks
This fixes a problem with the current GStreamer VAPI. Previous VAPI
seemed to be wrong and thus the normal ref function used from there does
not work anymore, but wasn't the correct function to do this anyway.
.../rygel-media-export-metadata-extractor.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
index 6966fe6..8851bc1 100644
--- a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
+++ b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
@@ -83,14 +83,12 @@ public class Rygel.MediaExport.MetadataExtractor: GLib.Object {
// setup fake sinks
this.playbin = this.factory.create ("tag_reader");
- // increase reference count of sinks to workaround
- // bug #596078
var sink = ElementFactory.make ("fakesink", null);
- sink.ref ();
+ sink.ref_sink ();
this.playbin.video_sink = sink;
sink = ElementFactory.make ("fakesink", null);
- sink.ref ();
+ sink.ref_sink ();
this.playbin.audio_sink = sink;
var bus = this.playbin.get_bus ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]