docs/design/part-states.txt: two tiny additional comments

Original commit message from CVS:
* docs/design/part-states.txt:
two tiny additional comments
* gst/gststructure.c:
doc fixing
* tests/check/Makefile.am:
* tests/check/elements/queue.c: (queue_overrun), (queue_underrun),
(GST_START_TEST):
disable test for now, unless it gets fixed
This commit is contained in:
Stefan Kost 2006-12-21 15:00:08 +00:00
parent a378db54fb
commit 261abbb01e
5 changed files with 27 additions and 11 deletions

View file

@ -1,3 +1,16 @@
2006-12-21 Stefan Kost <ensonic@users.sf.net>
* docs/design/part-states.txt:
two tiny additional comments
* gst/gststructure.c:
doc fixing
* tests/check/Makefile.am:
* tests/check/elements/queue.c: (queue_overrun), (queue_underrun),
(GST_START_TEST):
disable test for now, unless it gets fixed
2006-12-21 Stefan Kost <ensonic@users.sf.net>
* tests/check/elements/queue.c: (queue_overrun), (queue_underrun),

View file

@ -29,13 +29,14 @@ State transitions
the following state changes are possible:
NULL -> READY
- The element must check if the resources it needs are available.
Audiosinks typically try to probe the device.
- The element must check if the resources it needs are available.
Device sinks and -sources typically try to probe the device to constain
their caps.
READY -> PAUSED
- The element opens the device and prepares itself for PLAYING.
- the element pads are activated in order to receive data in PAUSED.
streaming threads are started.
- the element pads are activated in order to receive data in PAUSED.
Streaming threads are started.
- some elements might need to return ASYNC and complete the state change
when they have enough information. It is a requirement for sinks to
return ASYNC and complete the state change when they receive the first

View file

@ -1016,9 +1016,9 @@ gst_structure_get_boolean (const GstStructure * structure,
* given field. Caller is responsible for making sure the field exists
* and has the correct type.
*
* Returns: TRUE if the value could be set correctly. If there was no field
* Returns: %TRUE if the value could be set correctly. If there was no field
* with @fieldname or the existing field did not contain an int, this function
* returns FALSE.
* returns %FALSE.
*/
gboolean
gst_structure_get_int (const GstStructure * structure,

View file

@ -59,7 +59,6 @@ REGISTRY_CHECKS = \
elements/fdsrc \
elements/filesrc \
elements/identity \
elements/queue \
libs/basesrc \
libs/controller \
libs/typefindhelper \
@ -95,8 +94,9 @@ check_PROGRAMS = \
# failing tests
noinst_PROGRAMS = \
gst/gstpipeline \
libs/collectpads \
gst/gstpipeline
elements/queue
TESTS = $(check_PROGRAMS)

View file

@ -98,11 +98,13 @@ GST_START_TEST (test_non_leaky_underrun)
gst_pad_set_active (mysinkpad, TRUE);
g_object_set (G_OBJECT (queue), "max-size-buffers", 2, NULL);
GST_DEBUG ("starting");
fail_unless (gst_element_set_state (queue,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
GST_DEBUG ("running");
/* FIXME: there seems to be a race here */
g_mutex_lock (check_mutex);
g_cond_wait (check_cond, check_mutex);
g_mutex_unlock (check_mutex);
@ -139,12 +141,12 @@ GST_START_TEST (test_non_leaky_overrun)
gst_pad_set_active (mysrcpad, TRUE);
g_object_set (G_OBJECT (queue), "max-size-buffers", 2, NULL);
GST_DEBUG ("starting");
fail_unless (gst_element_set_state (queue,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
GST_DEBUG ("running");
buffer1 = gst_buffer_new_and_alloc (4);
ASSERT_BUFFER_REFCOUNT (buffer1, "buffer", 1);
/* pushing gives away my reference ... */