From b8609a7a7694be3d32a21c97cb91bb28900e8821 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 20 Oct 2008 13:29:06 +0000 Subject: [PATCH] libs/gst/base/gstbasesrc.c: Update comment. Original commit message from CVS: * libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek): Update comment. * libs/gst/base/gstbasetransform.c: (gst_base_transform_handle_buffer), (gst_base_transform_reconfigure): Add some debug info. * win32/common/libgstbase.def: Add new method. --- ChangeLog | 13 +++++++++++++ libs/gst/base/gstbasesrc.c | 3 ++- libs/gst/base/gstbasetransform.c | 2 ++ win32/common/libgstbase.def | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7c5fc8..34ce342 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2008-10-20 Wim Taymans + + * libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek): + Update comment. + + * libs/gst/base/gstbasetransform.c: + (gst_base_transform_handle_buffer), + (gst_base_transform_reconfigure): + Add some debug info. + + * win32/common/libgstbase.def: + Add new method. + 2008-10-19 Stefan Kost * libs/gst/base/gstbasesrc.c: (gst_base_src_default_do_seek); diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 1e02c0a..e28cc1a 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -1169,7 +1169,8 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock) if (dest_format != seek_format && !relative_seek) { /* If we have an ABSOLUTE position (SEEK_SET only), we can convert it * here before taking the stream lock, otherwise we must convert it later, - * once we have the stream lock and can read the current position */ + * once we have the stream lock and can read the last configures segment + * start and stop positions */ gst_segment_init (&seeksegment, dest_format); if (!gst_base_src_prepare_seek_segment (src, event, &seeksegment)) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 86a081b..4a47f97 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -1694,6 +1694,7 @@ gst_base_transform_handle_buffer (GstBaseTransform * trans, GstBuffer * inbuf, GST_OBJECT_UNLOCK (trans); if (G_UNLIKELY (reconfigure)) { + GST_DEBUG_OBJECT (trans, "we had a pending reconfigure"); /* if we need to reconfigure we pretend a buffer with new caps arrived. This * will reconfigure the transform with the new output format. We can only * do this if the buffer actually has caps. */ @@ -2326,6 +2327,7 @@ gst_base_transform_reconfigure (GstBaseTransform * trans) g_return_if_fail (GST_IS_BASE_TRANSFORM (trans)); GST_OBJECT_LOCK (trans); + GST_DEBUG_OBJECT (trans, "marking reconfigure"); trans->priv->reconfigure = TRUE; GST_OBJECT_UNLOCK (trans); } diff --git a/win32/common/libgstbase.def b/win32/common/libgstbase.def index f8e7e16..d29797f 100644 --- a/win32/common/libgstbase.def +++ b/win32/common/libgstbase.def @@ -10,6 +10,7 @@ EXPORTS gst_adapter_push gst_adapter_take gst_adapter_take_buffer + gst_base_sink_do_preroll gst_base_sink_get_blocksize gst_base_sink_get_last_buffer gst_base_sink_get_latency -- 2.7.4