gstreamer/tests
Andy Wingo da72aaa235 check/net/gstnetclientclock.c (test_functioning): Adjust to rate_num/rate_denom change.
Original commit message from CVS:
2005-11-23  Andy Wingo  <wingo@pobox.com>

* check/net/gstnetclientclock.c (test_functioning): Adjust to
rate_num/rate_denom change.

* gst/net/gstnetclientclock.c
(gst_net_client_clock_observe_times): Take the SLAVE_LOCK not the
OBJECT_LOCK. Don't call add_observation with the lock.

* gst/gstclock.c (gst_clock_init): Initialize the rate as a
fraction.
(gst_clock_adjust_unlocked): Adjust using uint64_scale and the
rate fraction.
(gst_clock_set_calibration, gst_clock_get_calibration): Change to
deal with rate as a fraction whose numerator and denominator are
GstClockTime values.
(gst_clock_set_master): Only use the OBJECT_LOCK to set the
master; the other fields are protected by the SLAVE_LOCK.
(do_linear_regression): Note that this must be called with the
SLAVE_LOCK.
(gst_clock_add_observation): Take the SLAVE_LOCK, not the
OBJECT_LOCK. Call set_calibration instead of touching the
variables directly.
(gst_clock_set_property, gst_clock_get_property): Protect
master/slave parameters with the SLAVE_LOCK.

* gst/gstclock.h (GstClock): Remove rate, add rate_numerator and
rate_denominator. PR3C1S3. Add a new lock, the SLAVE_LOCK, and
note that all of the instance variables that add_observation and
the set_master functions use are protected by that lock and not
the OBJECT_LOCK.
(GST_CLOCK_SLAVE_LOCK, GST_CLOCK_SLAVE_UNLOCK): New macros.

* gst/gstclock.c (gst_clock_add_observation): No longer requires
the caller to take the object lock.
2005-11-23 12:36:00 +00:00
..
benchmarks gst/gstelement.h (GstState): Renamed from GstElementState, changed to be a normal enum instead of flags. 2005-09-02 15:42:00 +00:00
check check/net/gstnetclientclock.c (test_functioning): Adjust to rate_num/rate_denom change. 2005-11-23 12:36:00 +00:00
instantiate gst/gstbin.c: use gst_object_has_ancestor(). 2005-09-27 09:57:20 +00:00
misc check/: Add a most minimal test for the net client clock. More to come later. 2005-11-17 17:55:17 +00:00
muxing docs/design/part-events.txt: Small update. 2005-07-22 11:47:10 +00:00
negotiation reorganize C/LIB flags add gst_info to gstcompat.h 2004-05-04 12:38:36 +00:00
old check/gst/gstvalue.c: Add a deserialisation test for fractions 2005-11-20 17:12:49 +00:00
probes *.c: Don't cast to GST_OBJECT when reffing or unreffing. Large source-munging commit!!! 2005-06-28 09:59:01 +00:00
sched tests/sched/: 2005-10-10 16:43:32 +00:00
seeking gst/gstbin.c: use gst_object_has_ancestor(). 2005-09-27 09:57:20 +00:00
threadstate gst/gstbin.c: use gst_object_has_ancestor(). 2005-09-27 09:57:20 +00:00
.gitignore tests/mass_elements.gnuplot: gnuplot file for the mass_elements benchmark. Run as gnuplot mass_elements.gnuplot > foo... 2005-02-24 12:31:12 +00:00
bench-complexity.scm tests/: New files, good for running complexity benchmarks. 2005-02-24 17:12:19 +00:00
bench-mass_elements.scm tests/mass_elements.gnuplot: gnuplot file for the mass_elements benchmark. Run as gnuplot mass_elements.gnuplot > foo... 2005-02-24 12:31:12 +00:00
complexity.c gst/gstelement.h (GstState): Renamed from GstElementState, changed to be a normal enum instead of flags. 2005-09-02 15:42:00 +00:00
complexity.gnuplot tests/: New files, good for running complexity benchmarks. 2005-02-24 17:12:19 +00:00
lat.c gst/gstbin.c: use gst_object_has_ancestor(). 2005-09-27 09:57:20 +00:00
Makefile.am tests/Makefile.am (noinst_PROGRAMS): No more init.c. 2005-10-10 16:20:41 +00:00
mass_elements.c gst/gstelement.h (GstState): Renamed from GstElementState, changed to be a normal enum instead of flags. 2005-09-02 15:42:00 +00:00
network-clock-utils.scm check/: Add a most minimal test for the net client clock. More to come later. 2005-11-17 17:55:17 +00:00
network-clock.scm check/: Add a most minimal test for the net client clock. More to come later. 2005-11-17 17:55:17 +00:00
plot-data tests/network-clock-utils.scm (debug, print-event): New utils. 2005-06-28 16:57:27 +00:00
README put everything in tests/ 2002-01-05 01:25:28 +00:00

This directory contains various tests designed to test GStreamer's
behavior. When these tests work, they should be recast in the form
of regression tests and moved to ../testsuite.