check/gst/gstevent.c (create_custom_events): Check that
authorAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 17:21:15 +0000 (17:21 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 Nov 2005 17:21:15 +0000 (17:21 +0000)
commit153931fa8698a4a4735cb717ebeed652c4b2e123
treed00136509c8a4e607b8e44f15da95a97b08bbf20
parente6bbe0ddb2f34503e932e7950be1344832655e84
check/gst/gstevent.c (create_custom_events): Check that

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* check/gst/gstevent.c (create_custom_events): Check that
FLUSH_STOP is serialized.

* check/elements/identity.c (event_func):
* check/elements/fakesrc.c (event_func): No stream lock, the core
takes it.

* gst/base/gstbasetransform.c (gst_base_transform_event): No more
stream lock taking, yay.

* gst/gstevent.h (GST_EVENT_FLUSH_STOP): Marked as serialized to
ensure that core takes the stream lock.

* gst/base/gstbasesrc.c (gst_base_src_do_seek): Update for stream
lock name change.

* gst/base/gstbasesink.c (gst_base_sink_event): No need to take
the stream lock for EOS, NEWSEGMENT, or FLUSH_STOP, the core does
it already. For the flush start we do take it though so we get the
right preroll state change messages.

* gst/gstqueue.c (gst_queue_sink_activate_push): No need to take
the stream lock here, the core does it for us.

* gst/gstpad.h (GST_PAD_GET_STREAM_LOCK): Renamed from
GST_STREAM_GET_LOCK.
(GST_PAD_STREAM_LOCK, GST_PAD_STREAM_TRYLOCK)
(GST_PAD_STREAM_UNLOCK, GST_PAD_STREAM_UNLOCK_FULL)
(GST_PAD_STREAM_LOCK_FULL): Renamed from GST_STREAM_*.
(GST_PAD_GET_PREROLL_LOCK): Renamed from GST_PREROLL_GET_LOCK.
(GST_PAD_PREROLL_LOCK, GST_PAD_PREROLL_TRYLOCK)
(GST_PAD_PREROLL_UNLOCK): Renamed from GST_PREROLL_*.

* gst/gstpad.c: Update for stream lock name change.

* gst/base/gstbasesink.c: Update for preroll lock name change.
18 files changed:
ChangeLog
check/elements/fakesrc.c
check/elements/identity.c
check/gst/gstevent.c
gst/base/gstbasesink.c
gst/base/gstbasesrc.c
gst/base/gstbasetransform.c
gst/gstevent.h
gst/gstpad.c
gst/gstpad.h
gst/gstqueue.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasetransform.c
plugins/elements/gstqueue.c
tests/check/elements/fakesrc.c
tests/check/elements/identity.c
tests/check/gst/gstevent.c