From c985c341aba87526c5a0180b0ee9b22c29bf454a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 7 Jul 2005 08:16:54 +0000 Subject: [PATCH] gst/base/gstbasesrc.c: Allow subclasses to implement their own negotiation. Original commit message from CVS: * gst/base/gstbasesrc.c: (gst_base_src_get_range), (gst_base_src_default_negotiate), (gst_base_src_negotiate): Allow subclasses to implement their own negotiation. --- ChangeLog | 6 ++++++ gst/base/gstbasesrc.c | 4 +++- libs/gst/base/gstbasesrc.c | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 688abc1ed6..9e2fa5143b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-07 Wim Taymans + + * gst/base/gstbasesrc.c: (gst_base_src_get_range), + (gst_base_src_default_negotiate), (gst_base_src_negotiate): + Allow subclasses to implement their own negotiation. + 2005-07-07 Jan Schmidt * docs/design/part-gstbin.txt: diff --git a/gst/base/gstbasesrc.c b/gst/base/gstbasesrc.c index 9ebb8dbf69..4d8358f27b 100644 --- a/gst/base/gstbasesrc.c +++ b/gst/base/gstbasesrc.c @@ -531,6 +531,8 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length, GST_LIVE_LOCK (src); if (src->is_live) { while (!src->live_running) { + GST_DEBUG ("live source signal waiting"); + GST_LIVE_SIGNAL (src); GST_DEBUG ("live source waiting for running state"); GST_LIVE_WAIT (src); GST_DEBUG ("live source unlocked"); @@ -759,7 +761,7 @@ static gboolean gst_base_src_negotiate (GstBaseSrc * basesrc) { GstBaseSrcClass *bclass; - gboolean result = FALSE; + gboolean result = TRUE; bclass = GST_BASE_SRC_GET_CLASS (basesrc); diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 9ebb8dbf69..4d8358f27b 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -531,6 +531,8 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length, GST_LIVE_LOCK (src); if (src->is_live) { while (!src->live_running) { + GST_DEBUG ("live source signal waiting"); + GST_LIVE_SIGNAL (src); GST_DEBUG ("live source waiting for running state"); GST_LIVE_WAIT (src); GST_DEBUG ("live source unlocked"); @@ -759,7 +761,7 @@ static gboolean gst_base_src_negotiate (GstBaseSrc * basesrc) { GstBaseSrcClass *bclass; - gboolean result = FALSE; + gboolean result = TRUE; bclass = GST_BASE_SRC_GET_CLASS (basesrc);