Commit 261abbb0 authored by Stefan Kost's avatar Stefan Kost

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
parent a378db54
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),
......
......@@ -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
......
......@@ -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,
......
......@@ -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)
......
......@@ -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 ... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment