[rygel-gst-0-10-media-engine] Fix reference counting of sink
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-gst-0-10-media-engine] Fix reference counting of sink
- Date: Wed, 13 Feb 2013 15:25:30 +0000 (UTC)
commit 24d7c345ffff0ae11332c62ca4358fdb961ef6b8
Author: Jens Georg <jensg openismus com>
Date: Wed Feb 13 15:27:51 2013 +0100
Fix reference counting of sink
Prevent critical on end-of-streaming and deadlock on error.
src/rygel-gst-data-source.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel-gst-data-source.c b/src/rygel-gst-data-source.c
index 06d36f6..0bf400d 100644
--- a/src/rygel-gst-data-source.c
+++ b/src/rygel-gst-data-source.c
@@ -308,6 +308,7 @@ rygel_gst_data_source_prepare_pipeline (RygelGstDataSource *self,
GstBus *bus;
self->priv->sink = rygel_gst_sink_new (RYGEL_DATA_SOURCE (self), self->priv->seek);
+ gst_object_ref_sink (self->priv->sink);
self->priv->pipeline = GST_PIPELINE (gst_pipeline_new (name));
if (self->priv->pipeline == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]