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.
This commit is contained in:
Wim Taymans 2005-07-07 08:16:54 +00:00
parent 6796aaa385
commit c985c341ab
3 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-07-07 Wim Taymans <wim@fluendo.com>
* 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 <thaytan@mad.scientist.com>
* docs/design/part-gstbin.txt:

View file

@ -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);

View file

@ -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);