fix up Makefile.am and remove GST_ENABLE_NEW
[platform/upstream/gstreamer.git] / ChangeLog
1 2005-11-27  Thomas Vander Stichele  <thomas at apestaart dot org>
2
3         * check/Makefile.am:
4         * libs/gst/controller/Makefile.am:
5         * libs/gst/dataprotocol/Makefile.am:
6           fix up Makefile.am and remove GST_ENABLE_NEW
7
8 2005-11-27  Thomas Vander Stichele  <thomas at apestaart dot org>
9
10         * configure.ac:
11         * gst/Makefile.am:
12         * gst/base/Makefile.am:
13         * gst/check/Makefile.am:
14         * gst/elements/Makefile.am:
15         * gst/net/Makefile.am:
16           update LDFLAGS use some more
17
18 2005-11-27  Thomas Vander Stichele  <thomas at apestaart dot org>
19
20         * common/m4/gst-doc.m4:
21           Fixes #312589
22
23 2005-11-26  Edward Hervey  <edward@fluendo.com>
24
25         * gst/gstpluginfeature.c: (gst_plugin_feature_load):
26         This shouldn't issue a g_warning since it returns NULL if it
27         couldn't find the plugin, and all functions using this behave
28         properly on a NULL return. Switching to a GST_WARNING.
29
30 2005-11-25  Jan Schmidt  <thaytan@mad.scientist.com>
31
32         * gst/gstbin.c: (gst_bin_handle_message_func):
33         Don't leak clock messages.
34
35 2005-11-25  Wim Taymans  <wim@fluendo.com>
36
37         * gst/gstutils.c: (gst_util_uint64_scale_int64),
38         (gst_util_uint64_scale_int):
39         Optimisations, remove unneeded vars.
40
41 2005-11-25  Wim Taymans  <wim@fluendo.com>
42
43         * check/gst/gstutils.c: (GST_START_TEST), (gst_utils_suite):
44         Added more checks for the high precision uint64 cases.
45
46         * gst/gstutils.c: (gst_util_uint64_scale_int64),
47         (gst_util_uint64_scale), (gst_util_uint64_scale_int):
48         Implement high precission (guint64 * guint64) / guint64.
49
50 2005-11-24  Wim Taymans  <wim@fluendo.com>
51
52         * gst/base/gstbasesrc.c: (gst_base_src_query):
53         Fix wrong percentage query.
54
55         * gst/gstutils.c: (gst_util_uint64_scale),
56         (gst_util_uint64_scale_int):
57         Add some more common cases that can be handled 
58         efficiently to _scale.
59
60 2005-11-24  Thomas Vander Stichele  <thomas at apestaart dot org>
61
62         * check/gst/gstminiobject.c: (thread_ref), (GST_START_TEST),
63         (gst_mini_object_suite):
64           don't use check calls from threads; check probably isn't
65           threadsafe and using a lock to make it threadsafe would
66           defeat the purpose of this check
67         * gst/check/gstcheck.c:
68         * gst/check/gstcheck.h:
69           use GST_DEBUG some more
70
71 2005-11-24  Wim Taymans  <wim@fluendo.com>
72
73         * gst/gstutils.c: (gst_util_uint64_scale),
74         (gst_util_uint64_scale_int):
75         Chain trivial case to _scale_int.
76
77 2005-11-24  Wim Taymans  <wim@fluendo.com>
78
79         * check/gst/gstutils.c: (GST_START_TEST), (gst_utils_suite):
80         Added test for scaling.
81
82         * gst/gstclock.h:
83         Small doc fix.
84
85         * gst/gstutils.c: (gst_util_uint64_scale_int):
86         Implemented high precision scaling code.
87
88 2005-11-24  Stefan Kost  <ensonic@users.sf.net>
89
90         * gst/gstinfo.h:
91           do not crash on pad==NULL
92
93 2005-11-24  Thomas Vander Stichele  <thomas at apestaart dot org>
94
95         Patch by: Stefan Kost
96
97         * common/gtk-doc.mak:
98         * docs/gst/Makefile.am:
99         * docs/libs/Makefile.am:
100           Fix distcheck issues for the libraries docs build
101           Closes #319599.
102
103 2005-11-24  Michael Smith <msmith@fluendo.com>
104
105         * docs/manual/basics-helloworld.xml:
106           Fix bug #315027: memory leak in example code in docs.
107
108 2005-11-24  Michael Smith <msmith@fluendo.com>
109
110         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
111           Unlock the PREROLL_LOCK in a failure case.
112
113 2005-11-24  Wim Taymans  <wim@fluendo.com>
114
115         * docs/gst/gstreamer-sections.txt:
116         * gst/base/gstadapter.h:
117         * gst/base/gstbasesink.h:
118         * gst/base/gstbasesrc.h:
119         * gst/base/gstbasetransform.h:
120         * gst/base/gstpushsrc.h:
121         * gst/elements/gstfakesink.h:
122         * gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type):
123         * gst/elements/gstfakesrc.h:
124         * gst/elements/gstfilesink.h:
125         * gst/elements/gstfilesrc.h:
126         * gst/gst.c:
127         * gst/gstbin.c:
128         * gst/gstbuffer.c: (_gst_buffer_copy):
129         * gst/gstbus.h:
130         * gst/gstcaps.c:
131         * gst/gstchildproxy.c:
132         * gst/gstclock.c:
133         * gst/gstelement.c:
134         * gst/gstelementfactory.c:
135         * gst/gstelementfactory.h:
136         * gst/gstevent.c:
137         * gst/gstghostpad.h:
138         * gst/gstindex.h:
139         * gst/gstinterface.h:
140         * gst/gstminiobject.c:
141         * gst/gstminiobject.h:
142         * gst/gstpad.c:
143         * gst/gstpad.h:
144         * gst/gstpadtemplate.h:
145         * gst/gstpipeline.h:
146         * gst/gstpluginfeature.h:
147         * gst/gstquery.h:
148         * gst/gstqueue.h:
149         * gst/gsttaglist.c:
150         * gst/gsttaglist.h:
151         * gst/gsttagsetter.c:
152         * gst/gsttagsetter.h:
153         * gst/gsttrace.c:
154         * gst/gsttrace.h:
155         * gst/gsttypefind.h:
156         * gst/gsturi.h:
157         * gst/gstvalue.c:
158         * gst/net/gstnetclientclock.c:
159         * gst/net/gstnetclientclock.h:
160         * gst/net/gstnettimepacket.c:
161         * gst/net/gstnettimeprovider.c:
162         * gst/net/gstnettimeprovider.h:
163         Doc fixes.
164
165 2005-11-23  Thomas Vander Stichele  <thomas at apestaart dot org>
166
167         * configure.ac: back to HEAD
168
169 === release 0.9.6 ===
170
171 2005-11-23  Thomas Vander Stichele <thomas at apestaart dot org>
172
173         * configure.ac:
174           releasing 0.9.6, "Always On Time"
175
176 2005-11-23  Wim Taymans  <wim@fluendo.com>
177
178         * docs/gst/gstreamer-sections.txt:
179         * gst/glib-compat.c:
180         * gst/gsttagsetter.c:
181         * gst/gstvalue.c:
182         * gst/net/gstnetclientclock.c:
183         * gst/net/gstnettimepacket.h:
184         Doc updates.
185
186 2005-11-23  Thomas Vander Stichele  <thomas at apestaart dot org>
187
188         * docs/faq/using.xml:
189         * docs/libs/tmpl/gstcontrol.sgml:
190         * docs/manual/advanced-dparams.xml:
191         * docs/manual/appendix-checklist.xml:
192         * docs/manual/basics-elements.xml:
193         * docs/pwg/other-source.xml:
194         * docs/random/moving-plugins:
195         * gst/gstpad.c:
196         * tools/gst-launch.1.in:
197           remove mentions of sinesrc
198
199 2005-11-23  Michael Smith <msmith@fluendo.com>
200
201         * docs/gst/gstreamer-sections.txt:
202           Update for new API and API changes.
203         * gst/gstobject.h:
204           Documentation fix: GST_TRYLOCK -> GST_OBJECT_TRYLOCK
205         * gst/gstvalue.c:
206           Documentation typo fix.
207         * gst/net/gstnettimepacket.c:
208           Documentation fixes for arguments.
209
210 2005-11-23  Jan Schmidt  <thaytan@mad.scientist.com>
211
212         * gst/gststructure.c: (gst_structure_get_fraction),
213         (gst_structure_parse_value),
214         (gst_structure_fixate_field_nearest_fraction):
215         * gst/gststructure.h:
216         * gst/gstutils.c: (gst_util_uint64_scale_int):
217         * gst/gstutils.h:
218         * scripts/update-funcnames:
219         API Changes. 
220         Rename gst_util_clock_time_scale to gst_util_uint64_scale_int
221         Make gst_structure_fixate_field_nearest_fraction take a numerator
222         and denominator argument instead of a GValue
223         add gst_structure_get_fraction helper function.
224
225 2005-11-23  Wim Taymans  <wim@fluendo.com>
226
227         * docs/design/part-TODO.txt:
228         Update TODO.
229
230         * gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
231         * gst/net/gstnetclientclock.h:
232         Use parent fields for timeout and window_size.
233
234 2005-11-23  Andy Wingo  <wingo@pobox.com>
235
236         * check/net/gstnetclientclock.c (test_functioning): Adjust to
237         rate_num/rate_denom change.
238
239         * gst/net/gstnetclientclock.c
240         (gst_net_client_clock_observe_times): Take the SLAVE_LOCK not the
241         OBJECT_LOCK. Don't call add_observation with the lock.
242
243         * gst/gstclock.c (gst_clock_init): Initialize the rate as a
244         fraction.
245         (gst_clock_adjust_unlocked): Adjust using uint64_scale and the
246         rate fraction.
247         (gst_clock_set_calibration, gst_clock_get_calibration): Change to
248         deal with rate as a fraction whose numerator and denominator are
249         GstClockTime values.
250         (gst_clock_set_master): Only use the OBJECT_LOCK to set the
251         master; the other fields are protected by the SLAVE_LOCK.
252         (do_linear_regression): Note that this must be called with the
253         SLAVE_LOCK.
254         (gst_clock_add_observation): Take the SLAVE_LOCK, not the
255         OBJECT_LOCK. Call set_calibration instead of touching the
256         variables directly.
257         (gst_clock_set_property, gst_clock_get_property): Protect
258         master/slave parameters with the SLAVE_LOCK.
259
260         * gst/gstclock.h (GstClock): Remove rate, add rate_numerator and
261         rate_denominator. PR3C1S3. Add a new lock, the SLAVE_LOCK, and
262         note that all of the instance variables that add_observation and
263         the set_master functions use are protected by that lock and not
264         the OBJECT_LOCK.
265         (GST_CLOCK_SLAVE_LOCK, GST_CLOCK_SLAVE_UNLOCK): New macros.
266
267         * gst/gstclock.c (gst_clock_add_observation): No longer requires
268         the caller to take the object lock.
269
270 2005-11-23  Wim Taymans  <wim@fluendo.com>
271
272         * gst/gsterror.c: (_gst_core_errors_init):
273         * gst/gsterror.h:
274         Add error for clock stuff.
275
276         * gst/gstpipeline.c: (gst_pipeline_change_state),
277         (gst_pipeline_set_clock):
278         Post clock error when clock cannot be used in a pipeline.
279
280 2005-11-23  Stefan Kost  <ensonic@users.sf.net>
281
282         * docs/gst/gstreamer-sections.txt:
283           make two symbols from gstinfo private for the docs
284         * gst/base/gstcollectpads.h:
285         * gst/gstutils.c:
286           fix doc typos, update docs
287
288 2005-11-22  Wim Taymans  <wim@fluendo.com>
289
290         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
291         (gst_base_sink_wait), (gst_base_sink_do_sync),
292         (gst_base_sink_handle_event):
293         * gst/base/gstbasesink.h:
294         No need to store the clock, the parent element class already
295         has it.
296
297         * gst/gstbin.c: (gst_bin_set_clock_func), (gst_bin_add_func):
298         Updates for clock_set returning a gboolean
299
300         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_id_wait),
301         (gst_clock_id_wait_async), (gst_clock_class_init),
302         (gst_clock_init), (gst_clock_finalize),
303         (gst_clock_get_internal_time), (gst_clock_get_time),
304         (gst_clock_slave_callback), (gst_clock_set_master),
305         (gst_clock_get_master), (do_linear_regression),
306         (gst_clock_add_observation), (gst_clock_set_property),
307         (gst_clock_get_property):
308         * gst/gstclock.h:
309         Implement master/slave. When setting a clock as a slave, a
310         periodic timeout is scheduled to sample master and slave times.
311         Then the slave clock is recalibrated to match offset and rate
312         of the master clock.
313         Update logging a bit.
314         Add flag so that a clock can state that is cannot be slaved to
315         another clock.
316
317         * gst/gstelement.c: (gst_element_set_clock):
318         * gst/gstelement.h:
319         The set clock returns a gboolean for when an element cannot
320         deal with the selected clock in the pipeline. 
321
322         * gst/gstpipeline.c: (gst_pipeline_change_state),
323         (gst_pipeline_set_clock):
324         * gst/gstpipeline.h:
325         Handle the case where the selected clock cannot be set on
326         the pipeline.
327
328         * gst/net/gstnetclientclock.c: (gst_net_client_clock_class_init),
329         (gst_net_client_clock_init), (gst_net_client_clock_finalize),
330         (gst_net_client_clock_set_property),
331         (gst_net_client_clock_get_property),
332         (gst_net_client_clock_observe_times):
333         * gst/net/gstnetclientclock.h:
334         Use regression code in GstClock parent, remove duplicated
335         functionality.
336
337 2005-11-22  Michael Smith <msmith@fluendo.com>
338
339         * gst/gstutils.c: (gst_util_clock_time_scale):
340         * gst/gstutils.h:
341         * docs/gst/gstreamer-sections.txt:
342           Rename method to have extra underscore.
343
344 2005-11-22  Thomas Vander Stichele  <thomas at apestaart dot org>
345
346         * gst/elements/Makefile.am:
347         * gst/elements/gstfakesink.c: (gst_fake_sink_state_error_get_type):
348         * gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type),
349         (gst_fake_src_sizetype_get_type), (gst_fake_src_filltype_get_type),
350         (gst_fake_src_init), (gst_fake_src_prepare_buffer),
351         (gst_fake_src_alloc_buffer), (gst_fake_src_get_size):
352         * gst/elements/gstfakesrc.h:
353         * gst/gstqueue.c: (queue_leaky_get_type):
354           correctly fix GEnumValues so that nick is the short lowercase
355           dashed tag
356         * tools/gst-inspect.c: (print_element_properties_info):
357           also show the nick, since it's useful to use from parse_launch
358           syntax
359           Fixes #322139
360
361 2005-11-22  Michael Smith <msmith@fluendo.com>
362
363         * gst/gstutils.c: (gst_util_clocktime_scale):
364         * gst/gstutils.h:
365         * docs/gst/gstreamer-sections.txt:
366           Add util method for scaling a clocktime by a fraction. Useful 
367           implementation is left as an exercise for the reader.
368
369 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
370
371         * gst/gstvalue.c: (gst_value_collect_fraction_range):
372         If needed, allocate storage in the destination value during
373         collection.
374
375 2005-11-22  Edward Hervey  <edward@fluendo.com>
376
377         * docs/gst/gstreamer-sections.txt:
378         * gst/Makefile.am:
379         * gst/gst.h:
380         * gst/gsturitype.c:
381         * gst/gsturitype.h:
382         * gst/gstutils.c: (gst_util_set_object_arg):
383         * tools/gst-compprep.c: (main):
384         * tools/gst-inspect.c: (print_element_properties_info):
385         Removed GstURI, closes bug #321061
386
387 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
388
389         * check/gst/gststructure.c: (GST_START_TEST):
390         * gst/gststructure.c: (gst_structure_parse_value):
391           Oops, broke automatic string type parsing.
392           Add a test to catch it in future.
393
394 2005-11-22  Andy Wingo  <wingo@pobox.com>
395
396         * gst/gsttagsetter.c (gst_tag_setter_get_tag_merge_mode) 
397         (gst_tag_setter_set_tag_merge_mode, gst_tag_setter_get_tag_list):
398         Actually rename the function implementations. Grr.
399
400 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
401
402         * check/gst/capslist.h:
403           Comment test cases
404         * check/gst/gststructure.c: (GST_START_TEST),
405         (gst_structure_suite):
406           Test automatic value type detection in gst_structure_from_string.
407         * gst/gststructure.c: (gst_structure_parse_value):
408           Add fraction as a type we try and guess automatically in
409           caps/structure strings.
410
411 2005-11-22  Andy Wingo  <wingo@pobox.com>
412
413         patch by: Torsten Schoenfeld <kaffeetisch gmx de>
414
415         * gst/gsttagsetter.h:
416         * gst/gsttagsetter.c: (gst_tag_setter_merge_tags)
417         (gst_tag_setter_add_tags, gst_tag_setter_add_tag_values)
418         (gst_tag_setter_add_tag_valist)
419         (gst_tag_setter_add_tag_valist_values): Renamed from _merge, _add,
420         _add_values, _add_valist, and _add_valist_values. Since this is an
421         interface the function suffixes should be more explicit so
422         language binding don't end up with element.add_valist ->
423         gst_tag_setter_add_valist, for example. Fixes #322069.
424
425 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
426
427         * check/gst/gstcaps.c: (GST_START_TEST):
428           Extend caps string tests to check that a caps to string
429           conversion is reversible and produces the same caps.
430
431         * gst/gststructure.c: (gst_structure_value_get_generic_type):
432           Output "fraction" as the generic type fraction range, so caps
433           serialisation and deserialisation works.
434         * check/gst/capslist.h:
435         * gst/gstvalue.c: (gst_value_deserialize_fraction):
436           Support 'MIN' and 'MAX' for deserialising fractions.
437
438 2005-11-22  Andy Wingo  <wingo@pobox.com>
439
440         * gst/gstevent.h (gst_event_new_new_segment)
441         (gst_event_parse_new_segment, gst_event_new_buffer_size)
442         (gst_event_parse_buffer_size, gst_ghost_pad_new_no_target):
443         Renamed from *_newsegment, *_buffersize, *_notarget.
444
445         * scripts/update-funcnames: New script, performs the changes
446         listed above.
447
448 2005-11-22  Wim Taymans  <wim@fluendo.com>
449
450         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
451         Make sure the GstFlowReturn is returned.
452
453         * gst/gstbus.c: (gst_bus_add_signal_watch_full),
454         (gst_bus_add_signal_watch):
455         * gst/gstbus.h:
456         add gst_bus_add_signal_watch_full.
457
458         * gst/gstplugin.c: (gst_plugin_load_file):
459         Small style cleanup.
460
461 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
462
463         * check/gst/gstevent.c: (test_event), (GST_START_TEST):
464           Block the fakesrc srcpad when we send an event, to avoid
465           contention on the stream_lock causing random test failures.
466
467 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
468
469         * check/gst/gstvalue.c: (GST_START_TEST):
470         * gst/gstvalue.c: (gst_value_fraction_subtract):
471           Fix subtraction.
472
473 2005-11-22  Stefan Kost  <ensonic@users.sf.net>
474
475         * gst/gst.h:
476           include "gstchildproxy.h"
477         * gst/gstchildproxy.h:
478         * libs/gst/controller/gstcontroller.h:
479           use G_GNUC_NULL_TERMINATED
480
481 2005-11-22  Jan Schmidt  <thaytan@mad.scientist.com>
482
483         * check/gst/capslist.h:
484         * check/gst/gstcaps.c: (GST_START_TEST):
485         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
486         * gst/gststructure.c: (gst_structure_parse_range),
487         (gst_structure_fixate_field_nearest_fraction):
488         * gst/gststructure.h:
489         * gst/gstvalue.c: (gst_value_init_fraction_range),
490         (gst_value_free_fraction_range), (gst_value_copy_fraction_range),
491         (gst_value_collect_fraction_range),
492         (gst_value_lcopy_fraction_range), (gst_value_set_fraction_range),
493         (gst_value_set_fraction_range_full),
494         (gst_value_get_fraction_range_min),
495         (gst_value_get_fraction_range_max),
496         (gst_value_serialize_fraction_range),
497         (gst_value_transform_fraction_range_string),
498         (gst_value_compare_fraction_range),
499         (gst_value_deserialize_fraction_range),
500         (gst_value_intersect_fraction_fraction_range),
501         (gst_value_intersect_fraction_range_fraction_range),
502         (gst_value_subtract_fraction_fraction_range),
503         (gst_value_subtract_fraction_range_fraction),
504         (gst_value_subtract_fraction_range_fraction_range),
505         (gst_value_collect_fraction), (gst_value_fraction_multiply),
506         (gst_value_fraction_subtract), (gst_value_deserialize_fraction),
507         (gst_value_transform_string_fraction), (_gst_value_initialize):
508         * gst/gstvalue.h:
509           Implement fraction ranges and extend GstFraction to support
510           arithmetic subtraction, as well as deserialization from integer
511           strings such as "100"
512           Add a testsuite as for int and double range set operations
513
514 2005-11-21  Andy Wingo  <wingo@pobox.com>
515
516         * gst/gsttaglist.h: 
517         * gst/gstcaps.h: 
518         * gst/gststructure.h: Add glib-compat.h.
519
520 2005-11-21  Wim Taymans  <wim@fluendo.com>
521
522         * gst/gstbin.c: (gst_bin_change_state_func):
523         Fix for #321595
524
525 2005-11-21  Wim Taymans  <wim@fluendo.com>
526
527         * gst/gstsegment.h:
528         And add a nice define too.
529
530 2005-11-21  Wim Taymans  <wim@fluendo.com>
531
532         * gst/gstsegment.c: (gst_segment_copy), (gst_segment_get_type),
533         (gst_segment_new), (gst_segment_free), (gst_segment_init),
534         (gst_segment_set_duration), (gst_segment_set_last_stop),
535         (gst_segment_set_seek), (gst_segment_set_newsegment),
536         (gst_segment_to_stream_time), (gst_segment_to_running_time),
537         (gst_segment_clip):
538         * gst/gstsegment.h:
539         Make binding friendly.
540
541 2005-11-21  Andy Wingo  <wingo@pobox.com>
542
543         * gst/gsttagsetter.h: 
544         * gst/gsttaglist.h: 
545         * gst/gststructure.h: 
546         * gst/gstcaps.h: 
547         * gst/gstutils.h: Sprinkle NULL_TERMINATED to taste. Fixes
548         #319940.
549
550         * gst/gsterror.c (_gst_core_errors_init):
551         * gst/gsterror.h (GST_CORE_ERROR_MISSING_PLUGIN): New error
552         category.
553
554         * gst/Makefile.am (gst_headers): Add glib-compat.h.
555         (noinst_HEADERS): noinst the -private.
556
557 2005-11-21  Michael Smith <msmith@fluendo.com>
558
559         * gst/gstplugin.h:
560         * gst/gstregistry.h:
561           Remove unimplemented declarations for which we can see no sensible
562           use.
563
564 2005-11-21  Andy Wingo  <wingo@pobox.com>
565
566         * gst/gst.h: Include glib-compat.h.
567
568         * gst/glib-compat.h: Add G_GNUC_NULL_TERMINATED.
569
570         * gst/glib-compat.c: Include the public and the private header.
571
572         * gst/glib-compat-private.h: Copied here from glib-compat.h.
573
574         * gst/gstvalue.c: 
575         * gst/gstpad.c: 
576         * gst/gstregistryxml.c: s/glib-compat/glib-compat-private/.
577
578         * check/gst/gstevent.c (create_custom_events): Check that
579         FLUSH_STOP is serialized.
580
581         * check/elements/identity.c (event_func): 
582         * check/elements/fakesrc.c (event_func): No stream lock, the core
583         takes it.
584
585         * gst/base/gstbasetransform.c (gst_base_transform_event): No more
586         stream lock taking, yay.
587
588         * gst/gstevent.h (GST_EVENT_FLUSH_STOP): Marked as serialized to
589         ensure that core takes the stream lock.
590
591         * gst/base/gstbasesrc.c (gst_base_src_do_seek): Update for stream
592         lock name change.
593
594         * gst/base/gstbasesink.c (gst_base_sink_event): No need to take
595         the stream lock for EOS, NEWSEGMENT, or FLUSH_STOP, the core does
596         it already. For the flush start we do take it though so we get the
597         right preroll state change messages.
598
599         * gst/gstqueue.c (gst_queue_sink_activate_push): No need to take
600         the stream lock here, the core does it for us.
601
602         * gst/gstpad.h (GST_PAD_GET_STREAM_LOCK): Renamed from
603         GST_STREAM_GET_LOCK.
604         (GST_PAD_STREAM_LOCK, GST_PAD_STREAM_TRYLOCK) 
605         (GST_PAD_STREAM_UNLOCK, GST_PAD_STREAM_UNLOCK_FULL) 
606         (GST_PAD_STREAM_LOCK_FULL): Renamed from GST_STREAM_*.
607         (GST_PAD_GET_PREROLL_LOCK): Renamed from GST_PREROLL_GET_LOCK.
608         (GST_PAD_PREROLL_LOCK, GST_PAD_PREROLL_TRYLOCK) 
609         (GST_PAD_PREROLL_UNLOCK): Renamed from GST_PREROLL_*.
610
611         * gst/gstpad.c: Update for stream lock name change.
612
613         * gst/base/gstbasesink.c: Update for preroll lock name change.
614
615 2005-11-21  Wim Taymans  <wim@fluendo.com>
616
617         * gst/gstclock.c: (gst_clock_init), (gst_clock_set_master),
618         (gst_clock_get_master):
619         * gst/gstclock.h:
620         * gst/gstsystemclock.c: (gst_system_clock_init):
621         Convert Clock flags to object flags.
622         Added methods to manage master/slave clocks.
623
624 2005-11-21  Wim Taymans  <wim@fluendo.com>
625
626         * check/gst/gstsegment.c: (GST_START_TEST):
627         * docs/design/part-TODO.txt:
628         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
629         (gst_base_sink_event), (gst_base_sink_do_sync),
630         (gst_base_sink_activate_pull), (gst_base_sink_get_position),
631         (gst_base_sink_query), (gst_base_sink_change_state):
632         * gst/base/gstbasesink.h:
633         * gst/base/gstbasesrc.c: (gst_base_src_init), (gst_base_src_query),
634         (gst_base_src_default_newsegment),
635         (gst_base_src_configure_segment), (gst_base_src_do_seek),
636         (gst_base_src_get_range), (gst_base_src_loop),
637         (gst_base_src_change_state):
638         * gst/base/gstbasesrc.h:
639         * gst/base/gstbasetransform.c:
640         (gst_base_transform_prepare_output_buf),
641         (gst_base_transform_event), (gst_base_transform_change_state):
642         * gst/base/gstbasetransform.h:
643         * gst/base/gstcollectpads.c: (gst_collect_pads_add_pad),
644         (gst_collect_pads_event):
645         * gst/base/gstcollectpads.h:
646         * gst/elements/gstfakesrc.c: (gst_fake_src_init),
647         (gst_fake_src_create):
648         * gst/elements/gstfakesrc.h:
649         * gst/elements/gstidentity.c: (gst_identity_transform_ip):
650         * gst/gstsegment.c: (gst_segment_init), (gst_segment_set_duration),
651         (gst_segment_set_last_stop), (gst_segment_set_seek),
652         (gst_segment_set_newsegment), (gst_segment_to_stream_time),
653         (gst_segment_to_running_time), (gst_segment_clip):
654         * gst/gstsegment.h:
655         More segment updates, replace code in plugins with segment
656         helper functions.
657
658 2005-11-21  Jan Schmidt  <thaytan@mad.scientist.com>
659
660         * gst/elements/gstfdsrc.c: (gst_fdsrc_uri_set_uri):
661         Don't ignore sscanf results
662
663 2005-11-21  Andy Wingo  <wingo@pobox.com>
664
665         * gst/gstpad.h (GST_IS_PAD_FAST): Removed.
666
667         * *.h:
668         * *.c: Ran scripts/update-macros. Oh yes.
669
670         * gst/gstobject.h (GST_OBJECT_GET_LOCK, GST_OBJECT_LOCK)
671         (GST_OBJECT_TRYLOCK, GST_OBJECT_UNLOCK): Renamed from
672         GST_GET_LOCK, etc.
673
674         * scripts/update-macros: New script. Run it on your files to
675         change GST_LOCK to GST_OBJECT_LOCK, and the same for UNLOCK as
676         well.
677
678 2005-11-21  Stefan Kost  <ensonic@users.sf.net>
679
680         * docs/gst/Makefile.am:
681         * docs/gst/gstreamer-docs.sgml:
682         * docs/gst/gstreamer-sections.txt:
683         * docs/gst/gstreamer.types:
684         * gst/gstinfo.h:
685           more docs fixes, add new api to the docs
686
687 2005-11-21  Andy Wingo  <wingo@pobox.com>
688
689         * gst/gstbin.c (gst_bin_remove_func): Wim claims I can remove this
690         state_broadcast call.
691
692         * gst/gstsegment.c (gst_segment_init): Initialize abs_rate.
693
694 2005-11-21  Julien MOUTTE  <julien@moutte.net>
695
696         * gst/gstvalue.c: (gst_value_intersect_array): Fix wrong
697         function calls for arrays.
698
699 2005-11-21  Stefan Kost  <ensonic@users.sf.net>
700
701         * docs/random/ensonic/media-device-daemon.txt:
702           wild idea, can this be done?
703         * docs/gst/gstreamer-sections.txt:
704         * gst/gsterror.h:
705         * gst/gstfilter.c:
706         * gst/gstfilter.h:
707         * gst/gstplugin.h:
708         * gst/gstpluginfeature.c:
709         * gst/gsttrace.c:
710         * gst/gstvalue.c:
711         * gst/gstvalue.h:
712           doc fixes and additions
713
714 2005-11-21  Andy Wingo  <wingo@pobox.com>
715
716         * gst/base/gstbasesrc.c (GST_LIVE_BROADCAST, GST_LIVE_SIGNAL) 
717         (GST_LIVE_TIMED_WAIT, GST_LIVE_WAIT, GST_LIVE_GET_COND) 
718         (GST_LIVE_UNLOCK, GST_LIVE_TRYLOCK, GST_LIVE_LOCK) 
719         (GST_LIVE_GET_LOCK): Moved here from gstbasesrc.h. They are
720         private to the basesrc implementation.
721
722         * gst/gstpad.c (gst_pad_send_event): Doc more. Take stream lock on
723         behalf of event function if necessary. It should no longer be
724         necessary to take the stream lock in pad's event functions. Fixes
725         #320299.
726
727 2005-11-21  Jan Schmidt  <thaytan@mad.scientist.com>
728         * docs/gst/gstreamer-sections.txt:
729         * gst/gststructure.c: (gst_structure_fixate_field_nearest_int),
730         (gst_structure_fixate_field_nearest_double),
731         (gst_structure_fixate_field_boolean):
732         * gst/gststructure.h:
733         * win32/common/libgstreamer.def:
734         * win32/gstreamer.def:
735
736         Rename gst_caps_structure_fixate_* to gst_structure_fixate_*
737         (#322027)
738
739 2005-11-21  Jan Schmidt  <thaytan@mad.scientist.com>
740
741         * gst/elements/gstfdsrc.c: (_do_init), (gst_fdsrc_class_init),
742         (gst_fdsrc_init), (gst_fdsrc_dispose), (gst_fdsrc_set_property),
743         (gst_fdsrc_uri_get_type), (gst_fdsrc_uri_get_protocols),
744         (gst_fdsrc_uri_get_uri), (gst_fdsrc_uri_set_uri),
745         (gst_fdsrc_uri_handler_init):
746         * gst/elements/gstfdsrc.h:
747           Port fd:// URI handler from 0.8 to fdsrc
748
749 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
750
751         * gst/gstvalue.c: (gst_value_transform_fourcc_string),
752         (gst_value_serialize_fourcc):
753         * gst/gstvalue.h:
754           Drop leading '%' from GST_FOURCC_FORMAT, thus making it
755           consistent with our other format defines (#320324).
756
757 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
758
759         * gst/gstvalue.c: (gst_value_is_fixed):
760           Revert previous commit. Value lists are by definition
761           not fixed, as they are a list of possible values.
762
763 2005-11-21  Andy Wingo  <wingo@pobox.com>
764
765         * gst/gstevent.h (GST_EVENT_FILLER): Removed. Can be added back
766         during the stable series if we need it. Fixes #319178.
767
768         * gst/gstevent.c (gst_event_new_filler): Removed.
769
770         * check/gst/gstevent.c: Update comment about filler events.
771
772 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
773
774         * gst/gstvalue.c: (gst_value_is_fixed):
775           Should handle both value arrays and value lists.
776
777 2005-11-21  Andy Wingo  <wingo@pobox.com>
778
779         patch by: Alessandro Dessina <alessandro nnva org>
780
781         * gst/gstvalue.c (gst_value_is_fixed): Use gst_value_array
782         functions to access arrays. Fixes #321962.
783
784 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
785
786         * docs/gst/gstreamer.types:
787           gst_collectpads_get_type => gst_collect_pads_get_type.
788           
789         * gst/base/gstbasetransform.c:
790           Remove unused SIGNAL_HANDOFF enum.
791
792 2005-11-21  Andy Wingo  <wingo@pobox.com>
793
794         * gst/gstevent.h (GstEventTypeFlags): New data type, the flags of
795         the event type (upstream, downstream, serialized). Renamed
796         GST_EVDIR_* and GST_EVSER to GST_EVENT_TYPE_*.
797         (GstEventType): Use GstEventTypeFlags. Rename CUSTOM_UP to
798         CUSTOM_UPSTREAM, CUSTOM_DS to CUSTOM_DOWNSTREAM, etc.
799
800         * gst/gstevent.c: Update for new CUSTOM event names.
801
802         * check/gst/gstevent.c: Update check for new CUSTOM event names.
803
804         * gst/gstevent.h:
805         * gst/gstevent.c (gst_event_type_get_flags): New function. Fixes
806         bug #319392.
807
808 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
809
810         * docs/gst/gstreamer-sections.txt:
811         * win32/common/libgstbase.def:
812         * win32/libgstbase.def:
813         * gst/base/gstcollectpads.c: (gst_collect_pads_base_init),
814         (gst_collect_pads_class_init), (gst_collect_pads_init),
815         (gst_collect_pads_finalize), (gst_collect_pads_new),
816         (gst_collect_pads_set_function), (gst_collect_pads_add_pad),
817         (gst_collect_pads_remove_pad), (gst_collect_pads_is_active),
818         (gst_collect_pads_collect), (gst_collect_pads_collect_range),
819         (gst_collect_pads_start), (gst_collect_pads_stop),
820         (gst_collect_pads_peek), (gst_collect_pads_pop),
821         (gst_collect_pads_available), (gst_collect_pads_read),
822         (gst_collect_pads_flush), (gst_collect_pads_event),
823         (gst_collect_pads_chain):
824         * gst/base/gstcollectpads.h:
825           Rename gst_collecpads_foo() => gst_collect_pads_foo(). Document
826           unimplemented functions as unimplemented. Add padding to
827           GstCollectData. (#320766, #320423)
828
829 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
830
831         * gst/gstmessage.c:
832           Improve docs for DURATION message (usage of duration parameter)
833           (#320113)
834
835 2005-11-20  Wim Taymans  <wim@fluendo.com>
836
837         * check/Makefile.am:
838         * check/gst/gstsegment.c: (GST_START_TEST), (gstevents_suite),
839         (main):
840         * gst/Makefile.am:
841         * gst/gst.h:
842         * gst/gstsegment.c: (gst_segment_init), (gst_segment_set_duration),
843         (gst_segment_set_seek), (gst_segment_set_newsegment),
844         (gst_segment_to_stream_time), (gst_segment_to_running_time),
845         (gst_segment_clip):
846         * gst/gstsegment.h:
847         Added segment helper structure and methods. Not fully implemented
848         yet.
849         Added segment check.
850
851 2005-11-20  Jan Schmidt  <thaytan@mad.scientist.com>
852
853         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
854           Add a deserialisation test for fractions
855         * examples/metadata/read-metadata.c: (message_loop),
856         (make_pipeline), (main):
857           Fix up metadata reading sample.
858         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
859           Debug format fix
860         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
861           Don't try and fixate empty caps
862         * gst/gst_private.h:
863           Wrap in G_BEGIN_DECLS/G_END_DECLS
864         * gst/gstvalue.c: (gst_value_collect_fraction),
865         (gst_value_set_fraction), (gst_value_get_fraction_denominator),
866         (gst_value_transform_string_fraction),
867         (gst_value_compare_fraction):
868           Add some extra guards to ensure that we don't end up 
869           with an invalid denominator of 0 in a gstfraction and
870           that fractions always get reduced.
871
872 2005-11-20  Wim Taymans  <wim@fluendo.com>
873
874         * docs/gst/gstreamer-sections.txt:
875         * gst/gstbuffer.h:
876         * gst/gstelement.c:
877         * gst/gstformat.c:
878         * gst/gstformat.h:
879         * gst/gstindex.h:
880         * gst/gstquery.c:
881         * gst/gstquery.h:
882         * gst/gstvalue.c:
883         Doc fixes.
884
885 2005-11-20  Wim Taymans  <wim@fluendo.com>
886
887         * docs/design/part-TODO.txt:
888         * gst/gstcaps.h:
889         Make a proper enum of the flag.
890
891 2005-11-19  Wim Taymans  <wim@fluendo.com>
892
893         * docs/design/part-TODO.txt:
894         * gst/gstformat.c: (_gst_format_initialize), (gst_format_get_name),
895         (gst_format_to_quark), (gst_format_register):
896         * gst/gstformat.h:
897         * gst/gstquery.c: (_gst_query_initialize),
898         (gst_query_type_get_name), (gst_query_type_to_quark),
899         (gst_query_type_register):
900         * gst/gstquery.h:
901         Add type to quark and type to string conversions.
902
903 2005-11-19  Andy Wingo  <wingo@pobox.com>
904
905         * gst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes
906         #320097.
907
908 2005-11-19  Wim Taymans  <wim@fluendo.com>
909
910         * docs/design/part-TODO.txt:
911         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_provide_clock_func),
912         (gst_bin_add_func), (gst_bin_remove_func), (bin_bus_handler),
913         (gst_bin_handle_message_func):
914         * gst/gstbin.h:
915         Make message handling overridable.
916
917 2005-11-19  Andy Wingo  <wingo@pobox.com>
918
919         * gst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235.
920
921         * gst/gstclock.h:
922         * gst/gstclock.c (GstClock, GstClockClass): Change resolution to
923         be a GstClockTime.
924         (gst_clock_set_resolution, gst_clock_get_resolution): Resolution
925         is a GstClockTime. Fixes #321710.
926
927         * gst/gstclock.h (GstClock): Remove offset property. Add
928         internal_calibration and external_calibration. Fix padding. Pad
929         also by GstClockTime so we don't run into problems.
930
931         * gst/gstclock.c (gst_clock_set_rate_offset): Remove.
932         (gst_clock_get_rate_offset): Remove.
933         (gst_clock_set_time_adjust): Remove. Fixes #321712.
934
935         * gst/gstutils.h:
936         * gst/gstutils.c (g_static_rec_cond_wait)
937         (g_static_rec_cond_timed_wait): Removed, no longer needed.
938
939         * gst/gstbin.c: Remove terrible continue_state prototype.
940
941         * gst/gstelement.h (gst_element_continue_state): Make public.
942
943         * gst/gstelement.h:
944         * gst/gstelement.c (gst_element_commit_state): Removed, replaced
945         by continue_state. Fixes #319389.
946
947         * gst/gstindex.h (GstIndexFilter): Actually pass on the user_data.
948         Really fixes #168438. However I don't see anywhere where the
949         filter function is called... stupid GStreamer...
950         
951         * gst/gstindex.h (GstIndex): Add field for user_data_destroy. We
952         don't have a dispose function, so it won't get called when the
953         object is unreffed, but oh well!
954
955         * gst/gstindex.c (gst_index_set_filter_full): New API function,
956         allows a destroy function to be set so user_data can be freed.
957         Fixes #168438.
958         (gst_index_set_filter): Call gst_index_set_filter_full.
959
960         * check/gst/gstvalue.c (test_string): Add test for bug #165650.
961
962         * gst/gstvalue.c (gst_string_wrap): Trying to serialize a NULL
963         string should produce an error, given the lack of a way to
964         represent NULL strings. Fixes #165650.
965         
966         * gst/gstvalue.h: 
967         * gst/gstvalue.c (gst_value_array_append_value) 
968         (gst_value_array_prepend_value, gst_value_array_get_size) 
969         (gst_value_array_get_value): New API, copied from
970         gst_value_list_*, only operates on arrays.
971         (gst_value_list_append_value, gst_value_list_prepend_value) 
972         (gst_value_list_concat, gst_value_list_get_size) 
973         (gst_value_list_get_value): Only operate on lists. Fixes #156633.
974
975         * gst/gstvalue.c (gst_value_init_list_or_array): Renamed from
976         init_list, because it works on both.
977         (copy_garray_of_gstvalue): Renamed from gst_value_list_copy_array.
978         (gst_value_copy_list_or_array): Renamed from copy_list.
979         (gst_value_free_list_or_array): Renamed from free_list.
980         (gst_value_collect_list_or_array): Renamed from collect_list.
981         (gst_value_lcopy_list_or_array): Renamed from lcopy_list.
982         (gst_value_list_or_array_peek_pointer): Renamed from
983         list_peek_pointer.
984         (_gst_value_array_value_table, _gst_value_list_value_table):
985         Update value table functions.
986         (gst_value_compare_list_or_array): Renamed from compare_list.
987
988         * gsttaglist.h: Whoops, foreach function returns void. Also fix
989         some constness.
990
991         * gst/gsttaglist.c:
992         * gst/gsttaglist.h (gst_tag_list_foreach): Operates on a const
993         GstTagList*. Fixes #143472.
994
995         * gst/gststructure.h: Clarify what the foreach/map functions can
996         or can't do to their arguments.
997
998 2005-11-18  Wim Taymans  <wim@fluendo.com>
999
1000         * gst/gstclock.c: (gst_clock_set_calibration),
1001         (gst_clock_get_calibration):
1002         Doc and API fixes.
1003         Calibration can be set with internal time equal to current
1004         internal time too.
1005
1006 2005-11-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1007
1008         * gst/gsterror.c:
1009         * gst/gsterror.h:
1010           document
1011
1012 2005-11-18  Andy Wingo  <wingo@pobox.com>
1013
1014         * configure.ac: 
1015         * pkgconfig/gstreamer-net.pc.in:
1016         * pkgconfig/gstreamer-net-uninstalled.pc.in:
1017         * pkgconfig/Makefile.am: Add net pkgconfig files.
1018
1019 2005-11-18  Stefan Kost  <ensonic@users.sf.net>
1020
1021         * gst/gstcaps.c:
1022         * gst/gstghostpad.c:
1023         * gst/gsttrace.c:
1024         * gst/gstvalue.c:
1025         * gst/gstvalue.h:
1026           docs fixes
1027
1028 2005-11-18  Andy Wingo  <wingo@pobox.com>
1029
1030         * gst/net/gstnetclientclock.c: Turn off debugging.
1031
1032         * check/net/gstnetclientclock.c (test_functioning): Assert that the
1033         times connverge somewhat. Can't make a real test.
1034
1035         * gst/net/gstnetclientclock.c (do_linear_regression): Use all
1036         integer arithmetic. Return the minimum of the domain, which can be
1037         set as "internal" for gst_clock_set_calibration.
1038         (gst_net_client_clock_observe_times): Call _set_calibration.
1039         (gst_net_client_clock_new): Call _set_calibration instead of
1040         rate_offset.
1041
1042         * check/net/gstnetclientclock.c (test_functioning): Use the right
1043         adjustment api.
1044
1045         * gst/gstclock.h:
1046         * gst/gstclock.c (gst_clock_get_calibration) 
1047         (gst_clock_set_calibration): New functions, obsolete the ones I
1048         added yesterday. Doh. Precision issues mean we have to extrapolate
1049         from a point in the more recent past than 1970.
1050         (gst_clock_get_rate_offset, gst_clock_set_rate_offset): Mark as
1051         obsolete.
1052         (gst_clock_adjust_unlocked): Use the right calibration data.
1053
1054 2005-11-18  Edward Hervey  <edward@fluendo.com>
1055
1056         * gst/base/gstbasesink.c: (gst_base_sink_change_state): 
1057         Also reset the ->current_* values in READY->PAUSED
1058
1059 2005-11-18  Andy Wingo  <wingo@pobox.com>
1060
1061         * gst/net/gstnetclientclock.c (gst_net_client_clock_thread):
1062         Whoops, check the right fd. Also add some debugging.
1063         (gst_net_client_clock_observe_times): Adjust for int64 offset.
1064         (do_linear_regression): Add a crapload of debugging. Subtract off
1065         the minimum values from the input series to discard unneeded bits.
1066         Use only int arithmetic. There is still double arithmetic when
1067         calculating the intercept that needs fixing. Return boolean to
1068         indicate success; FALSE would mean the domain or range is too
1069         great. Still needs fixes.
1070
1071 2005-11-18  Wim Taymans  <wim@fluendo.com>
1072
1073         * gst/base/gstbasesink.c: (gst_base_sink_get_position):
1074         For the current position in stream time, we need to subtract
1075         accumulated time.
1076         
1077         * gst/gstsystemclock.c: (gst_system_clock_async_thread):
1078         Release lock before calling the callback function of async
1079         entries.
1080
1081 2005-11-18  Andy Wingo  <wingo@pobox.com>
1082
1083         * gst/net/gstnetclientclock.c (gst_net_client_clock_class_init):
1084         Port goes all the way to MAXUINT16.
1085
1086         * gst/net/gstnettimeprovider.c: Make the port range the same as
1087         for the kernel: 0 assigns, otherwise ports are less than
1088         MAXUINT16.
1089
1090         * check/net/gstnettimeprovider.c: Adapt for 0 == kernel assigns
1091         port change.
1092
1093         * check/net/gstnetclientclock.c (test_functioning): Add the start
1094         of another test. 
1095
1096 2005-11-18  Wim Taymans  <wim@fluendo.com>
1097
1098         * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
1099         (gst_bin_remove_func), (bin_bus_handler):
1100         * gst/gstbin.h:
1101         Removing a clock provider from a bin, triggers a clock lost message
1102         so that a new clock will be selected.
1103         Adding a clock to a bin triggers a clock provider message.
1104         Make sure we reselect a clock when we received a clock lost message.
1105         Keep a reference to the element that provided the clock.
1106
1107 2005-11-18  Andy Wingo  <wingo@pobox.com>
1108
1109         * gst/net/gstnetclientclock.c (gst_net_client_clock_new): Adjust
1110         the clock initially so it produces values around the base time.
1111         (gst_net_client_clock_class_init): Typo fix.
1112         (gst_net_client_clock_thread): Add note on when the socket gets
1113         closed.
1114
1115 2005-11-17  Wim Taymans  <wim@fluendo.com>
1116
1117         * gst/net/gstnetclientclock.c: (gst_net_client_clock_finalize):
1118         Free remote and local time arrays.
1119
1120 2005-11-17  Wim Taymans  <wim@fluendo.com>
1121
1122         * gst/net/gstnetclientclock.c: (do_linear_regression),
1123         (gst_net_client_clock_do_select), (gst_net_client_clock_thread):
1124         Fix compilation, uninitialized vars and a forgotten continue.
1125
1126 2005-11-17  Andy Wingo  <wingo@pobox.com>
1127
1128         * check/Makefile.am (check_PROGRAMS): 
1129         * check/net/gstnetclientclock.c: Add a most minimal test for the
1130         net client clock. More to come later.
1131
1132         * gst/net/gstnet.h: 
1133         * gst/net/Makefile.am: Add netclientclock.
1134
1135         * gst/net/gstnetclientclock.h:
1136         * gst/net/gstnetclientclock.c: New files, implement an untested
1137         GstClock that takes its time from a network time provider.
1138         Implements the algorithm in network-clock.scm.
1139
1140         * tests/network-clock.scm (*window-size*): Rename from
1141         *queue-length*.
1142         * tests/network-clock.scm (network-time): 
1143         * tests/network-clock-utils.scm (q-push): Update callers.
1144
1145 2005-11-17  Wim Taymans  <wim@fluendo.com>
1146
1147         * gst/gstbin.c: (gst_bin_provide_clock_func),
1148         (gst_bin_sort_iterator_new):
1149         And unref the child too..
1150
1151 2005-11-17  Wim Taymans  <wim@fluendo.com>
1152
1153         * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
1154         (gst_bin_sort_iterator_new), (gst_bin_iterate_sorted):
1155         Refactor the sort iterator so it can be used while holding the
1156         LOCK too.
1157         Make clock selection select a clock closest to the source.
1158
1159 2005-11-17  Michael Smith <msmith@fluendo.com>
1160
1161         * gst/gstclock.c: (gst_clock_init), (gst_clock_adjust_unlocked),
1162         (gst_clock_set_rate_offset), (gst_clock_get_rate_offset):
1163         * gst/gstclock.h:
1164           Anonymous structs are a gcc (and some other compilers) extension, so
1165           don't use them. Since this is only for ABI-compatibility, and our
1166           API/ABI freeze is over in a few days, this whole thing will only
1167           last a few days, so don't bother trying to think up a meaningful
1168           name for the struct.
1169
1170 2005-11-17  Andy Wingo  <wingo@pobox.com>
1171
1172         * gst/gstclock.h (GstClock): Add rate and offset properties,
1173         preserving ABI stability. Add rate/offset accessors. Will file bug
1174         for the freeze break.
1175
1176         * gst/gstclock.c (gst_clock_adjust_unlocked): Implement using rate
1177         and offset, trying to keep precision and avoiding
1178         underflow/overflow.
1179         (gst_clock_set_rate_offset, gst_clock_get_rate_offset): New
1180         functions. Make gst_clock_set_time_adjust obsolete.
1181         (gst_clock_set_time_adjust): Note that this function is obsolete.
1182         Will file bug soon.
1183
1184         * gst/base/gstbasetransform.h: Make the ABI-stability hack
1185         greppable by using GST_PADDING-1+1.
1186
1187 2005-11-17  Torsten Schoenfeld  <kaffeetisch at gmx dot net>
1188
1189         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
1190
1191         * gst/gstmessage.c: (gst_message_parse_clock_lost):
1192           Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648).
1193
1194         * gst/gstpadtemplate.h:
1195         * gst/gstpluginfeature.h:
1196           Don't use c++ style comments in headers (#321638).
1197
1198 2005-11-16  Andy Wingo  <wingo@pobox.com>
1199
1200         * gst/net/gstnettimepacket.c (gst_net_time_packet_send): Free
1201         buffer.
1202
1203         * check/net/gstnettimeprovider.c: Check to see that the time
1204         provider actually provides times. Works, yo!
1205
1206 2005-11-16  Wim Taymans  <wim@fluendo.com>
1207
1208         * check/Makefile.am:
1209         Enable more tests.
1210
1211         * check/elements/fakesrc.c: (GST_START_TEST):
1212         Set element to NULL before disposing it.
1213
1214 2005-11-16  Andy Wingo  <wingo@pobox.com>
1215
1216         * gst/net/Makefile.am:
1217         * gst/net/gstnet.h:
1218         * gst/net/gstnettimeprovider.c: 
1219         * gst/net/gstnettimeprovider.h: Use the timepacket stuff in the
1220         provider, include it from gstnet.h, and add it to the build.
1221
1222         * gst/net/gstnettimepacket.h: 
1223         * gst/net/gstnettimepacket.c: New files, abstracts out the packet
1224         sending and receiving.
1225
1226 2005-11-16  Wim Taymans  <wim@fluendo.com>
1227
1228         * check/Makefile.am:
1229         Enable valgrind check.
1230
1231         * gst/elements/gstfakesrc.c: (gst_fake_src_alloc_parent),
1232         (gst_fake_src_alloc_buffer):
1233         Fix memleak.
1234
1235 2005-11-16  Wim Taymans  <wim@fluendo.com>
1236
1237         * gst/net/gstnettimeprovider.c: (gst_net_time_provider_finalize):
1238         Call parent finalize too.
1239
1240 2005-11-16  Wim Taymans  <wim@fluendo.com>
1241
1242         * check/Makefile.am:
1243         Enable valgrind check that should work fine now.
1244
1245         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
1246         * gst/gstqueue.c: (gst_queue_init):
1247         Fix memleaks in pad allocation.
1248
1249 2005-11-16  Andy Wingo  <wingo@pobox.com>
1250
1251         * gst/net/Makefile.am:
1252         * gst/net/gstnet.h: New part of core to hold network elements and
1253         objects. Put in core because it exposes API that applications want
1254         to use. The library is named libgstnet-tempname right now because
1255         of the existing libgstnet in gst-plugins-base. Solution is
1256         probably to rename the one in plugins-base; will file a bug for
1257         the freeze break.
1258
1259         * gst/net/gstnettimeprovider.c: 
1260         * gst/net/gstnettimeprovider.h: New object to export a GstClock's
1261         get_time call over the network.
1262
1263         * configure.ac: 
1264         * gst/Makefile.am (lib_LTLIBRARIES): Add gstnet to the build.
1265
1266         * check/Makefile.am:
1267         * check/net/gstnettimeprovider.c: A most minimal test suite. Will
1268         get additions shortly.
1269
1270 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1271
1272         * gst/gstpad.c: (gst_pad_new_from_static_template):
1273         * gst/gstpad.h:
1274           add gst_pad_new_from_static_template functions
1275         * gst/check/gstcheck.c: (gst_check_setup_src_pad),
1276         (gst_check_setup_sink_pad):
1277         * gst/elements/gsttee.c: (gst_tee_init):
1278           and use them
1279
1280 2005-11-16  Wim Taymans  <wim@fluendo.com>
1281
1282         * gst/gstpad.c: (gst_pad_pause_task):
1283         Removed warning, it's not really an error either.
1284
1285 2005-11-16  Wim Taymans  <wim@fluendo.com>
1286
1287         * gst/base/gstbasetransform.c:
1288         (gst_base_transform_prepare_output_buf),
1289         (gst_base_transform_event):
1290         Check if the caps are NULL, this can happen if the element
1291         is shutting down and the pad caps are set to NULL.
1292
1293 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1294
1295         * gst/elements/gsttee.c: (gst_tee_init):
1296           fix pad template leak in tee
1297
1298 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1299
1300         * gst/glib-compat.c: (g_value_dup_gst_object):
1301         * gst/glib-compat.h:
1302         * gst/gstpad.c: (gst_pad_set_property):
1303           use gst_object_ref when setting the pad template; this will
1304           trigger the pad template leaks on GLib 2.6 and the slaves
1305
1306 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1307
1308         * gst/glib-compat.c: (gst_flags_get_first_value):
1309         * gst/glib-compat.h:
1310         * gst/gstregistryxml.c:
1311           remove functions copied from GLib 2.6
1312
1313 2005-11-16  Michael Smith <msmith@fluendo.com>
1314
1315         * gst/Makefile.am:
1316           Don't link against VALGRIND_LIBS. That was always the wrong thing to
1317           do, but only breaks with newer valgrind versions. We're not a
1318           valgrind tool, we have no link-time dependencies on libcoregrind.
1319
1320 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1321
1322         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
1323           some debug changes
1324         * gst/gstmessage.h:
1325           typo fixes
1326
1327 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1328
1329         * gst/base/gstbasesrc.c: (gst_base_src_init):
1330         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
1331         * gst/gstqueue.c: (gst_queue_init):
1332         * gst/gstregistryxml.c: (load_feature):
1333           Revert all these unrefs, they don't even pass make check !
1334
1335 2005-11-15  Johan Dahlin  <johan@gnome.org>
1336
1337         * gst/base/gstbasesrc.c: (gst_base_src_init):
1338         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
1339         * gst/gstqueue.c: (gst_queue_init): 
1340         Free pad templates, fixes a couple of leaks.
1341
1342 2005-11-15  Daniel Fischer  <dan at f3c dot com>
1343
1344         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
1345
1346         * gst/gstpad.c: (gst_pad_get_property):
1347           GST_PAD_PAD_TEMPLATE(pad) gets the pad template, while
1348           GST_PAD_TEMPLATE(pad) does a cast. We want the former here.
1349           (#321452)
1350
1351 2005-11-15  Wim Taymans  <wim@fluendo.com>
1352
1353         * gst/gstevent.c:
1354         Small doc update.
1355
1356 2005-11-15  Andy Wingo  <wingo@pobox.com>
1357
1358         * gst/gstelement.c (gst_element_set_base_time): Add debugging.
1359
1360         * gst/gstpipeline.c (gst_pipeline_set_new_stream_time): Document
1361         using GST_CLOCK_TIME_NONE to disable base time management.
1362         (do_pipeline_seek, gst_pipeline_change_state): Don't reset stream
1363         time if it was NONE before.
1364         (gst_pipeline_change_state): Only munge the base time if
1365         stream_time != GST_CLOCK_TIME_NONE.
1366
1367         * check/gst/gstpipeline.c (test_base_time): Punt around the
1368         problem of the probe not being called, because that's not the
1369         issue I'm looking at. Add a check that setting stream_time to NONE
1370         disables base time management.
1371         
1372 2005-11-15  Wim Taymans  <wim@fluendo.com>
1373
1374         * gst/base/gstbasesink.c: (gst_base_sink_change_state):
1375         segment_stop == -1 at startup.
1376
1377         * gst/base/gstbasetransform.c: (gst_base_transform_event),
1378         (gst_base_transform_change_state):
1379         Init segment values at start.
1380
1381 2005-11-15  Wim Taymans  <wim@fluendo.com>
1382
1383         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
1384         0 segment values are 0 in any format.
1385
1386         * gst/base/gstbasetransform.c: (gst_base_transform_event):
1387         * gst/base/gstbasetransform.h:
1388         Parse newsegment correctly in basetransform
1389
1390         * gst/elements/gstidentity.c: (gst_identity_transform_ip):
1391         Sync to clock using updated segment values.
1392
1393 2005-11-15  Andy Wingo  <wingo@pobox.com>
1394
1395         * check/gst/gstpipeline.c (test_base_time): Add check that the
1396         base time and stream time are reset correctly.
1397
1398 2005-11-15  Wim Taymans  <wim@fluendo.com>
1399
1400         * docs/design/part-TODO.txt:
1401         Some more TODO items.
1402
1403 2005-11-15  Andy Wingo  <wingo@pobox.com>
1404
1405         * gst/elements/gstfakesrc.c (gst_fake_src_create): It's not an
1406         error if the user selected "no clock" as the clocking method.
1407
1408         * check/gst/gstpipeline.c (test_base_time): New test for buffer
1409         timestamps with live capture.
1410
1411         * gst/elements/gstfakesrc.c (gst_fake_src_create): If the datarate
1412         is 0 but we are a live source, timestamp the buffers using the
1413         element's clock.
1414
1415 2005-11-14  Stefan Kost  <ensonic@users.sf.net>
1416
1417         * docs/gst/gstreamer-sections.txt:
1418         * gst/gsterror.c:
1419         * gst/gstghostpad.c:
1420         * gst/gstobject.h:
1421         * gst/gstxml.c:
1422           more section docs
1423
1424 2005-11-14  Wim Taymans  <wim@fluendo.com>
1425
1426         * common/gst.supp:
1427           add suppressions from Wim's Debian machine
1428
1429 2005-11-14  Thomas Vander Stichele  <thomas at apestaart dot org>
1430
1431         * common/gst.supp:
1432           add suppressions from Andy's AMD64 Ubuntu machine
1433
1434 2005-11-14  Andy Wingo  <wingo@pobox.com>
1435
1436         * gst/gstpad.c (gst_pad_set_active): Change docs; parent's
1437         STATE_LOCK not necessary. Fixes #311489.
1438
1439         * gst/gsterror.c (FILE_A_BUG): Be polite *and* helpful. Fixes
1440         #305291.
1441
1442         * gst/gstindex.c (gst_index_add_object): Note in the docs that
1443         this function is not implemented.
1444
1445 2005-11-14  Julien MOUTTE  <julien@moutte.net>
1446
1447         * gst/base/gstbasetransform.c:
1448         (gst_base_transform_prepare_output_buf):
1449         Ref the source pad caps while we need them.
1450         Fixes (#321386)
1451
1452 2005-11-11  Wim Taymans  <wim@fluendo.com>
1453
1454         * docs/gst/gstreamer-sections.txt:
1455         Added some docs for GstCollectData.
1456
1457         * gst/base/gstadapter.c:
1458         Some small code example fix.
1459
1460         * gst/base/gstcollectpads.c:
1461         * gst/base/gstcollectpads.h:
1462         Document some more.
1463
1464 2005-11-11  Thomas Vander Stichele  <thomas at apestaart dot org>
1465
1466         * configure.ac: back to HEAD
1467
1468 === release 0.9.5 ===
1469
1470 2005-11-11  Thomas Vander Stichele <thomas at apestaart dot org>
1471
1472         * configure.ac:
1473           releasing 0.9.5, "Bike Lunch Day"
1474
1475 2005-11-11  Wim Taymans  <wim@fluendo.com>
1476
1477         * gst/gstbuffer.c: (_gst_buffer_copy):
1478         Copy more flags.
1479
1480         * gst/gstcaps.c: (gst_caps_is_equal):
1481         Fix some docs.
1482         Make _is_equal fast in the trivial cases.
1483
1484         * gst/gstminiobject.c:
1485         * gst/gstminiobject.h:
1486         More docs. Spifify .h file.
1487
1488         * gst/gstutils.c:
1489         Small doc update.
1490
1491 2005-11-11  Wim Taymans  <wim@fluendo.com>
1492
1493         * gst/base/gstbasetransform.c:
1494         (gst_base_transform_prepare_output_buf),
1495         (gst_base_transform_handle_buffer):
1496         Small cleanups.
1497         If we're processing a buffer and need to allocate an output
1498         buffer, we cannot accept a format change. If we did get a 
1499         format change, we have to alloc a buffer ourselves of the 
1500         right size.
1501
1502 2005-11-11  Wim Taymans  <wim@fluendo.com>
1503
1504         * gst/gstpad.c: (gst_pad_get_caps), (gst_pad_peer_get_caps):
1505         While checking the flag for reentrancy in the gstcaps function
1506         is nice to detect recursive invocations, it also makes it 
1507         impossible to call getcaps from multiple threads, which must be
1508         possible. So, checking for recursive calls has to go.
1509
1510 2005-11-11  Michael Smith <msmith@fluendo.com>
1511
1512         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
1513           Don't sync on buffers that fall partially outside our current
1514           segment. Prevents an assertion failure/abort playing some files.
1515
1516 2005-11-10  Andy Wingo  <wingo@pobox.com>
1517
1518         * check/gst/gstbin.c (test_message_state_changed_children): Style
1519         fix..
1520
1521         * gst/gstbus.c (poll_destroy, poll_func, gst_bus_poll): Implement
1522         gst_bus_poll with the signal watch. Ensures that poll and a signal
1523         watch see the same messages.
1524
1525         * check/gst/gstbus.c (test_watch_with_poll): New test, checks that
1526         a poll and a watch at the same time get the same messages.
1527
1528 2005-11-10  Thomas Vander Stichele  <thomas at apestaart dot org>
1529
1530         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps):
1531         * gst/gstcaps.c: (gst_caps_intersect):
1532           Don't call gst_caps_do_simplify - it doesn't respect order of caps
1533           and it's not needed.
1534
1535 2005-11-10  Wim Taymans  <wim@fluendo.com>
1536
1537         * docs/design/part-TODO.txt:
1538         Updated todo.
1539
1540 2005-11-10  Wim Taymans  <wim@fluendo.com>
1541
1542         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
1543         * gst/base/gstbasesrc.c: (gst_base_src_wait),
1544         (gst_base_src_do_sync), (gst_base_src_get_range):
1545         Implement clock sync in base class.
1546
1547 2005-11-10  Thomas Vander Stichele  <thomas at apestaart dot org>
1548
1549         patch by: Tim-Philipp Müller <tim at centricular dot net>
1550
1551         * gst/gststructure.c: (gst_structure_parse_field),
1552         (gst_structure_from_string):
1553           Forward-port a 0.8 patch to handle escaped spaces in structure string,
1554           so that gst_parse_launch() can deal with spaces in filtered link
1555           caps (fixes #164479)
1556         * check/gst/capslist.h:
1557         * check/gst/gststructure.c: (GST_START_TEST):
1558           add unit tests for this change
1559
1560 2005-11-10  Wim Taymans  <wim@fluendo.com>
1561
1562         * docs/gst/gstreamer-sections.txt:
1563         * gst/gstelement.c:
1564         * gst/gstelement.h:
1565         Fix docs, move some STATE macros to private.
1566
1567 2005-11-10  Wim Taymans  <wim@fluendo.com>
1568
1569         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
1570         Added check for bug #317341
1571
1572         * gst/gstbuffer.c:
1573         * gst/gstbuffer.h:
1574         Some more spiffifying.
1575
1576         * gst/gstghostpad.c: (gst_ghost_pad_do_link):
1577         Call peer linkfunction if we are a source pad. Totally fixes
1578         #317341
1579
1580         * gst/gstpad.c:
1581         Update docs, source pads should call the peer linkfunction
1582         so they can atomically perform the pad link.
1583
1584 2005-11-09  Wim Taymans  <wim@fluendo.com>
1585
1586         * gst/gstbuffer.c:
1587         * gst/gstbuffer.h:
1588         Uber-spiffy-spiffify some more.
1589
1590 2005-11-09  Tim-Philipp Müller  <tim at centricular dot net>
1591
1592         * gst/base/gstcollectpads.c: (gst_collectpads_add_pad):
1593         * gst/elements/gstfilesink.c: (gst_file_sink_init):
1594         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
1595         * gst/gstghostpad.c: (gst_ghost_pad_set_internal),
1596         (gst_ghost_pad_init), (gst_ghost_pad_new_notarget):
1597         * gst/gstpad.c: (gst_pad_init):
1598           Use GST_DEBUG_FUNCPTR() more extensively.
1599
1600 2005-11-09  Wim Taymans  <wim@fluendo.com>
1601
1602         * gst/gstobject.c: (gst_object_class_init):
1603         * gst/gstobject.h:
1604         Documentation fixes.
1605
1606 2005-11-09  Edward Hervey  <edward@fluendo.com>
1607
1608         * gst/gsttypefindfactory.c:
1609         Fix docs.
1610         
1611 2005-11-09  Edward Hervey  <edward@fluendo.com>
1612
1613         * gst/base/gsttypefindhelper.c:
1614         * gst/gsttypefind.c:
1615         * gst/gsttypefind.h:
1616         Fix docs.
1617
1618 2005-11-09  Wim Taymans  <wim@fluendo.com>
1619
1620         * gst/gstiterator.c:
1621         Fix revision data.
1622
1623         * gst/gsttask.c:
1624         * gst/gsttask.h:
1625         Fix docs.
1626
1627 2005-11-09  Wim Taymans  <wim@fluendo.com>
1628
1629         * gst/gstevent.h:
1630         * gst/gsturi.h:
1631         Fix docs.
1632
1633 2005-11-09  Wim Taymans  <wim@fluendo.com>
1634
1635         * docs/gst/gstreamer-sections.txt:
1636         Moved the message async delivery private lock and cond
1637         to the private section.
1638
1639         * gst/gstmessage.c:
1640         * gst/gstmessage.h:
1641         Fixed docs.
1642
1643 2005-11-09  Edward Hervey  <edward@fluendo.com>
1644
1645         * docs/gst/gstreamer-sections.txt:
1646         * gst/gsturi.c:
1647         * gst/gsturi.h:
1648         Document GstURIHandler
1649
1650 2005-11-09  Wim Taymans  <wim@fluendo.com>
1651
1652         * gst/gstiterator.c: (gst_iterator_fold), (gst_iterator_foreach),
1653         (gst_iterator_find_custom):
1654         * gst/gstiterator.h:
1655         Fix iterator docs.
1656
1657 2005-11-09  Wim Taymans  <wim@fluendo.com>
1658
1659         * gst/gstbin.h:
1660         Document another field.
1661
1662         * gst/gststructure.c:
1663         * gst/gststructure.h:
1664         Document.
1665
1666 2005-11-09  Wim Taymans  <wim@fluendo.com>
1667
1668         * gst/gstbin.h:
1669         Documented structs.
1670
1671 2005-11-09  Wim Taymans  <wim@fluendo.com>
1672
1673         * docs/gst/gstreamer-sections.txt:
1674         Added some new macros.
1675
1676         * gst/gstclock.c:
1677         * gst/gstclock.h:
1678         * gst/gstobject.h:
1679         Docs updates.
1680
1681 2005-11-09  Wim Taymans  <wim@fluendo.com>
1682
1683         * docs/design/part-TODO.txt:
1684         Some more items for the TODO
1685
1686         * gst/gstcaps.c:
1687         * gst/gstcaps.h:
1688         Document GstCaps.
1689
1690 2005-11-09  Andy Wingo  <wingo@pobox.com>
1691
1692         * gst/base/gstbasesink.c: Add the beginning of docs here -- have
1693         to work on something else now tho...
1694
1695         * gst/base/gstadapter.c: More adapter docs.
1696
1697         * gst/elements/gstfilesink.c (gst_file_sink_start) 
1698         (gst_file_sink_stop): New functions, replace the state change
1699         handler.
1700         (gst_file_sink_class_init): Hook up the start and stop functions.
1701         (gst_file_sink_base_init): Don't set the state change handler any
1702         more. It was a bit ugly too, being set from here...
1703         (gst_file_sink_get_property, gst_file_sink_set_property):
1704         Cleanups...
1705         (gst_file_sink_set_location): More robust check that doesn't call
1706         GST_STATE. Ugggggg.
1707
1708 2005-11-08  Tim-Philipp Müller  <tim at centricular dot net>
1709
1710         * gst/base/gstbasetransform.c: (gst_base_transform_event):
1711           Hold STREAM_LOCK while pushing newsegment or tag events as well.
1712
1713 2005-11-08  Wim Taymans  <wim@fluendo.com>
1714
1715         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
1716         (gst_base_sink_do_sync), (gst_base_sink_handle_event),
1717         (gst_base_sink_chain), (gst_base_sink_change_state):
1718         * gst/base/gstbasesink.h:
1719         * gst/base/gstbasesrc.h:
1720         * gst/gstelement.h:
1721         * gst/gstevent.h:
1722         Avoid excessive typechecking in macros.
1723
1724         * gst/gstminiobject.c: (gst_mini_object_get_type),
1725         (gst_mini_object_init), (gst_mini_object_new),
1726         (gst_mini_object_free):
1727         * gst/gstobject.c: (gst_object_class_init), (gst_object_init),
1728         (gst_object_finalize):
1729         Remove cruft code, optimize alloc_trace.
1730
1731 2005-11-07  Thomas Vander Stichele  <thomas at apestaart dot org>
1732
1733         * docs/faq/gst-uninstalled:
1734           fix up PS1 for systems that try to reset it
1735
1736 2005-11-07  Wim Taymans  <wim@fluendo.com>
1737
1738         * gst/base/gstbasesrc.c: (gst_base_src_init),
1739         (gst_base_src_get_range):
1740         Set the segment_end to -1 initially. Fixed typefind.
1741
1742 2005-11-07  Tim-Philipp Müller  <tim at centricular dot net>
1743
1744         * gst/base/gstadapter.c:
1745           Debug category should be 'adapter', not 'GstAdapter'.
1746           
1747         * gst/base/gstcollectpads.c: (gst_collectpads_base_init),
1748         (gst_collectpads_class_init), (gst_collectpads_init),
1749         (gst_collectpads_peek), (gst_collectpads_pop),
1750         (gst_collectpads_event), (gst_collectpads_chain):
1751           Add debug category and some debugging output. Use boilerplate
1752           macros. Remove some extraneous words from docs.
1753
1754 2005-11-05  Andy Wingo  <wingo@pobox.com>
1755
1756         * gst/base/gstpushsrc.c: Shorten by 30% via use of boilerplate
1757         macro.
1758
1759 2005-11-04  Stefan Kost  <ensonic@users.sf.net>
1760
1761         * docs/gst/gstreamer-sections.txt:
1762         * gst/gstcaps.h:
1763         * gst/gstinfo.c:
1764         * gst/gstminiobject.h:
1765         * gst/gstobject.h:
1766         * gst/gstutils.h:
1767           more docs added
1768
1769 2005-11-04  Wim Taymans  <wim@fluendo.com>
1770
1771         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
1772         Small update to stop at the configured segment_end
1773         position.
1774
1775 2005-11-04  Stefan Kost  <ensonic@users.sf.net>
1776
1777         * gst/gstregistry.c:
1778         * gst/gstregistry.h:
1779           added missing docs
1780
1781 2005-11-04  Edward Hervey  <edward@fluendo.com>
1782
1783         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
1784         Check if we are doing a segment seek and have arrived at the
1785         end of that segment.
1786
1787 2005-11-04  Wim Taymans  <wim@fluendo.com>
1788
1789         * gst/gstbus.c: (gst_bus_post), (gst_bus_set_sync_handler):
1790         Don't leak a mutex unlock in case of an error.
1791
1792         * gst/gstbus.h:
1793         Doc fixes.
1794
1795 2005-11-04  Wim Taymans  <wim@fluendo.com>
1796
1797         * gst/gstbus.c: (gst_bus_class_init), (gst_bus_init),
1798         (gst_bus_post):
1799         Get the context to wake up only once.
1800
1801 2005-11-03  Wim Taymans  <wim@fluendo.com>
1802
1803         * check/states/sinks.c: (GST_START_TEST):
1804         Uncomment fixed check.
1805
1806         * docs/design/part-TODO.txt:
1807         Updated TODO.
1808
1809         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1810         (gst_base_sink_handle_object), (gst_base_sink_do_sync),
1811         (gst_base_sink_get_position):
1812         If we are going to PLAYING, post the right pending state
1813         when we post the intermediate paused message.
1814
1815         * gst/gstelement.c: (gst_element_continue_state),
1816         (gst_element_set_state_func), (gst_element_change_state):
1817         Don't post state changes that were between the same state
1818         and were not ASYNC.
1819
1820 2005-11-03  Stefan Kost  <ensonic@users.sf.net>
1821
1822         * docs/gst/gstreamer-sections.txt:
1823         * gst/gstcaps.h:
1824         * gst/gstinfo.c:
1825         * gst/gstminiobject.h:
1826         * gst/gstobject.h:
1827         * gst/gstutils.h:
1828           more docs and doc style fixes
1829
1830 2005-11-03  Stefan Kost  <ensonic@users.sf.net>
1831
1832         * docs/gst/gstreamer-sections.txt:
1833         * gst/gstelement.c:
1834         * gst/gstminiobject.c:
1835         doc fixes
1836
1837 2005-11-03  Andy Wingo  <wingo@pobox.com>
1838
1839         * check/states/sinks.c (test_livesrc_sink): Add checks that the
1840         state-changed messages actually have the right order and the right
1841         values.
1842
1843 2005-11-03  Wim Taymans  <wim@fluendo.com>
1844
1845         * check/states/sinks.c: (GST_START_TEST), (gst_object_suite):
1846         Added some more checks. Specifically the case where NO_PREROLL
1847         elements are in the pipeline.
1848
1849         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1850         (gst_base_sink_handle_object), (gst_base_sink_do_sync),
1851         (gst_base_sink_get_position):
1852         Post READY->PAUSED state change messages too.
1853         Fix bug where VOID was posted as pending state...
1854
1855         * gst/gstbin.c: (gst_bin_recalc_state):
1856         use _element_continue_state() to continue the state change.
1857
1858         * gst/gstelement.c: (gst_element_continue_state),
1859         (gst_element_commit_state), (gst_element_set_state_func),
1860         (gst_element_change_state), (gst_element_change_state_func):
1861         Lots of state change cleanups, assign the STATE_RETURN in
1862         a new continue_state() function that also propagates the
1863         last return value from a state change to the app.
1864         Update some debug statements with proper category.
1865
1866 2005-11-03  Wim Taymans  <wim@fluendo.com>
1867
1868         * docs/design/part-events.txt:
1869         * docs/design/part-gstpipeline.txt:
1870         * docs/design/part-messages.txt:
1871         * docs/design/part-overview.txt:
1872         * docs/design/part-seeking.txt:
1873         * docs/design/part-states.txt:
1874         * docs/design/part-trickmodes.txt:
1875         * docs/manual/advanced-position.xml:
1876         Small docs updates.
1877
1878         * gst/gstobject.h:
1879         People think !! is ugly, this looks better.
1880
1881         * gst/gstpad.c: (gst_pad_set_blocked_async):
1882         Remove !! since it's fixed elsewhere now.
1883
1884 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
1885
1886         * gst/gstminiobject.h:
1887         * gst/gstobject.h:
1888           Add !! to _FLAG_IS_SET macros to make the result boolean.
1889
1890 2005-11-03  Edward Hervey  <edward@fluendo.com>
1891
1892         * gst/gstpad.c: (gst_pad_set_blocked_async):
1893         comparing a flag and a gboolean rarely returns coherent results...
1894         Added two characters (!!) to make that work correctly.
1895         
1896 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
1897
1898         * gst/gstbus.c: (gst_bus_class_init):
1899           Fix some typos.
1900           
1901         * gst/gstqueue.c: (gst_queue_loop):
1902           Don't assume a miniobject that isn't a buffer is an
1903           event (it could be that there is a refcounting
1904           problem somewhere and the pointer is stale and
1905           refers to an already destroyed miniobject).
1906
1907 2005-11-03  Julien MOUTTE  <julien@moutte.net>
1908
1909         * gst/gstpad.c: (gst_pad_alloc_buffer): Fix some typos.
1910
1911 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
1912
1913         * docs/manual/advanced-position.xml:
1914           Update seek example and explanations to current 0.9 API.
1915
1916         * gst/elements/gsttypefindelement.c:
1917         (gst_type_find_element_activate):
1918           Remove FIXME comment now that the found caps
1919           are unreffed.
1920
1921 2005-11-03  Thomas Vander Stichele  <thomas at apestaart dot org>
1922
1923         * gst/gstregistryxml.c: (load_feature):
1924           Add another GST_STR_NULL instance
1925
1926 2005-11-02  Edward Hervey  <edward@fluendo.com>
1927
1928         * gst/gstpad.c: (handle_pad_block):
1929         Follow-up to Wim's patch, solves deadlock for blocked and flushing pads
1930         
1931 2005-11-02  Wim Taymans  <wim@fluendo.com>
1932
1933         * gst/gstbin.c:
1934         Fix typo in docs.
1935
1936         * gst/gstelement.c: (gst_element_commit_state):
1937         Remove unused value.
1938
1939         * gst/gstiterator.c:
1940         Mention that the returned element is reffed in the docs.
1941
1942 2005-11-02  Wim Taymans  <wim@fluendo.com>
1943
1944         * gst/gstpad.c: (gst_pad_alloc_buffer), (handle_pad_block),
1945         (gst_pad_push), (gst_pad_push_event):
1946         Unlock blocked pads when they are flushed.
1947
1948 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
1949
1950         * docs/README:
1951         * docs/gst/gstreamer-sections.txt:
1952         * gst/gstbin.c:
1953           doc updates
1954         * gst/gstregistry.c: (gst_registry_scan_path_level):
1955           fix for a nasty little missed situation where an installed plug-in
1956           which was in the cache did not get overridden by an uninstalled one
1957           which was earlier in the plugin path because the newly created plugin
1958           for the uninstalled one (not in the registry) didn't get its
1959           ->registered set to TRUE
1960
1961 2005-11-02  Tim-Philipp Müller  <tim at centricular dot net>
1962
1963         * gst/base/gstcollectpads.c: (gst_collectpads_set_function),
1964         (gst_collectpads_add_pad), (gst_collectpads_remove_pad),
1965         (gst_collectpads_is_active), (gst_collectpads_collect),
1966         (gst_collectpads_collect_range), (gst_collectpads_start),
1967         (gst_collectpads_stop), (gst_collectpads_peek),
1968         (gst_collectpads_pop), (gst_collectpads_available),
1969         (gst_collectpads_read), (gst_collectpads_flush):
1970           Guard public API with assertions.
1971         
1972         * gst/gstpad.c:
1973           Fix docs for gst_pad_set_link_function().
1974
1975 2005-11-02  Johan Dahlin  <johan@gnome.org>
1976
1977         * gst/elements/gsttypefindelement.c (gst_type_find_element_activate): 
1978         Unref found_caps after we used it.
1979
1980 2005-11-02  Tim-Philipp Müller  <tim at centricular dot net>
1981
1982         * gst/base/gstcollectpads.c: (gst_collectpads_peek):
1983           Don't try to ref NULL.
1984
1985 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
1986
1987         * win32/common/config.h.in:
1988           provide a GST_FUNCTION that just gives a string for now
1989
1990 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
1991
1992         * win32/common/gstenumtypes.c: (register_gst_object_flags),
1993         (gst_object_flags_get_type), (register_gst_bin_flags),
1994         (gst_bin_flags_get_type), (register_gst_buffer_flag),
1995         (gst_buffer_flag_get_type), (register_gst_bus_flags),
1996         (gst_bus_flags_get_type), (register_gst_bus_sync_reply),
1997         (gst_bus_sync_reply_get_type), (register_gst_clock_return),
1998         (gst_clock_return_get_type), (register_gst_clock_entry_type),
1999         (gst_clock_entry_type_get_type), (register_gst_clock_flags),
2000         (gst_clock_flags_get_type), (register_gst_state),
2001         (gst_state_get_type), (register_gst_state_change_return),
2002         (gst_state_change_return_get_type), (register_gst_state_change),
2003         (gst_state_change_get_type), (register_gst_element_flags),
2004         (gst_element_flags_get_type), (register_gst_core_error),
2005         (gst_core_error_get_type), (register_gst_library_error),
2006         (gst_library_error_get_type), (register_gst_resource_error),
2007         (gst_resource_error_get_type), (register_gst_stream_error),
2008         (gst_stream_error_get_type), (register_gst_event_type),
2009         (gst_event_type_get_type), (register_gst_seek_type),
2010         (gst_seek_type_get_type), (register_gst_seek_flags),
2011         (gst_seek_flags_get_type), (register_gst_format),
2012         (gst_format_get_type), (register_gst_index_certainty),
2013         (gst_index_certainty_get_type), (register_gst_index_entry_type),
2014         (gst_index_entry_type_get_type),
2015         (register_gst_index_lookup_method),
2016         (gst_index_lookup_method_get_type), (register_gst_assoc_flags),
2017         (gst_assoc_flags_get_type), (register_gst_index_resolver_method),
2018         (gst_index_resolver_method_get_type), (register_gst_index_flags),
2019         (gst_index_flags_get_type), (register_gst_debug_level),
2020         (gst_debug_level_get_type), (register_gst_debug_color_flags),
2021         (gst_debug_color_flags_get_type), (register_gst_iterator_result),
2022         (gst_iterator_result_get_type), (register_gst_iterator_item),
2023         (gst_iterator_item_get_type), (register_gst_message_type),
2024         (gst_message_type_get_type), (register_gst_mini_object_flags),
2025         (gst_mini_object_flags_get_type), (register_gst_pad_link_return),
2026         (gst_pad_link_return_get_type), (register_gst_flow_return),
2027         (gst_flow_return_get_type), (register_gst_activate_mode),
2028         (gst_activate_mode_get_type), (register_gst_pad_direction),
2029         (gst_pad_direction_get_type), (register_gst_pad_flags),
2030         (gst_pad_flags_get_type), (register_gst_pad_presence),
2031         (gst_pad_presence_get_type), (register_gst_pad_template_flags),
2032         (gst_pad_template_flags_get_type), (register_gst_pipeline_flags),
2033         (gst_pipeline_flags_get_type), (register_gst_plugin_error),
2034         (gst_plugin_error_get_type), (register_gst_plugin_flags),
2035         (gst_plugin_flags_get_type), (register_gst_rank),
2036         (gst_rank_get_type), (register_gst_query_type),
2037         (gst_query_type_get_type), (register_gst_tag_merge_mode),
2038         (gst_tag_merge_mode_get_type), (register_gst_tag_flag),
2039         (gst_tag_flag_get_type), (register_gst_task_state),
2040         (gst_task_state_get_type), (register_gst_alloc_trace_flags),
2041         (gst_alloc_trace_flags_get_type),
2042         (register_gst_type_find_probability),
2043         (gst_type_find_probability_get_type), (register_gst_uri_type),
2044         (gst_uri_type_get_type), (register_gst_parse_error),
2045         (gst_parse_error_get_type):
2046         * win32/common/gstversion.h:
2047           update win32 copies
2048
2049 2005-11-01  Luca Ognibene  <luogni@tin.it>
2050
2051         * gst/gst.c:
2052           fix docs. popt is dead, long live GOption.
2053
2054 2005-10-31  Wim Taymans  <wim@fluendo.com>
2055
2056         * gst/gstbuffer.h:
2057         Small doc fix.
2058
2059 2005-10-31  Andy Wingo  <wingo@pobox.com>
2060
2061         * Boo!
2062
2063         * gst/gstqueue.c (gst_queue_chain): Fix downstream leaky mode.
2064
2065         * gst/gstobject.c (gst_object_dispatch_properties_changed): No
2066         need to serialize property notifications on GLib 2.8. GLib 2.6 has
2067         the possibility of deadlocks here if code calling notify() or
2068         set() has a lock that can be taken in another notify handler (ABBA
2069         with class lock and e.g. python GIL state lock).
2070
2071 2005-10-28  Julien MOUTTE  <julien@moutte.net>
2072
2073         * gst/gstbus.c: Doc updates.
2074
2075 2005-10-28  Wim Taymans  <wim@fluendo.com>
2076
2077         * docs/design/part-TODO.txt:
2078         * gst/gstiterator.c:
2079         * gst/gstsystemclock.c:
2080         * gst/gstsystemclock.h:
2081         Doc updates.
2082
2083 2005-10-28  Edward Hervey  <edward@fluendo.com>
2084
2085         * docs/gst/gstreamer-docs.sgml:
2086         * docs/gst/gstreamer-sections.txt:
2087         the GstURIType documentation page is private, it only defines GstURIType
2088         which should be defined in the GstURIHandler page
2089         
2090 2005-10-28  Thomas Vander Stichele  <thomas at apestaart dot org>
2091
2092         * gst/gstbin.c: (gst_bin_class_init):
2093         * gst/gstbin.h:
2094         * gst/gstutils.c:
2095         Documentation updates.
2096
2097 2005-10-28  Wim Taymans  <wim@fluendo.com>
2098
2099         * docs/gst/gstreamer-sections.txt:
2100         * gst/gstclock.c:
2101         * gst/gstclock.h:
2102         Documented the clocks.
2103
2104 2005-10-28  Stefan Kost  <ensonic@users.sf.net>
2105
2106         * docs/gst/gstreamer-sections.txt:
2107           move some macros to private sections
2108         * gst/gstminiobject.c:
2109         * gst/gstminiobject.h:
2110           add descriptions provided by ds and some more
2111         * gst/gstpad.h:
2112           mark macro as to be removed
2113
2114 2005-10-28  Wim Taymans  <wim@fluendo.com>
2115
2116         * docs/design/part-TODO.txt:
2117         Add an item to TODO.
2118
2119         * gst/gstiterator.c: (gst_iterator_fold),
2120         (gst_iterator_find_custom):
2121         * gst/gstiterator.h:
2122         Add iterator docs.
2123
2124 2005-10-28  Wim Taymans  <wim@fluendo.com>
2125
2126         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
2127         (gst_base_transform_init):
2128         Don't leak class.
2129
2130         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_loop):
2131         An EOS event marks the queue as completely filled.
2132
2133 2005-10-27  Wim Taymans  <wim@fluendo.com>
2134
2135         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2136         (gst_base_sink_do_sync), (gst_base_sink_get_position):
2137         Some more debugging.
2138
2139         * gst/base/gstbasetransform.c: (gst_base_transform_finalize),
2140         (gst_base_transform_init), (gst_base_transform_buffer_alloc),
2141         (gst_base_transform_event), (gst_base_transform_getrange),
2142         (gst_base_transform_chain):
2143         * gst/base/gstbasetransform.h:
2144         Fix debugging,
2145         Protect transform and concurrent buffer alloc with a new lock.
2146         Try not to break ABI/API.
2147
2148 2005-10-27  Wim Taymans  <wim@fluendo.com>
2149
2150         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
2151         (gst_base_src_init), (gst_base_src_query),
2152         (gst_base_src_default_newsegment),
2153         (gst_base_src_configure_segment), (gst_base_src_do_seek),
2154         (gst_base_src_send_event), (gst_base_src_event_handler),
2155         (gst_base_src_pad_get_range), (gst_base_src_loop),
2156         (gst_base_src_unlock), (gst_base_src_default_negotiate),
2157         (gst_base_src_start), (gst_base_src_deactivate),
2158         (gst_base_src_activate_push), (gst_base_src_change_state):
2159         Move some stuff around and cleanup things.
2160
2161 2005-10-27  Tim-Philipp Müller  <tim at centricular dot net>
2162
2163         * gst/base/gstbasesrc.c: (gst_base_src_query):
2164           Add missing break statements.
2165
2166 2005-10-27  Wim Taymans  <wim@fluendo.com>
2167
2168         * check/gst/gstbin.c: (GST_START_TEST):
2169         An extra refcount is taken in basesrc.
2170
2171         * gst/base/gstbasesrc.c: (gst_base_src_init), (gst_base_src_query),
2172         (gst_base_src_get_range), (gst_base_src_pad_get_range),
2173         (gst_base_src_loop):
2174         Small cleanups, check for flushing after being unlocked from the 
2175         LIVE_LOCK. take refcounts correctly (not yet everywhere).
2176         Don't send out EOS when going to READY.
2177
2178 2005-10-27  Wim Taymans  <wim@fluendo.com>
2179
2180         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2181         (gst_base_sink_get_position):
2182         Some more debug.
2183
2184         * gst/gstbin.c: (message_check), (bin_replace_message),
2185         (bin_remove_messages), (is_eos), (gst_bin_add_func),
2186         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
2187         (bin_query_duration_init), (bin_query_duration_fold),
2188         (bin_query_duration_done), (bin_query_generic_fold),
2189         (gst_bin_query):
2190         * tools/gst-launch.c: (main):
2191         Remove old option.
2192
2193 2005-10-26  Stefan Kost  <ensonic@users.sf.net>
2194
2195         * examples/controller/audio-example.c: (main):
2196         * examples/queue/queue.c: (event_loop):
2197         * gst/base/gstbasetransform.h:
2198         * gst/gstelement.c: (gst_element_send_event):
2199         * gst/gstevent.h:
2200         * gst/gstpad.c: (gst_pad_send_event):
2201           fixing examples
2202           fixing docs typos
2203           changing log priority in error situations
2204
2205 2005-10-25  Wim Taymans  <wim@fluendo.com>
2206
2207         * gst/gstbin.c: (message_check), (bin_replace_message),
2208         (bin_remove_messages), (is_eos), (gst_bin_add_func),
2209         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
2210         (bin_query_duration_init), (bin_query_duration_fold),
2211         (bin_query_duration_done), (bin_query_generic_fold),
2212         (gst_bin_query):
2213         Some doc and debug updates.
2214         Cache previously requested query DURATION for speed. invalidate
2215         cached duration if element posts a DURATION message.
2216
2217 2005-10-25  Wim Taymans  <wim@fluendo.com>
2218
2219         * docs/design/part-TODO.txt:
2220         Update TODO.
2221
2222         * gst/gstbin.c: (message_check), (bin_replace_message),
2223         (bin_remove_messages), (is_eos), (gst_bin_add_func),
2224         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
2225         (bin_query_duration_init), (bin_query_duration_fold),
2226         (bin_query_duration_done), (bin_query_generic_fold),
2227         (gst_bin_query):
2228         Handle SEGMENT_START/DONE messages correctly.
2229         More evolved query algorithm that handles duration queries
2230         correctly.
2231
2232         * gst/gstelement.c: (gst_element_send_event), (gst_element_query),
2233         (gst_element_get_state_func), (gst_element_abort_state),
2234         (gst_element_commit_state), (gst_element_lost_state):
2235         Some more debugging.
2236
2237         * gst/gstmessage.h:
2238         Added doc.
2239
2240 2005-10-25  Wim Taymans  <wim@fluendo.com>
2241
2242         * gst/base/gstbasesink.c: (gst_base_sink_get_position):
2243         Don't use invalid stream_time.
2244
2245         * gst/gstevent.c: (gst_event_new_newsegment):
2246         stream_time in newsegment cannot be undefined.
2247
2248 2005-10-24  Wim Taymans  <wim@fluendo.com>
2249
2250         * gst/gstbus.c:
2251         Doc fix.
2252
2253         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
2254         (gst_queue_loop):
2255         Fix potential deadlock when QUEUE_LOCK is taken before STREAM_LOCK.
2256
2257 2005-10-24  Stefan Kost  <ensonic@users.sf.net>
2258
2259         * docs/libs/tmpl/gstdparam.sgml:
2260         * docs/libs/tmpl/gstdplinint.sgml:
2261         * docs/libs/tmpl/gstdpman.sgml:
2262         * docs/libs/tmpl/gstdpsmooth.sgml:
2263         * docs/libs/tmpl/gstunitconvert.sgml:
2264           these are obsolete
2265
2266 2005-10-24  Thomas Vander Stichele  <thomas at apestaart dot org>
2267
2268         * configure.ac:
2269           back to HEAD
2270
2271 === release 0.9.4 ===
2272
2273 2005-10-23  Thomas Vander Stichele  <thomas at apestaart dot org>
2274
2275         * configure.ac:
2276           releasing 0.9.4, "Tyrannosaurus Rex"
2277
2278 2005-10-23  Tim-Philipp Müller  <tim at centricular dot net>
2279
2280         * gst/elements/gstfilesink.c: (gst_file_sink_do_seek),
2281         (gst_file_sink_get_current_offset):
2282           Use fseeko() and ftello() if available. When falling back on
2283           lseek() to get the current offset, fflush() first to make sure
2284           everything is up-to-date and we get the right offset.
2285
2286 2005-10-23  Thomas Vander Stichele  <thomas at apestaart dot org>
2287
2288         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2289         * gst/base/gstbasesrc.c: (gst_base_src_loop):
2290         * gst/gsterror.c: (_gst_stream_errors_init):
2291         * gst/gsterror.h:
2292         * gst/gstqueue.c: (gst_queue_loop):
2293         * po/POTFILES.in:
2294           remove prematurely added error category and clean up the instances
2295
2296 2005-10-21  Wim Taymans  <wim@fluendo.com>
2297
2298         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
2299         (gst_base_sink_get_position), (gst_base_sink_query),
2300         (gst_base_sink_change_state):
2301         Simply set the right flag when going to playing, that's all
2302         we need to do instead of calling a function inside the object
2303         lock (that could take the lock as well and deadlock)
2304
2305 2005-10-21  Wim Taymans  <wim@fluendo.com>
2306
2307         * gst/base/gstbasesrc.c: (gst_base_src_do_seek),
2308         (gst_base_src_loop):
2309         Don't warn, the peer element knows what to do best when
2310         the seek failed, it might try something else.
2311
2312 2005-10-21  Wim Taymans  <wim@fluendo.com>
2313
2314         * gst/base/gstbasesrc.c: (gst_base_src_init),
2315         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start):
2316         Fix seeking.
2317
2318 2005-10-21  Wim Taymans  <wim@fluendo.com>
2319
2320         * docs/design/part-segments.txt:
2321         More docs.
2322
2323         * gst/elements/gstcapsfilter.c: (gst_capsfilter_prepare_buf):
2324         Correctly set caps, even on the subbufer.
2325
2326 2005-10-21  Wim Taymans  <wim@fluendo.com>
2327
2328         * docs/gst/gstreamer-docs.sgml:
2329         * docs/gst/gstreamer-sections.txt:
2330         * gst/gstelement.h:
2331         * gst/gstevent.c:
2332         * gst/gstevent.h:
2333         * gst/gstmessage.h:
2334         * gst/gstpad.h:
2335         * gst/gstparse.h:
2336         * gst/gsttask.c: (gst_task_finalize), (gst_task_func):
2337         * gst/gsttask.h:
2338         * gst/gstutils.c:
2339         * gst/gstutils.h:
2340         And 2% more doc coverage.
2341
2342 2005-10-21  Andy Wingo  <wingo@pobox.com>
2343
2344         * gst/base/gstbasesrc.c (gst_base_src_query): Clean up percent
2345         position reporting.
2346
2347 2005-10-20  Wim Taymans  <wim@fluendo.com>
2348
2349         * gst/gsterror.c: (gst_error_get_message):
2350         * gst/gstparse.h:
2351         * gst/gstquery.h:
2352         * gst/gststructure.c:
2353         * gst/gsttrace.c:
2354         * gst/gstutils.c:
2355         More docs.
2356
2357 2005-10-20  Wim Taymans  <wim@fluendo.com>
2358
2359         * gst/gstbuffer.h:
2360         * gst/gstpad.c:
2361         * gst/gstparse.c:
2362         Another 1% more coverage.
2363
2364 2005-10-20  Wim Taymans  <wim@fluendo.com>
2365
2366         * docs/gst/gstreamer-sections.txt:
2367         * gst/gstelement.c: (gst_element_get_state_func),
2368         (gst_element_abort_state), (gst_element_commit_state),
2369         (gst_element_lost_state):
2370         * gst/gstevent.h:
2371         * gst/gstquery.c: (gst_query_set_position),
2372         (gst_query_parse_position), (gst_query_set_duration),
2373         (gst_query_parse_duration), (gst_query_new_convert):
2374         * gst/gstutils.c:
2375         Yay! 1% more docs coverage.
2376
2377 2005-10-20  Wim Taymans  <wim@fluendo.com>
2378
2379         * gst/gstpad.h:
2380         * gst/gstquery.c: (gst_query_set_position),
2381         (gst_query_parse_position), (gst_query_set_duration),
2382         (gst_query_parse_duration), (gst_query_new_convert):
2383         * gst/gstquery.h:
2384         * gst/gstutils.c: (gst_element_query_convert):
2385         * gst/gstutils.h:
2386         Docs and consistency fixes.
2387
2388 2005-10-20  Wim Taymans  <wim@fluendo.com>
2389
2390         * gst/gsttask.c:
2391         * gst/gsttask.h:
2392         More docs.
2393
2394 2005-10-20  Wim Taymans  <wim@fluendo.com>
2395
2396         * gst/gstbin.c: (message_check), (bin_replace_message),
2397         (bin_remove_messages), (is_eos), (gst_bin_add_func),
2398         (update_degree), (gst_bin_sort_iterator_next),
2399         (gst_bin_change_state_func), (gst_bin_dispose), (bin_bus_handler):
2400         Reworked the message handling a bit, cache the messages instead of
2401         only the senders. alows us to do more in the future.
2402
2403 2005-10-20  Wim Taymans  <wim@fluendo.com>
2404
2405         * docs/design/part-TODO.txt:
2406         Update TODO
2407
2408         * gst/base/gstbasesink.c: (gst_base_sink_get_position),
2409         (gst_base_sink_query):
2410         Don't use clock time to report position when in EOS.
2411
2412 2005-10-20  Tim-Philipp Müller  <tim at centricular dot net>
2413
2414         * tools/gst-inspect.c: (print_interfaces),
2415         (print_element_properties_info), (print_element_info):
2416           Fix interface output with gst-inspect -a; don't print
2417           newlines after double/float properties.
2418
2419 2005-10-20  Wim Taymans  <wim@fluendo.com>
2420
2421         * gst/base/gstbasesink.c: (gst_base_sink_get_position),
2422         (gst_base_sink_query):
2423         Speed up current position calculation.
2424
2425         * gst/base/gstbasesrc.c: (gst_base_src_query),
2426         (gst_base_src_default_newsegment):
2427         Correctly set stream position in newsegment.
2428
2429         * gst/gstbin.c: (gst_bin_add_func), (add_to_queue),
2430         (update_degree), (gst_bin_sort_iterator_next),
2431         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free):
2432         * gst/gstmessage.c: (gst_message_new_custom):
2433         Clean up debugging info
2434
2435         * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
2436         (gst_queue_loop), (gst_queue_handle_src_query):
2437         Pause task faster.
2438
2439 2005-10-19  Wim Taymans  <wim@fluendo.com>
2440
2441         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
2442         (gst_base_sink_handle_object), (gst_base_sink_query), (do_playing):
2443         Fix query handling again.
2444
2445 2005-10-19  Wim Taymans  <wim@fluendo.com>
2446
2447         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
2448         (gst_base_sink_handle_object), (gst_base_sink_query), (do_playing):
2449         * gst/base/gstbasesrc.c: (gst_base_src_query):
2450         * gst/elements/gstfilesink.c: (gst_file_sink_query):
2451         * gst/elements/gsttypefindelement.c:
2452         (gst_type_find_handle_src_query), (find_element_get_length),
2453         (gst_type_find_element_activate):
2454         API change fix.
2455
2456         * gst/gstquery.c: (gst_query_new_position),
2457         (gst_query_set_position), (gst_query_parse_position),
2458         (gst_query_new_duration), (gst_query_set_duration),
2459         (gst_query_parse_duration), (gst_query_set_segment),
2460         (gst_query_parse_segment):
2461         * gst/gstquery.h:
2462         Bundling query position/duration is not a good idea since duration
2463         does not change much and we don't want to recalculate it for every
2464         position query, so they are separated again..
2465         Base value in segment query is not needed.
2466
2467         * gst/gstqueue.c: (gst_queue_handle_src_query):
2468         * gst/gstutils.c: (gst_element_query_position),
2469         (gst_element_query_duration), (gst_pad_query_position),
2470         (gst_pad_query_duration):
2471         * gst/gstutils.h:
2472         Updates for query API change.
2473         Added some docs here and there.
2474
2475 2005-10-19  Thomas Vander Stichele  <thomas at apestaart dot org>
2476
2477         * check/gst/gstbin.c: (GST_START_TEST):
2478         * check/gst/gstghostpad.c: (GST_START_TEST):
2479         * check/pipelines/cleanup.c: (GST_START_TEST):
2480           wait on thread to die so we can check refcount correctly
2481
2482 2005-10-18  Wim Taymans  <wim@fluendo.com>
2483
2484         * check/pipelines/stress.c: (GST_START_TEST):
2485         Make check a little more time consuming.
2486
2487 2005-10-18  Wim Taymans  <wim@fluendo.com>
2488
2489         * check/Makefile.am:
2490         * check/pipelines/stress.c: (GST_START_TEST),
2491         (simple_launch_lines_suite), (main):
2492         Small state change torture test.
2493
2494         * docs/design/part-states.txt:
2495         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
2496         (gst_base_sink_handle_object), (gst_base_sink_event), (do_playing),
2497         (gst_base_sink_change_state):
2498         Never take state lock from streaming thread, clean up ugly
2499         hacks. Unfortunatly core does not yet support nice ways to
2500         async commit state.
2501         
2502         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_recalc_state),
2503         (bin_bus_handler):
2504         Start state recalc if a STATE_DIRTY message is posted, but only
2505         on the toplevel bin.
2506
2507         * gst/gstelement.c: (gst_element_sync_state_with_parent),
2508         (gst_element_get_state_func), (gst_element_abort_state),
2509         (gst_element_commit_state), (gst_element_lost_state),
2510         (gst_element_set_state_func), (gst_element_change_state):
2511         * gst/gstelement.h:
2512         State variables are now protected with the LOCK, the state
2513         lock is only used to serialize _set_state().
2514
2515 2005-10-18  Wim Taymans  <wim@fluendo.com>
2516
2517         * check/gst/gstbin.c: (GST_START_TEST):
2518         * check/gst/gstmessage.c: (GST_START_TEST):
2519         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
2520         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_recalc_func),
2521         (bin_bus_handler):
2522         * gst/gstelement.c: (gst_element_abort_state),
2523         (gst_element_commit_state), (gst_element_lost_state):
2524         * gst/gstmessage.c: (gst_message_new_state_changed),
2525         (gst_message_new_state_dirty), (gst_message_new_segment_start),
2526         (gst_message_new_segment_done), (gst_message_new_duration),
2527         (gst_message_parse_state_changed),
2528         (gst_message_parse_segment_start),
2529         (gst_message_parse_segment_done), (gst_message_parse_duration):
2530         * gst/gstmessage.h:
2531         * tools/gst-launch.c: (event_loop):
2532         Seriously, this is better than a previous commit as we only need
2533         to notify the fact that an element changed state in a streaming
2534         thread, marking the state of the parents dirty, hence the 
2535         STATE_DIRTY message instead of abusing a boolean in a STATE_CHANGE
2536         message.
2537
2538 2005-10-18  Wim Taymans  <wim@fluendo.com>
2539
2540         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_get_state_func),
2541         (gst_bin_recalc_func):
2542         * gst/gstelement.c: (gst_element_set_clock),
2543         (gst_element_abort_state), (gst_element_lost_state):
2544         Cleanups, prepare for state change fixes.
2545
2546 2005-10-18  Wim Taymans  <wim@fluendo.com>
2547
2548         * gst/gstbin.h:
2549         * gst/gstelement.c: (gst_element_class_init),
2550         (gst_element_set_state), (gst_element_set_state_func):
2551         * gst/gstelement.h:
2552         Pending ABI changes.
2553         GThreadPool in GstBinClass to monitor async state changes.
2554         state_cookie in GstElement to detect concurrent gst/set state.
2555         set_state is now virtual too in case a very complicated element
2556         has to be constructed.
2557
2558 2005-10-18  Wim Taymans  <wim@fluendo.com>
2559
2560         * check/gst/gstbin.c: (GST_START_TEST):
2561         * check/gst/gstmessage.c: (GST_START_TEST):
2562         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
2563         * gst/gstbin.c: (bin_bus_handler):
2564         * gst/gstelement.c: (gst_element_commit_state),
2565         (gst_element_lost_state):
2566         * gst/gstmessage.c: (gst_message_new_state_changed),
2567         (gst_message_new_segment_start), (gst_message_new_segment_done),
2568         (gst_message_new_duration), (gst_message_parse_state_changed),
2569         (gst_message_parse_segment_start),
2570         (gst_message_parse_segment_done), (gst_message_parse_duration):
2571         * gst/gstmessage.h:
2572         * tools/gst-launch.c: (event_loop):
2573         Make messages future proof.
2574         state-change gets a flag if it was a message comming from the
2575         streaming thread.
2576         segment-start/stop can also be specified in other formats.
2577         A message to notify an app that a pipeline changed playback 
2578         duration.
2579         Also fix a GstMessage leak in -launch
2580
2581 2005-10-18  Andy Wingo  <wingo@pobox.com>
2582
2583         * gst/gstelement.c (gst_element_dispose): More helpful message.
2584
2585 2005-10-18  Thomas Vander Stichele  <thomas at apestaart dot org>
2586
2587         reviewed by: <delete if not using a buddy>
2588
2589         * common/gtk-doc.mak:
2590
2591 2005-10-18  Thomas Vander Stichele  <thomas at apestaart dot org>
2592
2593         * gst/gstregistry.c: (gst_registry_scan_path_level):
2594           unref a plug-in we get that was already initialized
2595
2596 2005-10-18  Stefan Kost  <ensonic@users.sf.net>
2597
2598         * docs/gst/gstreamer-sections.txt:
2599         * docs/libs/gstreamer-libs-sections.txt:
2600         * gst/gstelement.h:
2601           add new api entries
2602           hide internal macro
2603
2604 2005-10-17  Andy Wingo  <wingo@pobox.com>
2605
2606         * gst/base/gstcollectpads.c (gst_collectpads_chain): Slight
2607         cleanup.
2608
2609         * gst/Makefile.am (gstenumtypes.c): Threadsafe now.
2610
2611         * gst/gstevent.c (gst_event_new, gst_event_finalize): LOG.
2612
2613         * gst/gstelement.c (gst_element_get_state_func): s/INFO/DEBUG/.
2614         (gst_element_get_state_func): Better debug message.
2615         (gst_element_commit_state): s/INFO/DEBUG/.
2616         (gst_element_lost_state, gst_element_change_state): 
2617
2618         * gst/gstmessage.c (gst_message_init): s/INFO/LOG/.
2619         (gst_message_new_custom): s/INFO/LOG/.
2620
2621 2005-10-17  Michael Smith <msmith@fluendo.com>
2622
2623         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
2624           Check if end time is valid using end time, not start time.
2625
2626 2005-10-17  Stefan Kost  <ensonic@users.sf.net>
2627
2628         * check/gst-libs/controller.c: (GST_START_TEST),
2629         (gst_controller_suite):
2630         * libs/gst/controller/gstcontroller.c:
2631         (gst_controlled_property_set_interpolation_mode):
2632         * libs/gst/controller/gstcontroller.h:
2633         * libs/gst/controller/gstinterpolation.c:
2634         * testsuite/controller/.cvsignore:
2635         * testsuite/controller/Makefile.am:
2636         * testsuite/controller/interpolator.c:
2637           merge controller testsuites
2638           fix broken tests
2639           remove mem-chunk from docs
2640
2641 2005-10-17  Thomas Vander Stichele  <thomas at apestaart dot org>
2642
2643         * gst/gstmemchunk.c:
2644         * gst/gstmemchunk.h:
2645         * gst/gsttrashstack.c:
2646         * gst/gsttrashstack.h:
2647           out.  get out.  you're fired.  to the Attic !
2648
2649 2005-10-17  Thomas Vander Stichele  <thomas at apestaart dot org>
2650
2651         * gst/gstcaps.c: (gst_caps_intersect):
2652           fix signedness issues in a (hopefully) correct way
2653         * gst/gstelement.c: (gst_element_pads_activate):
2654           some debugging
2655         * gst/gstobject.c: (gst_object_set_parent):
2656           some debugging
2657
2658 2005-10-17  Julien MOUTTE  <julien@moutte.net>
2659
2660         * gst/gstvalue.h: Fix prototypes.
2661
2662 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2663
2664         * docs/gst/gstreamer-sections.txt:
2665         * gst/gst.c: (gst_version_string):
2666         * gst/gst.h:
2667         * gst/gstversion.h.in:
2668         * win32/common/libgstreamer.def:
2669           add gst_version_string ()
2670
2671 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2672
2673         * configure.ac:
2674           clean up further
2675         * gst/gst.c: (init_post):
2676         * win32/common/config.h.in:
2677           it's PLUGINDIR now
2678         * gst/gstcaps.c: (gst_caps_intersect):
2679           use gint64, the range could be bigger than a guint
2680
2681 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2682
2683         * gst/gstclock.h:
2684           document potential problem in 2038
2685
2686 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2687
2688         * gst/gstcaps.c: (gst_caps_intersect):
2689           Fix guint j diving under 0
2690
2691 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2692
2693         * configure.ac:
2694         * win32/common/config.h:
2695         * win32/common/config.h.in:
2696           check for process.h, declares getpid() on Windows
2697         * gst/gstinfo.c:
2698           include process.h if we have it
2699         * gst/gstmemchunk.c: (populate), (gst_mem_chunk_new):
2700         * gst/gstmemchunk.h:
2701           fix signedness issues
2702         * win32/common/libgstreamer.def:
2703           fix get_type's
2704
2705 2005-10-16  Julien MOUTTE  <julien@moutte.net>
2706
2707         * gst/gstcaps.c: (gst_caps_intersect): Fix a bad bug with a simple
2708         fix. Because of unsigned ints, caps intersection was going nuts and
2709         trying to access structures with G_MAXUINT index. That fixes
2710         videotestsrc ! ffmpegcolorspace ! fakesink
2711         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked): logs
2712         consistency.
2713
2714 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2715
2716         * configure.ac:
2717           use the gettext macro
2718         * gst/elements/gstelements.c:
2719         * gst/gst.c:
2720         * gst/indexers/gstindexers.c:
2721           update for GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN
2722         * win32/common/config.h:
2723           updated config.h
2724         * win32/common/config.h.in:
2725           add the template to generate config.h
2726         * win32/common/gstenumtypes.c:
2727         * win32/common/gstversion.h:
2728           updated copies
2729
2730 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
2731
2732         * gst/gst.c: (gst_version):
2733         * gst/gstversion.h.in:
2734           add the nano
2735
2736 2005-10-15  Tim-Philipp Müller  <tim at centricular dot net>
2737
2738         * gst/gstevent.h:
2739           Oops, add missing closing bracket.
2740
2741 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2742
2743         * configure.ac:
2744           use common m4's for argument checking
2745
2746 2005-10-15  Tim-Philipp Müller  <tim at centricular dot net>
2747
2748         * docs/gst/gstreamer-sections.txt:
2749         * gst/gstevent.h:
2750           Add GST_EVENT_TYPE_NAME() macro.
2751
2752 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2753
2754         * gst/gstinfo.c:
2755         * gst/gstpluginfeature.c:
2756         * gst/gsttask.c:
2757           privatize more symbols
2758
2759 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2760
2761         * configure.ac:
2762           add srcdir, builddir includes to GST_ALL_CFLAGS, since
2763           everything that uses GStreamer API should have the includes
2764
2765 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2766
2767         * docs/gst/gstreamer-sections.txt:
2768         * gst/gstvalue.c: (gst_date_get_type), (_gst_value_initialize):
2769         * gst/gstvalue.h:
2770           give each value a _get_type, removes the DATA exports
2771
2772 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2773
2774         * gst/gst.c:
2775         * gst/gst.h:
2776           remove _gst_registry_auto_load, not used anymore
2777         * gst/gstbin.c: (gst_bin_get_type):
2778         * gst/gstbin.h:
2779         * gst/gstelement.c: (gst_element_get_type):
2780         * gst/gstelement.h:
2781         * gst/gstobject.c: (gst_object_get_type):
2782         * gst/gstobject.h:
2783         * gst/gstpad.c: (gst_pad_get_type):
2784         * gst/gstpad.h:
2785           make _get_type functions similar, fixes data export from library
2786
2787 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2788
2789         * configure.ac:
2790           correctly make conditionals
2791         * gst/elements/Makefile.am:
2792         * gst/elements/gstelements.c:
2793           fix typo causing fdsrc not to build
2794
2795 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2796
2797         * testsuite/Makefile.am:
2798         * testsuite/bytestream/.cvsignore:
2799         * testsuite/bytestream/Makefile.am:
2800         * testsuite/bytestream/filepadsink.c:
2801         * testsuite/bytestream/gstbstest.c:
2802         * testsuite/bytestream/test1.c:
2803         * testsuite/bytestream/testfile1:
2804         * testsuite/caps/normalisation.c:
2805         * testsuite/caps/random.c: (main):
2806         * testsuite/cleanup/.cvsignore:
2807         * testsuite/cleanup/Makefile.am:
2808         * testsuite/cleanup/cleanup1.c:
2809         * testsuite/cleanup/cleanup2.c:
2810         * testsuite/cleanup/cleanup3.c:
2811         * testsuite/cleanup/cleanup4.c:
2812         * testsuite/cleanup/cleanup5.c:
2813         * testsuite/controller/interpolator.c:
2814         * testsuite/debug/printf_extension.c: (main):
2815         * testsuite/elements/tee.c:
2816         * testsuite/negotiation/.cvsignore:
2817         * testsuite/negotiation/Makefile.am:
2818         * testsuite/negotiation/pad_link.c:
2819         * testsuite/pad/Makefile.am:
2820         * testsuite/pad/chainnopull.c:
2821         * testsuite/pad/getnopush.c:
2822         * testsuite/pad/link.c:
2823         * testsuite/refcounting/sched.c: (create_pipeline):
2824         * testsuite/registry/Makefile.am:
2825         * testsuite/registry/gst-print-formats.c:
2826         * testsuite/schedulers/.cvsignore:
2827         * testsuite/schedulers/142183-2.c:
2828         * testsuite/schedulers/142183.c:
2829         * testsuite/schedulers/143777-2.c:
2830         * testsuite/schedulers/143777.c:
2831         * testsuite/schedulers/147713.c:
2832         * testsuite/schedulers/147819.c:
2833         * testsuite/schedulers/147894-2.c:
2834         * testsuite/schedulers/147894.c:
2835         * testsuite/schedulers/Makefile.am:
2836         * testsuite/schedulers/group_link.c:
2837         * testsuite/schedulers/queue_link.c:
2838         * testsuite/schedulers/relink.c:
2839         * testsuite/schedulers/unlink.c:
2840         * testsuite/schedulers/unref.c:
2841         * testsuite/schedulers/useless_iteration.c:
2842         * testsuite/states/bin.c:
2843           clean out/remove some stuff from the testsuite directories
2844
2845 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2846
2847         * configure.ac:
2848           check for some headers
2849         * gst/elements/Makefile.am:
2850         * gst/elements/gstelements.c:
2851           don't compile fdsrc without sys/socket.h
2852         * gst/indexers/Makefile.am:
2853         * gst/indexers/gstindexers.c: (plugin_init):
2854           don't compile fileindex without mmap
2855
2856 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2857
2858         * configure.ac:
2859           reorganize
2860           clean up
2861           document more
2862           remove cruft
2863         * check/Makefile.am:
2864         * docs/gst/Makefile.am:
2865         * examples/helloworld/Makefile.am:
2866         * gst/Makefile.am:
2867         * gst/base/Makefile.am:
2868         * gst/check/Makefile.am:
2869         * gst/elements/Makefile.am:
2870         * gst/indexers/Makefile.am:
2871         * gst/parse/Makefile.am:
2872         * libs/gst/controller/Makefile.am:
2873         * libs/gst/dataprotocol/Makefile.am:
2874         * examples/helloworld/helloworld.c: (event_loop):
2875           compile fixes, though it's not being compiled currently
2876
2877 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
2878
2879         * check/gst/gsttag.c: (test_date_tags), (gst_tag_suite):
2880           Add some simple tests for the new taglist date API.
2881
2882 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
2883
2884         * gst/elements/gstfakesink.c: (gst_fake_sink_render):
2885         * gst/elements/gstfakesrc.c: (gst_fake_src_create):
2886           Beautify 'last-message' output: print 'none' for buffer timestamps
2887           and durations if none is set; improve alignment with next messages.
2888
2889 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
2890
2891         * gst/gstpluginfeature.c: (gst_plugin_feature_check_version):
2892         * gst/gstpluginfeature.h:
2893         * gst/gstregistry.c: (gst_default_registry_check_feature_version):
2894         * gst/gstregistry.h:
2895         * docs/gst/gstreamer-sections.txt:
2896           Add new API to check plugin feature version requirements.
2897
2898         * check/gst/gstplugin.c: (test_version_checks), (gst_plugin_suite):
2899           Some basic tests for the above.         
2900
2901 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
2902
2903         * gst/gststructure.c: (gst_structure_to_string):
2904           guard against NULL printf - happens when for example
2905           a message structure with GstClock gets serialized
2906
2907 2005-10-13  Tim-Philipp Müller  <tim at centricular dot net>
2908
2909         * gst/base/gstcollectpads.c: (gst_collectpads_event):
2910           Fix presumable copy'n'pasto.
2911
2912 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
2913
2914         * gst/elements/gstfakesrc.h:
2915         * gst/elements/gstfilesrc.c: (gst_file_src_create_read):
2916         * gst/elements/gsttypefindelement.c:
2917           fix some signedness
2918         * gst/elements/gstfilesink.c: (gst_file_sink_render):
2919           I wonder if this could actually write +2GB files before
2920
2921 2005-10-13  Andy Wingo  <wingo@pobox.com>
2922
2923         * libs/gst/dataprotocol/dataprotocol.c (gst_dp_packet_from_caps):
2924         Fix Timmeke Waymans bug.
2925         (gst_dp_caps_from_packet): Make sure we pass a NUL-terminated
2926         string of the proper length to gst_caps_from_string. There's a
2927         potential for, before this fix, that this could cause someone
2928         connecting over the network to cause a segfault if the payload is
2929         not NUL-terminated.
2930
2931 2005-10-13  Stefan Kost  <ensonic@users.sf.net>
2932
2933         * docs/design/draft-push-pull.txt:
2934         * docs/design/part-overview.txt:
2935         * docs/random/TODO-pre-0.9:
2936         * docs/random/old/ChangeLog.gstreamer:
2937         * gst/base/gstpushsrc.c:
2938         * gst/gstclock.c:
2939           fixed typos
2940
2941 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
2942
2943         * gst/glib-compat.c: (gst_flags_get_first_value):
2944         * gst/glib-compat.h:
2945         * gst/gstvalue.c: (gst_value_deserialize_int_helper),
2946         (gst_value_compare_double), (gst_value_serialize_flags):
2947           GLib 2.6 g_flags_get_first_value has a bug that triggers an
2948           infinite loop
2949
2950 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
2951
2952         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2953         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
2954           fix up debugging
2955         * tools/gst-launch.c: (event_loop):
2956           print out clock nicely
2957
2958 2005-10-13  Tim-Philipp Müller  <tim at centricular dot net>
2959
2960         * docs/gst/gstreamer-sections.txt:
2961         * gst/gsttaglist.h:
2962         * gst/gsttaglist.c: (_gst_tag_initialize), (gst_tag_list_get_date),
2963         (gst_tag_list_get_date_index):
2964           Added gst_tag_list_get_date() and gst_tag_list_get_date_index().
2965           GST_TAG_DATE now has a tag type of GST_TYPE_DATE (#170777).
2966
2967 2005-10-13  Julien MOUTTE  <julien@moutte.net>
2968
2969         * gst/base/gstcollectpads.c: (gst_collectpads_event),
2970         (gst_collectpads_chain):
2971         * gst/base/gstcollectpads.h: Handle newsegment and store informations
2972         in CollectData.
2973
2974 2005-10-13  Stefan Kost  <ensonic@users.sf.net>
2975
2976         * docs/gst/gstreamer-sections.txt:
2977         * gst/gst.c:
2978         * gst/gsterror.h:
2979         * tools/gst-inspect.c: (main):
2980         * tools/gst-launch.c: (main):
2981         * tools/gst-run.c: (main):
2982         * tools/gst-xmlinspect.c: (main):
2983           fix GOption context leaks
2984           doc fixes
2985
2986 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
2987
2988         * gst/gstbus.c:
2989           use HAVE_UNISTD_H
2990         * win32/common/config.h:
2991           update config
2992         * win32/vs6/grammar.dsp:
2993         * win32/vs6/libgstelements.dsp:
2994         * win32/vs6/libgstreamer.dsp:
2995           update vs6 files
2996
2997 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
2998
2999         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
3000         * gst/base/gstbasesrc.c: (gst_base_src_query):
3001           fix more guint64<->gdouble conversions
3002
3003 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
3004
3005         * Makefile.am:
3006           add win32-update target
3007         * win32/common/gstconfig.h:
3008         * win32/common/gstenumtypes.c:
3009         * win32/common/gstenumtypes.h:
3010         * win32/common/gstversion.h:
3011           add files that visual studio can't generate
3012
3013 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
3014
3015         * Makefile.am:
3016           add a win32-update target
3017         * configure.ac:
3018
3019 2005-10-12  Wim Taymans  <wim@fluendo.com>
3020
3021         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
3022         (reset_degree), (gst_bin_dispose), (bin_bus_handler):
3023         * gst/gstelement.c: (gst_element_commit_state),
3024         (gst_element_set_state):
3025         Protect flags with proper lock.
3026         unref provided cached clock in dispose.
3027
3028 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
3029
3030         * gst/gst.c:
3031         * gst/gstminiobject.h:
3032         * gst/gstpad.h:
3033         * win32/gstenumtypes.c: (gst_mini_object_flags_get_type):
3034           removed unused flags from miniobject
3035           doc fixes
3036
3037 2005-10-12  Wim Taymans  <wim@fluendo.com>
3038
3039         * gst/elements/gstfilesink.c: (gst_file_sink_do_seek),
3040         (gst_file_sink_event), (gst_file_sink_render):
3041         Flush before seeking.
3042
3043 2005-10-12  Andy Wingo  <wingo@pobox.com>
3044
3045         * gst/gst.c (gst_init_check): Ignore unknown options, as has
3046         always been the case.
3047
3048 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
3049
3050         * check/gst/gstbin.c: (GST_START_TEST):
3051         * docs/gst/gstreamer-sections.txt:
3052         * gst/base/gstbasesink.c: (gst_base_sink_init):
3053         * gst/base/gstbasesrc.c: (gst_base_src_init),
3054         (gst_base_src_get_range), (gst_base_src_check_get_range),
3055         (gst_base_src_start), (gst_base_src_stop):
3056         * gst/base/gstbasesrc.h:
3057         * gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
3058         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
3059         (bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
3060         (bin_bus_handler):
3061         * gst/gstbin.h:
3062         * gst/gstbuffer.h:
3063         * gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
3064         * gst/gstbus.h:
3065         * gst/gstelement.c: (gst_element_is_locked_state),
3066         (gst_element_set_locked_state), (gst_element_commit_state),
3067         (gst_element_set_state):
3068         * gst/gstelement.h:
3069         * gst/gstindex.c: (gst_index_init):
3070         * gst/gstindex.h:
3071         * gst/gstminiobject.h:
3072         * gst/gstobject.c: (gst_object_init), (gst_object_sink),
3073         (gst_object_set_parent):
3074         * gst/gstobject.h:
3075         * gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
3076         (gst_pad_get_caps_unlocked), (gst_pad_set_caps):
3077         * gst/gstpad.h:
3078         * gst/gstpadtemplate.h:
3079         * gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
3080         (gst_pipeline_use_clock), (gst_pipeline_auto_clock):
3081         * gst/gstpipeline.h:
3082         * gst/indexers/gstfileindex.c: (gst_file_index_load),
3083         (gst_file_index_commit):
3084         * testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
3085         * testsuite/pad/link.c: (gst_test_src_init),
3086         (gst_test_filter_init), (gst_test_sink_init):
3087         * testsuite/states/locked.c: (main):
3088           renamed GST_FLAGS macros to GST_OBJECT_FLAGS
3089           moved bitshift from macro to enum definition
3090
3091 2005-10-12  Wim Taymans  <wim@fluendo.com>
3092
3093         * gst/base/gstbasesink.c: (gst_base_sink_handle_buffer):
3094         * gst/elements/gstfilesink.c: (gst_file_sink_event),
3095         (gst_file_sink_render):
3096         Some more debugging info.
3097
3098 2005-10-12  Wim Taymans  <wim@fluendo.com>
3099
3100         * docs/design/part-states.txt:
3101         * tools/gst-launch.c: (main):
3102         Some doc updates.
3103         Revert non-intentional change.
3104
3105 2005-10-12  Wim Taymans  <wim@fluendo.com>
3106
3107         * check/gst/gstbin.c: (GST_START_TEST):
3108         * check/gst/gstelement.c: (GST_START_TEST):
3109         * check/gst/gstevent.c: (GST_START_TEST), (test_event):
3110         * check/gst/gstghostpad.c: (GST_START_TEST):
3111         * check/gst/gstpipeline.c: (GST_START_TEST):
3112         * check/pipelines/simple_launch_lines.c: (run_pipeline):
3113         * check/states/sinks.c: (GST_START_TEST):
3114         * gst/elements/gsttypefindelement.c: (stop_typefinding):
3115         * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
3116         (gst_bin_remove_func), (gst_bin_get_state_func),
3117         (gst_bin_recalc_state), (gst_bin_change_state_func),
3118         (bin_bus_handler):
3119         * gst/gstelement.c: (gst_element_get_state_func),
3120         (gst_element_get_state), (gst_element_abort_state),
3121         (gst_element_commit_state), (gst_element_set_state),
3122         (gst_element_change_state), (gst_element_change_state_func):
3123         * gst/gstelement.h:
3124         * gst/gstpipeline.c: (gst_pipeline_class_init), (do_pipeline_seek),
3125         (gst_pipeline_provide_clock_func):
3126         * gst/gstutils.c: (gst_element_link_pads_filtered):
3127         * tools/gst-launch.c: (main):
3128         * tools/gst-typefind.c: (main):
3129         Use GstClockTime in _get_state() instead of GTimeVal.
3130         Remove old code in gstutils.c
3131
3132 2005-10-12  Andy Wingo  <wingo@pobox.com>
3133
3134         * gst/gstregistry.h (gst_registry_scan_paths): Not implemented, so
3135         removed.
3136
3137         * gst/gstpad.c (gst_pad_pause_task): Actually return FALSE if
3138         there is no task. Shouldn't affect any code, as nothing in our
3139         plugins checks this return value.
3140         (gst_pad_stop_task): Also take the stream lock if the pad has no
3141         task. Docs updated.
3142
3143 2005-10-12  Wim Taymans  <wim@fluendo.com>
3144
3145         * gst/gstpad.c: (pre_activate), (post_activate),
3146         (gst_pad_activate_pull), (gst_pad_activate_push):
3147         Cleanup activation code. Reset old state if
3148         activation failed.
3149
3150 2005-10-12  Wim Taymans  <wim@fluendo.com>
3151
3152         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3153         (gst_base_sink_change_state):
3154         No need to prerol after receiving EOS.
3155
3156         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
3157         * gst/elements/gstfakesrc.c: (gst_fake_src_event_handler):
3158         * gst/elements/gstidentity.c: (gst_identity_event):
3159         Print events more verbosely.
3160
3161 2005-10-12  Wim Taymans  <wim@fluendo.com>
3162
3163         * check/Makefile.am:
3164         * check/states/sinks.c: (GST_START_TEST), (gst_object_suite):
3165         * check/states/sinks2.c:
3166         Moved sinks2 testcode in sinks check.
3167
3168         * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
3169         (gst_bin_remove_func), (gst_bin_recalc_state),
3170         (gst_bin_change_state_func), (bin_bus_handler):
3171         Fix potential race condition when _get_state() iterated over an
3172         ASYNC element right before it posted a state completion.
3173
3174         * gst/gstclock.h:
3175         Do proper cast here.
3176
3177         * gst/gstevent.c: (gst_event_new_newsegment),
3178         (gst_event_parse_newsegment):
3179         A playback rate of 0.0 is not allowed.
3180
3181 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3182
3183         * win32/common/config.h:
3184         * win32/common/dirent.c: (_topendir), (_treaddir), (_tclosedir),
3185         (_trewinddir), (_ttelldir), (_tseekdir):
3186         * win32/common/dirent.h:
3187         * win32/common/gtchar.h:
3188         * win32/common/libgstbase.def:
3189         * win32/common/libgstreamer.def:
3190         * win32/vs6/grammar.dsp:
3191         * win32/vs6/gst_inspect.dsp:
3192         * win32/vs6/gst_launch.dsp:
3193         * win32/vs6/gstreamer.dsw:
3194         * win32/vs6/libgstbase.dsp:
3195         * win32/vs6/libgstelements.dsp:
3196         * win32/vs6/libgstreamer.dsp:
3197           Visual Studio 6 project files, and a new common directory.
3198           Phear.
3199
3200 2005-10-11  Wim Taymans  <wim@fluendo.com>
3201
3202         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3203         (gst_base_sink_do_sync), (gst_base_sink_query),
3204         (gst_base_sink_change_state):
3205         * gst/base/gstbasesink.h:
3206         Correctly parse newsegment info.
3207
3208 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3209
3210         * gst/gst.c: (init_post):
3211           split plugin paths correctly
3212
3213 2005-10-11  Wim Taymans  <wim@fluendo.com>
3214
3215         * check/gst/gstevent.c: (GST_START_TEST):
3216         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3217         (gst_base_sink_change_state):
3218         * gst/base/gstbasesrc.c: (gst_base_src_default_newsegment):
3219         * gst/base/gstbasetransform.c: (gst_base_transform_event):
3220         * gst/elements/gstfilesink.c: (gst_file_sink_event):
3221         * gst/gstevent.c: (gst_event_new_newsegment),
3222         (gst_event_parse_newsegment):
3223         * gst/gstevent.h:
3224         Added extra flag to newsegment for future API freeze.
3225         Updated check and base elements.
3226
3227 2005-10-11  Julien MOUTTE  <julien@moutte.net>
3228
3229         * gst/base/gstcollectpads.c: (gst_collectpads_init),
3230         (gst_collectpads_add_pad), (gst_collectpads_pop),
3231         (gst_collectpads_event), (gst_collectpads_chain):
3232         * gst/base/gstcollectpads.h: Handle EOS correctly.
3233
3234 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3235
3236         * tools/gst-launch.c: (main):
3237           more null protecting
3238
3239 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3240
3241         * gst/gst-i18n-lib.h:
3242           check for ENABLE_NLS, not GETTEXT_PACKAGE
3243         * gst/gstregistry.c: (gst_registry_add_plugin),
3244         (gst_registry_scan_path_level),
3245         (_gst_registry_remove_cache_plugins):
3246           protect possibly NULL strings
3247         * gst/parse/types.h:
3248           config.h already included before
3249         * tools/gst-inspect.c: (main):
3250           sys/wait.h also doesn�t exist on mingw, so change the ifdef check
3251           check for ENABLE_NLS, not GETTEXT_PACKAGE
3252         * tools/gst-launch.c: (main):
3253           check for ENABLE_NLS, not GETTEXT_PACKAGE
3254
3255 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3256
3257         * configure.ac:
3258           if we don't have glib, fail before testing 2.8
3259         * gst/base/gstbasetransform.c: (gst_base_transform_change_state):
3260           fix a leak, should fix plugins-base testsuite
3261
3262 2005-10-11  Andy Wingo  <wingo@pobox.com>
3263
3264         * gst/gstpad.c (pre_activate): Renamed from pre_activate_switch,
3265         take the mode we're going to as an arg. Go head and set the mode
3266         and flushing flags now, so that if the activate function starts a
3267         thread all the flags will be in the right state.
3268         (post_activate): Renamed also. Just handle making sure streaming
3269         finishes for the deactivation case, and setting the deactivated
3270         mode.
3271         (gst_pad_set_active): Complain loudly if deactivation fails.
3272         (gst_pad_activate_pull): Adapt to pre/post_activate changes.
3273         (gst_pad_activate_push): Adapt to pre/post_activate changes,
3274         remove the terrible hack.
3275
3276 2005-10-11  Wim Taymans  <wim@fluendo.com>
3277
3278         * gst/gstbin.c: (gst_bin_init), (gst_bin_provide_clock_func),
3279         (is_eos), (gst_bin_add_func), (gst_bin_remove_func),
3280         (gst_bin_recalc_state), (gst_bin_change_state_func),
3281         (gst_bin_dispose), (bin_bus_handler):
3282         * gst/gstbin.h:
3283         Prepare to make current EOS message queue more generic.
3284         Fix some typos.
3285
3286         * gst/gstevent.c: (gst_event_new_newsegment),
3287         (gst_event_parse_newsegment):
3288         * gst/gstevent.h:
3289         Rename base to stream_time.
3290
3291         * gst/gstmessage.h:
3292         Fix typo in docs.
3293
3294 2005-10-11  Wim Taymans  <wim@fluendo.com>
3295
3296         * gst/gstbin.c: (gst_bin_init), (gst_bin_provide_clock_func),
3297         (gst_bin_add_func), (gst_bin_remove_func), (gst_bin_recalc_state),
3298         (gst_bin_change_state_func), (bin_bus_handler):
3299         * gst/gstbin.h:
3300         Work on proper clock selection.
3301
3302 2005-10-11  Edward Hervey  <edward@fluendo.com>
3303
3304         * libs/gst/controller/gstcontroller.c: (gst_controller_remove_properties_list): 
3305         * libs/gst/controller/gstcontroller.h:
3306         Added GList* version of _remove_properties() in order to be able to wrap
3307         it in bindings.
3308
3309 2005-10-11  Wim Taymans  <wim@fluendo.com>
3310
3311         * docs/design/part-states.txt:
3312         Some more docs.
3313
3314         * gst/gstbin.c: (gst_bin_set_clock_func), (gst_bin_recalc_state),
3315         (gst_bin_change_state_func), (bin_bus_handler):
3316         Doc updates. Don't distribute the same clock over and over again.
3317
3318         * gst/gstclock.c:
3319         * gst/gstclock.h:
3320         Doc updates.
3321
3322         * gst/gstpad.c: (gst_flow_get_name), (gst_flow_to_quark),
3323         (gst_pad_get_type), (gst_pad_push), (gst_pad_push_event),
3324         (gst_pad_send_event):
3325         * gst/gstpad.h:
3326         Make probe emission threadsafe again.
3327         Register quarks and move _get_name() from utils.
3328         Doc updates.
3329
3330         * gst/gstpipeline.c: (gst_pipeline_class_init),
3331         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func):
3332         Only redistribute the clock of it changed.
3333
3334         * gst/gstsystemclock.h:
3335         Doc updates. 
3336
3337         * gst/gstutils.c:
3338         * gst/gstutils.h:
3339         Moved the _flow_get_name() to GstPad.
3340
3341 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3342
3343         * check/gst-libs/gdp.c: (GST_START_TEST):
3344         * check/gst/gstcaps.c: (GST_START_TEST):
3345         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc),
3346         (gst_dp_dump_byte_array), (gst_dp_header_from_buffer),
3347         (gst_dp_packet_from_caps):
3348           fix more valgrind warnings before turning up the heat
3349
3350 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
3351
3352         * gst/parse/grammar.y:
3353           some cleanup before the hacking
3354
3355 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
3356
3357         * gst/base/gstbasesrc.c: (gst_base_src_query):
3358           use conversions
3359         * gst/gstutils.c: (gst_guint64_to_gdouble),
3360         (gst_gdouble_to_guint64), (gst_util_uint64_scale):
3361         * gst/gstutils.h:
3362           externalize, basesrc uses it
3363           obviously the implementation needs testing
3364
3365 2005-10-10  Wim Taymans  <wim@fluendo.com>
3366
3367         * tests/sched/Makefile.am:
3368         * tests/sched/sort.c: (make_pipeline1), (make_pipeline2),
3369         (make_pipeline3), (make_pipeline4), (print_elem), (main):
3370
3371 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
3372
3373         * gst/gstutils.c: (guint64_to_gdouble), (gst_util_uint64_scale):
3374           apparently converting from guint64 to double is not implemented
3375           on MSVC
3376
3377 2005-10-10  Wim Taymans  <wim@fluendo.com>
3378
3379         * check/Makefile.am:
3380         * check/generic/states.c: (GST_START_TEST):
3381         * check/gst/gstbin.c: (GST_START_TEST):
3382         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
3383         * check/states/sinks.c: (GST_START_TEST):
3384         * check/states/sinks2.c: (GST_START_TEST), (gst_object_suite),
3385         (main):
3386         Check fixes, use API as stated in design docs, remove hacks.
3387
3388         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3389         (gst_base_sink_change_state):
3390         Catch stopping our task while we're shutting down.
3391
3392         * gst/gstbin.c: (gst_bin_init), (gst_bin_add_func),
3393         (gst_bin_remove_func), (gst_bin_get_state_func),
3394         (gst_bin_recalc_state), (gst_bin_change_state_func),
3395         (bin_bus_handler):
3396         * gst/gstbin.h:
3397         * gst/gstelement.c: (gst_element_init),
3398         (gst_element_get_state_func), (gst_element_abort_state),
3399         (gst_element_commit_state), (gst_element_lost_state),
3400         (gst_element_set_state), (gst_element_change_state),
3401         (gst_element_change_state_func):
3402         * gst/gstelement.h:
3403         New state change algorithm (see #318116)
3404
3405         * gst/gstpipeline.c: (gst_pipeline_class_init),
3406         (gst_pipeline_init), (gst_pipeline_set_property),
3407         (gst_pipeline_get_property), (do_pipeline_seek),
3408         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func):
3409         * gst/gstpipeline.h:
3410         Remove crude state change hacks.
3411
3412         * gst/gstutils.h:
3413         Remove crude hacks.
3414
3415         * tools/gst-launch.c: (main):
3416         Fixes for state change. Needs some more work to fully use the
3417         new stuff.
3418
3419 2005-10-10  Andy Wingo  <wingo@pobox.com>
3420
3421         * tests/Makefile.am (noinst_PROGRAMS): No more init.c.
3422
3423         * gst/gst.c (G_OPTION_FLAG_NO_ARG): Apparently GLib 2.8 requires
3424         this flag, but it's not even in GLib 2.6. Odd. Hack around the
3425         issue.
3426
3427 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
3428
3429         * gst/gstiterator.c: (gst_iterator_new):
3430           Fix my previous commit: GTypes passed to gst_iterator_new()
3431           can be fundamental types.
3432
3433 2005-10-10  Wim Taymans  <wim@fluendo.com>
3434
3435         * gst/gstelement.c: (gst_element_iterate_pad_list),
3436         (gst_element_iterate_pads), (gst_element_iterate_src_pads),
3437         (gst_element_iterate_sink_pads):
3438         Use src/sink pads lists for the respective iterators instead
3439         of filtering.
3440
3441 2005-10-10  Andy Wingo  <wingo@pobox.com>
3442
3443         Merged in popt removal + GOption addition patch from Ronald, bug
3444         #169772.
3445
3446         * docs/gst/gstreamer-sections.txt: Add STATE_(UN)LOCK_FULL, move
3447         GstElement macros around, remove popt-related symbols, add goption
3448         stuff.
3449
3450         * configure.ac: Remove popt checks, require GLib 2.6 for GOption.
3451         
3452         * docs/gst/Makefile.am:
3453         * docs/libs/Makefile.am: No POPT_CFLAGS.
3454         
3455         * examples/manual/Makefile.am:
3456         * docs/manual/basics-init.xml: Doc updates with an example.
3457         
3458         * gst/gst.c: (gst_init_get_option_group), (gst_init_check),
3459         (gst_init), (parse_one_option), (parse_goption_arg):
3460         * gst/gst.h: Removed gst_init_with_popt_table and friends. Took a
3461         bit of hand merging and debugging to get the GOption stuff working
3462         tho.
3463         
3464         * tests/Makefile.am:
3465         * tools/Makefile.am:
3466         * tools/gst-inspect.c: (main):
3467         * tools/gst-launch.c: (main):
3468         * tools/gst-run.c: (main):
3469         * tools/gst-xmlinspect.c: (main): Thanks Ronald!
3470
3471 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
3472
3473         * gst/gstiterator.c: (gst_iterator_new):
3474           Add assertions to make sure passed GType is likely to really
3475           be a GType (as the compiler won't catch it if the size and
3476           GType arguments get mixed up, see #318447).
3477
3478 2005-10-10  Josef Zlomek  <josef dot zlomek at xeris dot cz>
3479
3480         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
3481
3482         * gst/gstbin.c: (gst_bin_iterate_sorted):
3483           Pass GType and size arguments to gst_iterator_new() in the right
3484           order (maybe we should make _new() take the GType as first argument
3485           just like _new_list()?) (#318447).
3486           
3487
3488 2005-10-10  Wim Taymans  <wim@fluendo.com>
3489
3490         * gst/gstelement.c: (gst_element_finalize):
3491         And free the GStaticRecMutex too
3492
3493 2005-10-10  Andy Wingo  <wingo@pobox.com>
3494
3495         * gst/gstelement.c (gst_element_init, gst_element_finalize):
3496         Allocate and free the mutex properly.
3497
3498         * gst/gstelement.h (GST_STATE_UNLOCK_FULL, GST_STATE_LOCK_FULL):
3499         New macros.
3500         (GstElement): The state_lock is now recursive. Rebuild your
3501         plugins, suckers. Old macros adapted.
3502
3503         * docs/gst/gstreamer-sections.txt: Doc updates.
3504
3505         * gst/gstutils.h:
3506         * gst/gstutils.c (g_static_rec_cond_timed_wait) 
3507         (g_static_rec_cond_wait): Ported from state changes patch, while
3508         we wait on bug #317802 to be solved in a well-distributed GLib.
3509
3510         * gst/gstelement.c (gst_element_change_state_func): Renamed from
3511         gst_element_change_state, variable name changes.
3512         (gst_element_change_state): Split out of gst_element_set_state in
3513         preparation for the state change merge. Doesn't pay attention to
3514         the 'transition' argument.
3515         (gst_element_set_state): Updates, hopefully purely cosmetic.
3516         (gst_element_sync_state_with_parent): MT-safety. Ported from the
3517         state change patch.
3518         (gst_element_get_state_func): Renamed from get_state, cosmetic
3519         changes.
3520
3521 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
3522
3523         * gst/elements/gstelements.c:
3524         * win32/GStreamer.vcproj:
3525         * win32/config.h:
3526         * win32/dirent.c: (_tseekdir):
3527         * win32/gst-inspect.vcproj:
3528         * win32/gst-launch.vcproj:
3529         * win32/gstconfig.h:
3530         * win32/gstelements.vcproj:
3531         * win32/gstenumtypes.c: (gst_object_flags_get_type):
3532         * win32/gstreamer.def:
3533         * win32/msvc71.sln:
3534           updates for the win32 build (patch from Sebastien Moutte)
3535
3536 2005-10-10  Andy Wingo  <wingo@pobox.com>
3537
3538         * gst/gstbin.c (gst_bin_get_state_func): Renamed from
3539         gst_bin_get_state, cleaned up (but no logic changes).
3540         (bin_element_is_sink): Comment updates.
3541         (sink_iterator_filter): Remove needless cast.
3542         (gst_bin_iterate_sinks): Doc update.
3543         (gst_bin_change_state_func): Renamed from gst_bin_change_state,
3544         cleaned up (but no logic changes).
3545
3546         * check/states/sinks.c (test_src_sink): Cleanups from the state
3547         change patch.
3548         (test_livesrc_sink): Sync on the state.
3549
3550         * check/pipelines/simple_launch_lines.c (run_pipeline): Merge from
3551         the state change patch.
3552
3553         * check/gst/gstghostpad.c (test_ghost_pads): Merge from the state
3554         change patch.
3555
3556         * check/gst/gstbin.c: Merge in some style fixes and additional
3557         checks from Wim's state change patch.
3558
3559 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
3560
3561         * gst/base/gsttypefindhelper.c: (helper_find_peek),
3562         (gst_type_find_helper):
3563           Check whether we have the requested data already in our list of
3564           cached buffers before pulling a new buffer; also make the buffer
3565           list a GSList. Speeds up typefinding by ca. 5-10% altogether.
3566
3567 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
3568
3569         * gst/gstcaps.c:
3570         * gst/gstevent.c:
3571           doc updates
3572         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
3573           don't use long long, it's not portable.  Replacing with
3574           gint64 seems to work; let's hope no skeletons fall out of the closet.
3575
3576 2005-10-10  Andy Wingo  <wingo@pobox.com>
3577
3578         * autogen.sh (CONFIGURE_DEF_OPT): No more --plugin-buiddir, yay
3579
3580 2005-10-09  Stefan Kost  <ensonic@users.sf.net>
3581
3582         * docs/gst/gstreamer-sections.txt:
3583         * gst/gstevent.c:
3584         * gst/gstevent.h:
3585         * gst/gstinfo.c:
3586         * gst/gstinfo.h:
3587         * gst/gstmessage.c: (gst_message_parse_state_changed):
3588         * gst/gstpad.c:
3589         * gst/gstpad.h:
3590           more docs, fix compilation
3591
3592 2005-10-09  Philippe Khalaf <burger@speedy.org>
3593         * gst/gstmessage.c:
3594           Fixed a few forgotten variables on previous commit
3595
3596 2005-10-09  Tim-Philipp Müller  <tim at centricular dot net>
3597
3598         * gst/base/gsttypefindhelper.c: (helper_find_peek):
3599           Fix evil typefind crasher: getrange() might return a short
3600           buffer at the end of a file, but gst_type_find_peek() must
3601           either return the full data as requested or NULL, but
3602           never a short buffer.
3603
3604 2005-10-09  Thomas Vander Stichele  <thomas at apestaart dot org>
3605
3606         * gst/gstmessage.c: (gst_message_new_state_changed),
3607         (gst_message_parse_state_changed):
3608         * gst/gstmessage.h:
3609           don't use "new", it's a C++ keyword
3610
3611 2005-10-08  Wim Taymans  <wim@fluendo.com>
3612
3613         * gst/gstbin.c: (is_eos), (update_degree), (gst_bin_query):
3614         * gst/gstelement.c: (gst_element_post_message):
3615         * gst/gstpipeline.c: (gst_pipeline_change_state):
3616         Small docs and debug updates.
3617
3618 2005-10-08  Stefan Kost  <ensonic@users.sf.net>
3619
3620         * docs/gst/gstreamer-sections.txt:
3621         * gst/gstelementfactory.c:
3622         * gst/gstevent.c:
3623         * gst/gsttaglist.c:
3624           more docs
3625
3626 2005-10-08  Wim Taymans  <wim@fluendo.com>
3627
3628         * gst/gstbin.c: (is_eos), (update_degree), (gst_bin_change_state),
3629         (gst_bin_dispose), (bin_bus_handler):
3630         Fix typos, add comments.
3631         Clear EOS list when going to PAUSED from any direction and do it
3632         in a threadsafe way.
3633         Get base time in a threadsafe way too.
3634         Fix confusing debug in the change_state function.
3635         Various other small cleanups.
3636         
3637         * gst/gstelement.c: (gst_element_post_message):
3638         Fix very verbose bus posting code.
3639
3640         * gst/gstpipeline.c: (gst_pipeline_class_init),
3641         (gst_pipeline_set_property), (gst_pipeline_get_property),
3642         (gst_pipeline_change_state):
3643         Small ARG_ -> PROP_ cleanup
3644
3645 2005-10-08  Wim Taymans  <wim@fluendo.com>
3646
3647         * gst/gstbin.c: (is_eos), (bin_bus_handler):
3648         Do a less CPU demanding EOS check because we can.
3649
3650 2005-10-08  Wim Taymans  <wim@fluendo.com>
3651
3652         * libs/gst/dataprotocol/dataprotocol.c:
3653         (gst_dp_header_from_buffer), (gst_dp_packet_from_caps),
3654         (gst_dp_packet_from_event):
3655         * libs/gst/dataprotocol/dataprotocol.h:
3656         * libs/gst/dataprotocol/dp-private.h:
3657         It's about time we bump the version number.
3658         Since event types don't fit in the guint8 anymore describing
3659         the payload type, make payload type 16 bits wide.
3660
3661 2005-10-08  Wim Taymans  <wim@fluendo.com>
3662
3663         * docs/design/part-TODO.txt:
3664         * docs/design/part-clocks.txt:
3665         * docs/design/part-events.txt:
3666         * docs/design/part-gstbin.txt:
3667         * docs/design/part-gstelement.txt:
3668         * docs/design/part-gstpipeline.txt:
3669         * docs/design/part-live-source.txt:
3670         * docs/design/part-messages.txt:
3671         * docs/design/part-overview.txt:
3672         * docs/design/part-states.txt:
3673         Many doc updates.
3674
3675 2005-10-08  Wim Taymans  <wim@fluendo.com>
3676
3677         * gst/gstevent.c:
3678         * gst/gstevent.h:
3679         Fix event quark registration.
3680         Add some space between events so we can insert them in the
3681         right groups.
3682
3683 2005-10-08  Wim Taymans  <wim@fluendo.com>
3684
3685         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3686         (gst_base_sink_handle_buffer):
3687         Better log message.
3688
3689         * gst/gstbus.h:
3690         * gst/gstelement.h:
3691         More docs.
3692
3693         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_init),
3694         (gst_queue_set_property), (gst_queue_get_property):
3695         * gst/gstqueue.h:
3696         Remove old unused properties.
3697
3698 2005-10-08  Stefan Kost  <ensonic@users.sf.net>
3699         * docs/gst/gstreamer-sections.txt:
3700         * gst/gstmessage.c:
3701         * gst/gstmessage.h:
3702         * gst/gstminiobject.c:
3703         * gst/gstminiobject.h:
3704         * gst/gstobject.h:
3705         * gst/gstpad.h:
3706         * gst/gstutils.h:
3707           lots of new docs and doc fixes
3708
3709 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
3710
3711         * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_load_file):
3712         * gst/gstplugin.h:
3713         * gst/gstregistry.c: (gst_registry_lookup_locked),
3714         (gst_registry_scan_path_level):
3715         * gst/gstregistryxml.c: (load_plugin):
3716           Only ever load one plugin for a given plugin basename.
3717           This ensures correct overriding of GST_PLUGIN_PATH over
3718           GST_PLUGIN_SYSTEM_PATH and of home dir plugins over
3719           system installed plugins.
3720
3721 2005-10-08  Wim Taymans  <wim@fluendo.com>
3722
3723         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3724         (gst_base_sink_do_sync), (gst_base_sink_handle_buffer):
3725         Prepare for doing QOS.
3726
3727 2005-10-08  Wim Taymans  <wim@fluendo.com>
3728
3729         * check/gst/gstbin.c: (GST_START_TEST):
3730         * check/pipelines/cleanup.c: (GST_START_TEST):
3731         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
3732         Allow new clock message too.
3733
3734 2005-10-08  Wim Taymans  <wim@fluendo.com>
3735
3736         * gst/gstmessage.c: (gst_message_new_error),
3737         (gst_message_new_warning), (gst_message_new_tag),
3738         (gst_message_new_state_changed), (gst_message_new_clock_provide),
3739         (gst_message_new_clock_lost), (gst_message_new_new_clock),
3740         (gst_message_new_segment_start), (gst_message_new_segment_done),
3741         (gst_message_parse_state_changed),
3742         (gst_message_parse_clock_provide), (gst_message_parse_clock_lost),
3743         (gst_message_parse_new_clock):
3744         * gst/gstmessage.h:
3745         Also carry the clock in question.
3746
3747 2005-10-08  Wim Taymans  <wim@fluendo.com>
3748
3749         * gst/gstmessage.c: (gst_message_new_custom),
3750         (gst_message_new_eos), (gst_message_new_error),
3751         (gst_message_new_warning), (gst_message_new_tag),
3752         (gst_message_new_state_changed), (gst_message_new_clock_provide),
3753         (gst_message_new_new_clock), (gst_message_new_segment_start),
3754         (gst_message_new_segment_done), (gst_message_parse_state_changed),
3755         (gst_message_parse_clock_provide), (gst_message_parse_new_clock):
3756         * gst/gstmessage.h:
3757         Clean up.
3758         Added clock related messages.
3759
3760         * gst/gstpipeline.c: (gst_pipeline_change_state):
3761         Post message when the clock changed.
3762
3763         * tools/gst-launch.c: (event_loop):
3764         Print new clock.
3765
3766 2005-10-08  Tim-Philipp Müller  <tim at centricular dot net>
3767
3768         * tools/gst-inspect.c: (print_element_properties_info):
3769           Can't pass NULL strings to g_print() on windows.
3770
3771 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
3772
3773         * docs/Makefile.am:
3774         * docs/gst/Makefile.am:
3775         * docs/gst/gstreamer-docs.sgml:
3776         * docs/gst/running.xml:
3777         * docs/version.entities.in:
3778           add a chapter on running GStreamer.
3779           document GST_DEBUG and GST_PLUGIN* env vars
3780
3781 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
3782
3783         * Makefile.am:
3784           remove include dir
3785         * configure.ac:
3786           remove PLUGINS_BUILDDIR stuff
3787         * gst/gst.c: (init_post):
3788           reorder parsing of GST_PLUGIN_PATH and GST_PLUGIN_SYSTEM_PATH
3789         * idiottest.mak:
3790           remove, it was condescending and not needed
3791
3792 2005-10-08  Wim Taymans  <wim@fluendo.com>
3793
3794         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_flush),
3795         (gst_base_sink_handle_object), (gst_base_sink_event),
3796         (gst_base_sink_wait), (gst_base_sink_handle_event),
3797         (gst_base_sink_change_state):
3798         * gst/base/gstbasesink.h:
3799         Repost EOS message while going to PLAYING if still EOS.
3800         Make sure that when receiving a FLUSH_START we don't attempt
3801         to sync on the clock anymore.
3802
3803 2005-10-08  Wim Taymans  <wim@fluendo.com>
3804
3805         * tools/gst-launch.c: (event_loop):
3806         Better message printout.
3807
3808 2005-10-08  Wim Taymans  <wim@fluendo.com>
3809
3810         * gst/gstbin.c: (gst_bin_child_proxy_get_child_by_index),
3811         (gst_bin_child_proxy_get_children_count):
3812         * gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
3813         (gst_child_proxy_lookup), (gst_child_proxy_get_property),
3814         (gst_child_proxy_get_valist), (gst_child_proxy_set_property),
3815         (gst_child_proxy_set_valist):
3816         * gst/parse/grammar.y:
3817         Make ChildProxy threadsafe and fix mem leaks.
3818
3819 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
3820
3821         * gst/gst.c: (init_post):
3822           debug the GST_PLUGIN_ env vars
3823
3824 2005-10-08  Wim Taymans  <wim@fluendo.com>
3825
3826         * check/gst/gstbin.c: (GST_START_TEST):
3827         * check/gst/gstmessage.c: (GST_START_TEST):
3828         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
3829         * gst/gstelement.c: (gst_element_commit_state),
3830         (gst_element_lost_state):
3831         * gst/gstmessage.c: (gst_message_new_state_changed),
3832         (gst_message_parse_state_changed):
3833         * gst/gstmessage.h:
3834         * tools/gst-launch.c: (event_loop):
3835         Added extra field to STATE_CHANGE message with the pending
3836         state, which will be different from the new state soon.
3837
3838 2005-10-08  Wim Taymans  <wim@fluendo.com>
3839
3840         * gst/gstbus.c: (gst_bus_pop):
3841         * gst/gstclock.c:
3842         * gst/gstsystemclock.c: (gst_system_clock_async_thread):
3843         Small cleanups and doc updates.
3844
3845 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
3846
3847         * gst/gst.c: (init_pre):
3848         * gst/gstbin.c: (gst_bin_add_func):
3849           log distributing clocks and base time
3850         * gst/gstregistry.c: (gst_registry_add_plugin),
3851         (gst_registry_scan_path_level), (gst_registry_scan_path):
3852           clean up the debugging output a little
3853         * gst/gstutils.c: (gst_element_state_get_name):
3854           warn about a memleak (I've actually seen this be used, though
3855           it was probably a bug)
3856
3857 2005-10-07  Wim Taymans  <wim@fluendo.com>
3858
3859         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
3860         (gst_base_src_init), (gst_base_src_default_newsegment),
3861         (gst_base_src_newsegment), (gst_base_src_do_seek),
3862         (gst_base_src_loop), (gst_base_src_start):
3863         * gst/base/gstbasesrc.h:
3864         Make the newsegment event customizable by subclasses.
3865
3866 2005-10-07  Wim Taymans  <wim@fluendo.com>
3867
3868         * gst/gstevent.c: (gst_event_new_buffersize),
3869         (gst_event_parse_buffersize):
3870         * gst/gstevent.h:
3871         New event for future idea.
3872
3873 2005-10-07  Andy Wingo  <wingo@pobox.com>
3874
3875         * gst/gstelement.c (gst_element_post_message): Doc update.
3876
3877         * docs/gst/gstreamer-sections.txt: Update.
3878
3879         * gst/gstmessage.c (gst_message_new_application): Made into a
3880         function like honest API calls.
3881         (gst_message_new_element): New message type.
3882
3883         * gst/gstmessage.h (enum): Add GST_MESSAGE_ELEMENT type.
3884
3885         * check/elements/fakesrc.c (test_no_preroll): New check, checks
3886         that setting a live fakesrc to PAUSED returns NO_PREROLL both
3887         times.
3888
3889         * gst/base/gstbasesrc.c (gst_base_src_change_state): Allow a
3890         NO_PREROLL from gst_element_change_state to fall through.
3891
3892 2005-10-07  Wim Taymans  <wim@fluendo.com>
3893
3894         * gst/gstghostpad.c: (gst_ghost_pad_get_internal),
3895         (gst_ghost_pad_do_activate_push):
3896         Activating a ghostpad with no internal pad in push mode
3897         is ok.
3898
3899 2005-10-07  Thomas Vander Stichele  <thomas at apestaart dot org>
3900
3901         * gst/gstobject.h:
3902           there's no point in wrapping FLAG_SET/_UNSET in STMT macros.
3903           Fixes compilation on Windows.
3904
3905 2005-10-07  Michael Smith <msmith@fluendo.com>
3906
3907         * tools/gst-inspect.c:
3908           Print out feature and plugin count at the end when printing out
3909           all features.
3910
3911 2005-10-04  Michael Smith <msmith@fluendo.com>
3912
3913         * gst/gsterror.c: (_gst_stream_errors_init):
3914           Add another error string used in a few existing plugins.
3915
3916         * gst/gstplugin.c:
3917         * gst/gstpluginfeature.c: (gst_plugin_feature_load):
3918         * tools/gst-inspect.c: (print_element_info):
3919           When a feature disappears from a plugin (and the feature exists in
3920           the cached registry file), things went horribly wrong. This isn't a
3921           complete fix, we should actually be removing the 'missing' features
3922           from the features list when we load the actual plugin. That's not
3923           yet implemented. 
3924
3925 2005-10-04  Johan Dahlin  <johan@gnome.org>
3926
3927         * check/gst/gstiterator.c: (GST_START_TEST):
3928         * gst/gstbin.c: (gst_bin_iterate_elements),
3929         (gst_bin_iterate_recurse), (gst_bin_iterate_sorted):
3930         * gst/gstelement.c: (gst_element_iterate_pads):
3931         * gst/gstformat.c: (gst_format_iterate_definitions):
3932         * gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
3933         (gst_iterator_new_list), (gst_iterator_filter):
3934         * gst/gstiterator.h:
3935         * gst/gstquery.c: (gst_query_type_iterate_definitions):
3936         Add a GType to GstIterator, update callsites and tests.
3937
3938 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
3939
3940         * gst/gstpad.c: (gst_pad_event_default_dispatch):
3941           give events a chance to be handled by event probes when the pad
3942           is not linked
3943
3944 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
3945
3946         * gst/gstevent.c: (gst_event_type_get_name),
3947         (gst_event_type_to_quark), (gst_event_finalize), (gst_event_new):
3948         * gst/gstevent.h:
3949           add string representations for event types
3950
3951 2005-10-06  Wim Taymans  <wim@fluendo.com>
3952
3953         * gst/elements/gstfilesink.c: (gst_file_sink_close_file):
3954         Don't use NULL pointers.
3955
3956 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
3957
3958         * gst/gst_private.h:
3959         * gst/gstbus.c:
3960         * gst/gstelement.c:
3961         * gst/gstinfo.c:
3962         * gst/gstpluginfeature.c:
3963           widen the debug category in output to fit the biggest one we have
3964           add a bus category and use it
3965           play with the colors
3966           fix up some categories
3967
3968 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
3969
3970         * gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
3971           add push activation of sink ghost pads.
3972           Andye, please verify
3973
3974 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
3975
3976         * gst/gstutils.c: (gst_element_link_pads):
3977           fix a bug in the case where neither element has a pad
3978         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
3979           add a test for that case
3980
3981 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
3982
3983         * gst/gstpad.c: (gst_pad_push), (gst_pad_push_event):
3984           emit have-data before checking for peers.  This allows
3985           for probe handlers to connect elements.  This helps autopluggers.
3986         * check/gst/gstpad.c: (GST_START_TEST), (_probe_handler),
3987         (gst_pad_suite):
3988           add six checks, linked/unlinked with no/true/false probe
3989
3990 2005-10-04  Wim Taymans  <wim@fluendo.com>
3991
3992         * gst/elements/gstfakesink.c: (gst_fake_sink_get_property),
3993         (gst_fake_sink_event), (gst_fake_sink_preroll),
3994         (gst_fake_sink_render), (gst_fake_sink_change_state):
3995         * gst/elements/gstfakesrc.c: (gst_fake_src_event_handler),
3996         (gst_fake_src_get_property), (gst_fake_src_create),
3997         (gst_fake_src_stop):
3998         * gst/elements/gstidentity.c: (gst_identity_stop):
3999         Protect last_message with lock.
4000
4001 2005-10-04  Edward Hervey  <edward@fluendo.com>
4002
4003         * gst/gstformat.h: 
4004         Added precision in the comments for GST_FORMAT_DEFAULT
4005
4006 2005-10-04  Tim-Philipp Müller  <tim at centricular dot net>
4007
4008         * tools/gst-launch.c: (main):
4009           Don't try to run erroneous pipelines.
4010
4011 2005-10-04  Julien MOUTTE  <julien@moutte.net>
4012
4013         * gst/gstbus.c: We don't need this header.
4014
4015 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
4016
4017         * configure.ac:
4018           back to development
4019
4020 === release 0.9.3 ===
4021
4022 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
4023
4024         * README:
4025         * configure.ac:
4026           Releasing 0.9.3, "Unregistered"
4027
4028 2005-10-03  Andy Wingo  <wingo@pobox.com>
4029
4030         * gst/gstpad.c (gst_pad_activate_push): There is a race condition
4031         whereby calling a pad's activatepush() function can start a thread
4032         that starts to push or pull before the pad gets the FLUSHING flag
4033         unset. Hack around it by holding the stream lock until the flag is
4034         set. Need to replace this with a proper solution. Together with
4035         the ghost pad fixes, this fixes mp3 playing/tagreading.
4036
4037         * docs/design/part-gstghostpad.txt: Add a note about activation of
4038         proxy pads outside of ghost pads.
4039
4040         * gst/gstghostpad.c: Implement the ghost pad activation design.
4041
4042 2005-10-02  Andy Wingo  <wingo@pobox.com>
4043
4044         * gst/gstobject.h (GST_OBJECT_REFCOUNT_VALUE): Just use the int.
4045         It is volatile, after all.
4046
4047         * docs/design/part-gstghostpad.txt: Flesh out activation with
4048         ghost pads.
4049
4050         * gst/base/gstbasesrc.c (gst_base_src_init): Use
4051         GST_DEBUG_FUNCPTR.
4052
4053 2005-10-02  Tim-Philipp Müller  <tim at centricular dot net>
4054
4055         * configure.ac:
4056           Fix (unused) AM_CONDITIONAL tests.
4057
4058 2005-10-01  Alessandro Decina  <alessandro at nnva dot org>
4059
4060         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
4061
4062         * gst/gstutils.c: (gst_pad_query_convert):
4063           Add assertion that makes sure src_val is >=0, just like
4064           gst_query_new_convert() has. (#315895)
4065
4066 2005-09-30  Edward Hervey  <edward@fluendo.com>
4067
4068         * gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer):
4069         Let's not iterate pads we're not interested in, it avoids getting 
4070         sky-high refcounts on sinkpad.
4071
4072 2005-09-30  Wim Taymans  <wim@fluendo.com>
4073
4074         * gst/gstelement.c: (gst_element_set_state),
4075         (gst_element_change_state):
4076         Small tweak, element in ASYNC remains ASYNC.
4077
4078 2005-09-30  Wim Taymans  <wim@fluendo.com>
4079
4080         * gst/base/gstbasesink.c: (gst_base_sink_change_state):
4081         Only error is an error.
4082
4083         * gst/gstbin.c: (gst_bin_change_state):
4084         Better debugging.
4085
4086         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_chain):
4087         Also call pad_block in pad alloc.
4088
4089         * gst/gstutils.c: (gst_flow_get_name):
4090         Better debugging.
4091
4092 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
4093
4094         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
4095         (gst_base_src_get_range):
4096           Fix documentation typos. Add some more debug info.
4097
4098 2005-09-29  David Schleef  <ds@schleef.org>
4099
4100         * gst/gstplugin.c: (gst_plugin_load_file): Make some error messages
4101           more end-user friendly.
4102         * tools/gst-inspect.c: (main): Check if command-line argument is
4103           a file and attempt to load that file as a plugin.
4104
4105 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
4106
4107         * check/gst/gstbin.c:
4108         * check/states/sinks.c:
4109           fix tests for the new warning
4110         * check/gst/gstpipeline.c:
4111           add a test for pipeline and bus interaction
4112         * gst/gstelement.c:
4113           elements should be NULL if they get disposed; add a warning if not
4114
4115 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
4116
4117         * gst/gstobject.c:
4118           for 2.6 refcounting, make debug log more correct by printing
4119           the actual refcounts at the time of swap (Wim)
4120
4121 2005-09-29  Andy Wingo  <wingo@pobox.com>
4122
4123         * gst/gstbus.c (gst_bus_remove_signal_watch): New function,
4124         removes signal watches previously added via
4125         gst_bus_add_signal_watch.
4126         (gst_bus_add_signal_watch): Don't return the source id, just store
4127         it on the bus if there wasn't an id already.
4128
4129         * gst/gstbus.h (GstBus): Add a couple new fields. API changes for
4130         add_signal_watch and remove_signal_watch.
4131
4132 2005-09-29  Edward Hervey  <edward@fluendo.com>
4133
4134         * libs/gst/controller/gstcontroller.c: (gst_controller_new_list): 
4135         Better if we actually iterate the list :)
4136
4137 2005-09-29  Wim Taymans  <wim@fluendo.com>
4138
4139         * check/gst/gstbin.c: (GST_START_TEST):
4140         Change for new bus API.
4141
4142         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
4143         (send_messages), (GST_START_TEST), (gstbus_suite):
4144         Change for new bus signal API.
4145
4146         * gst/gstbus.c: (gst_bus_class_init), (gst_bus_have_pending),
4147         (gst_bus_source_prepare), (gst_bus_source_check),
4148         (gst_bus_create_watch), (gst_bus_add_watch_full),
4149         (gst_bus_add_watch), (gst_bus_poll), (gst_bus_async_signal_func),
4150         (gst_bus_sync_signal_handler), (gst_bus_add_signal_watch):
4151         * gst/gstbus.h:
4152         Remove support for multiple GSources operating on different
4153         message types as it is too complex and unneeded when using
4154         signals.
4155         Added support for receiving signals from the bus.
4156
4157 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
4158
4159         * docs/libs/tmpl/gstdataprotocol.sgml:
4160         * docs/manual/advanced-dataaccess.xml:
4161         * gst/elements/gstcapsfilter.c:
4162         * gst/gstutils.c:
4163           rename filter-caps to caps property
4164
4165 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
4166
4167         * gst/gstvalue.c: (gst_value_deserialize_fraction):
4168           More robust fraction string parsing.
4169
4170         * docs/pwg/appendix-porting.xml:
4171           Mention gst_pad_use_explicit_caps() => gst_pad_use_fixed_caps()
4172
4173 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
4174
4175         * gst/gstcaps.c: (gst_caps_do_simplify):
4176           Thou shalt not free a structure and then continue using it
4177           in the next loop iteration.
4178
4179         * check/gst/gstcaps.c: (check_fourcc_list), (test_simplify),
4180         (gst_caps_suite):
4181           Add test case for caps simplification.
4182
4183 2005-09-29  Wim Taymans  <wim@fluendo.com>
4184
4185         * check/gst/gstbin.c: (GST_START_TEST):
4186         Oops.
4187
4188 2005-09-29  Wim Taymans  <wim@fluendo.com>
4189
4190         * check/gst/gstbin.c: (GST_START_TEST):
4191         Add bus to bin.
4192
4193         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init),
4194         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
4195         (find_element), (gst_bin_sort_iterator_next),
4196         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
4197         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
4198         (gst_bin_change_state), (gst_bin_dispose):
4199         A bin does not have a bus, it gets the bus from the parent.
4200
4201         * gst/gstelement.c: (gst_element_requires_clock),
4202         (gst_element_provides_clock), (gst_element_is_indexable),
4203         (gst_element_is_locked_state), (gst_element_change_state),
4204         (gst_element_set_bus_func):
4205         Small cleanups.
4206
4207         * gst/gstpipeline.c: (gst_pipeline_class_init),
4208         (gst_pipeline_init), (gst_pipeline_provide_clock_func):
4209         The pipeline provides a bus.
4210
4211 2005-09-28  Johan Dahlin  <johan@gnome.org>
4212
4213         * gst/gstmessage.c (gst_message_parse_state_changed): Use
4214         gst_structure_get_enum instead of gst_structure_get_int
4215
4216         * gst/gststructure.c (gst_structure_get_enum): Impl.
4217
4218         * gst/gststructure.h (gst_structure_get_enum): Add
4219
4220         * docs/gst/gstreamer-sections.txt: Ditto
4221
4222         * gst/gstmessage.c (gst_message_new_state_changed): Use
4223         GST_TYPE_STATE instead of G_TYPE_INT, mainly for language bindings
4224         which does introspection.
4225         Reviewed by Christian Schaller
4226
4227 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
4228
4229         * gst/gstinfo.c: (gst_debug_log_default):
4230           don't do dummy g_strdup()s
4231         * libs/gst/controller/gstcontroller.c:
4232         (on_object_controlled_property_changed),
4233         (gst_controlled_property_new), (gst_controller_new_valist),
4234         (gst_controller_new_list),
4235         (gst_controller_remove_properties_valist), (gst_controller_set),
4236         (gst_controller_get), (gst_controller_sync_values),
4237         (gst_controller_get_value_array), (_gst_controller_class_init),
4238         (gst_controller_get_type):
4239         * libs/gst/controller/gstcontroller.h:
4240         * libs/gst/controller/gstinterpolation.c:
4241         (gst_controlled_property_find_timed_value_node):
4242           convert // to /**/ comments
4243
4244 2005-09-28  Wim Taymans  <wim@fluendo.com>
4245
4246         * gst/gstbus.c: (marshal_VOID__MINIOBJECT), (gst_bus_class_init),
4247         (gst_bus_post), (poll_func), (gst_bus_async_signal_func),
4248         (gst_bus_sync_signal_handler):
4249         * gst/gstbus.h:
4250         Added async-message and sync-message signals to the bus.
4251         Added helper BusFunc to emit signals for all posted messages.
4252
4253         * gst/gstmessage.c: (gst_message_type_get_name),
4254         (gst_message_type_to_quark), (gst_message_get_type):
4255         * gst/gstmessage.h:
4256         Register quarks for message names.
4257
4258 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
4259
4260         * docs/libs/gstreamer-libs-sections.txt:
4261         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist),
4262         (gst_controller_new_list):
4263         * libs/gst/controller/gstcontroller.h:
4264           added another constructor for language bindings
4265
4266 2005-09-28  Thomas Vander Stichele  <thomas at apestaart dot org>
4267
4268         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
4269           add another check
4270         * gst/gstbus.c:
4271           add some doc
4272         * gst/gstinfo.c: (_gst_debug_init):
4273           slightly more readable color for refcount debugging
4274
4275 2005-09-28  Wim Taymans  <wim@fluendo.com>
4276
4277         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_provide_clock_func),
4278         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
4279         (find_element), (gst_bin_sort_iterator_next),
4280         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
4281         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
4282         (gst_bin_change_state), (gst_bin_dispose):
4283         Small doc fixes. get_clock -> provide_clock.
4284
4285         * gst/gstelement.c: (gst_element_class_init),
4286         (gst_element_provides_clock), (gst_element_provide_clock),
4287         (gst_element_get_clock), (gst_element_commit_state),
4288         (gst_element_lost_state):
4289         * gst/gstelement.h:
4290         Make get/set_clock() symetric. Add provide_clock vmethod since
4291         that is actually what this function does.
4292
4293         * gst/gstpipeline.c: (gst_pipeline_class_init),
4294         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func),
4295         (gst_pipeline_get_clock):
4296         get_clock -> provide_clock.
4297
4298 2005-09-28  Andy Wingo  <wingo@pobox.com>
4299
4300         * gst/base/gstbasesrc.c (gst_base_src_unlock): Comment a bit in
4301         lieu of real docs...
4302
4303         * gst/elements/gstfdsrc.c: Cleaned up a bit.
4304
4305 2005-09-28  Tim-Philipp Müller  <tim at centricular dot net>
4306
4307         * gst/elements/gstcapsfilter.c:
4308         * gst/elements/gstfakesink.c:
4309         * gst/elements/gstfakesrc.c:
4310         * gst/elements/gstfdsink.c:
4311         * gst/elements/gstfdsrc.c:
4312         * gst/elements/gstfilesink.c:
4313         * gst/elements/gstfilesrc.c:
4314         * gst/elements/gstidentity.c:
4315         * gst/elements/gsttee.c:
4316         * gst/elements/gsttypefindelement.c:
4317           Make element details static.
4318
4319 2005-09-28  Wim Taymans  <wim@fluendo.com>
4320
4321         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
4322         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
4323         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
4324         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
4325         (gst_bin_change_state), (gst_bin_dispose):
4326         Some documentation updates.
4327         Clean up dispose handlers.
4328
4329         * gst/gstobject.c: (gst_object_ref), (gst_object_unref):
4330         * gst/gstpad.c: (gst_pad_dispose):
4331         Clean up dispose handler.
4332
4333         * gst/gstpipeline.c: (gst_pipeline_change_state):
4334         Removed spurious UNLOCK.
4335
4336 2005-09-27  Stefan Kost  <ensonic@users.sf.net>
4337
4338         * docs/gst/gstreamer-sections.txt:
4339         * gst/base/gstbasesrc.h:
4340         * gst/gstelement.h:
4341         * gst/gstevent.h:
4342         * gst/gstobject.h:
4343         * gst/gstpad.h:
4344         * gst/gstpipeline.c:
4345         * gst/gstpipeline.h:
4346         * gst/gstutils.h:
4347         * gst/gstxml.h:
4348           added two new functions to the docs
4349                 documents all undocumented GstXXXFlags
4350                 completed some incomplete docs 
4351
4352 2005-09-27  Thomas Vander Stichele  <thomas at apestaart dot org>
4353
4354         * gst/gstbin.c: (gst_bin_dispose):
4355         * gst/gstelement.c: (gst_element_dispose):
4356           remove now useless and leaky resurrection code in dispose
4357         * gst/base/gstbasesrc.c: (gst_base_src_init):
4358         * gst/gstelementfactory.c: (gst_element_factory_create):
4359         * gst/gstobject.c: (gst_object_set_parent):
4360           add some debugging
4361
4362 2005-09-27  Wim Taymans  <wim@fluendo.com>
4363
4364         * docs/design/part-TODO.txt:
4365         Update TODO.
4366
4367         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
4368         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
4369         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
4370         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
4371         (gst_bin_change_state):
4372         * gst/gstelement.h:
4373         Remove element variable, we keep element info in the iterator now.
4374
4375 2005-09-27  Andy Wingo  <wingo@pobox.com>
4376
4377         * libs/gst/dataprotocol/dataprotocol.c: Fix error-checking return
4378         values.
4379
4380 2005-09-27  Wim Taymans  <wim@fluendo.com>
4381
4382         * check/gst/gstbin.c: (GST_START_TEST):
4383         Enable check that works now.
4384
4385         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
4386         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
4387         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
4388         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
4389         (gst_bin_change_state):
4390         * gst/gstbin.h:
4391         Redid the state change algorithm using a topological sort algo.
4392         Handles all cases correctly.
4393         Exposed iterator for state change order.
4394
4395         * gst/gstelement.h:
4396         Temp storage for state changes. Need to get rid of this soon.
4397
4398 2005-09-27  Wim Taymans  <wim@fluendo.com>
4399
4400         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_do_push):
4401         * gst/gstutils.c: (intersect_caps_func), (gst_pad_proxy_getcaps),
4402         (link_fold_func), (gst_pad_proxy_setcaps):
4403         Leak fixes, the fold functions need to unref the passed object and
4404         _get_parent_*() returns ref to parent.
4405
4406 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
4407
4408         * check/gst/gstbuffer.c: (test_make_writable):
4409           Plug leak in test case and fix 'make check-valgrind'
4410
4411 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
4412
4413         * gst/gstbuffer.c: (gst_subbuffer_init):
4414           Set READONLY flag on subbuffers, so that gst_buffer_make_writable()
4415           works correctly in all circumstances (we could have just copied
4416           the parent buffer's readonly flag, but conceptually it seems
4417           cleaner to mark all subbuffers as read-only). (based on patch
4418           by Alessandro Decina, #314710).
4419         
4420         * check/gst/gstbuffer.c: (create_read_only_buffer),
4421         (test_make_writable), (test_subbuffer_make_writable),
4422         (gst_test_suite):
4423           Add some tests for gst_buffer_make_writable().
4424
4425 2005-09-27  Wim Taymans  <wim@fluendo.com>
4426
4427         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_change_state):
4428         use gst_object_has_ancestor().
4429
4430         * gst/gstobject.c: (gst_object_has_ancestor):
4431         * gst/gstobject.h:
4432         gst_object_has_ancestor() copied from gstbin.c as it is a
4433         usefull function.
4434
4435         * tests/instantiate/create.c: (create_all_elements):
4436         * tests/lat.c: (handoff_src), (handoff_sink):
4437         * tests/sched/runxml.c: (main):
4438         * tests/seeking/seeking1.c: (main):
4439         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
4440         (main):
4441         Fix compilation of some tests.
4442
4443 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
4444
4445         * gst/gsterror.h:
4446           Remove comment. GST_TYPE_G_ERROR is here to stay,
4447           G_TYPE_ERROR has been WONTFIX'ed by the GLib folks
4448           (#316961, #300610).
4449
4450 2005-09-26  Wim Taymans  <wim@fluendo.com>
4451
4452         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
4453         Added check that shows error in state change order.
4454
4455 2005-09-26  Wim Taymans  <wim@fluendo.com>
4456
4457         * gst/gstbin.c: (gst_bin_change_state):
4458         Make state change function use 3 queues again, we were
4459         adding elements in the wrong order.
4460
4461         * gst/gstghostpad.c: (gst_ghost_pad_do_unlink):
4462         Some debug info,
4463
4464         * gst/gstpad.c: (gst_pad_dispose):
4465         Added some debug info first.
4466
4467 2005-09-26  Tim-Philipp Müller  <tim at centricular dot net>
4468
4469         * docs/design/draft-push-pull.txt:
4470         * docs/design/part-events.txt:
4471         * docs/design/part-overview.txt:
4472         * docs/design/part-scheduling.txt:
4473           Replace all _pull_region() with _pull_range()
4474           
4475 2005-09-26  Andy Wingo  <wingo@pobox.com>
4476
4477         * gst/gstvalue.c (_gst_value_initialize): Better fakeout.
4478
4479         * check/gst-libs/controller.c: Update for controller api change.
4480
4481         * configure.ac: 
4482         * tests/Makefile.am:
4483         * tests/memchunk: Remove memchunk benchmark stuff, this is taken
4484         over by GLib bug 118439.
4485         
4486         * gst/base/gstbasesink.c (gst_base_sink_wait): Factor out the wait
4487         routines to a function.
4488
4489         * docs/libs/gstreamer-libs-sections.txt: I am a good person today.
4490
4491         * libs/gst/controller/gsthelper.c:
4492         * libs/gst/controller/gstcontroller.h (gst_controller_sync_values)
4493         (gst_object_sync_values): Renamed from sink_values. Ugh.
4494
4495         * libs/gst/controller/gsthelper.c: Update for __gst_controller_key.
4496
4497         * libs/gst/controller/gstcontroller.c (__gst_controller_key):
4498         Renamed from controller_key, as it is exported.
4499
4500         * gst/gstvalue.c (_gst_value_initialize): Fake out the compiler.
4501
4502 2005-09-26  Thomas Vander Stichele  <thomas at apestaart dot org>
4503
4504         * gst/Makefile.am:
4505         * gst/gst.h:
4506         * gst/gstpad.h:
4507         * gst/gstpadtemplate.h:
4508         * gst/gstquery.c:
4509         * gst/gstquery.h:
4510         * gst/gstqueryutils.c:
4511         * gst/gstqueryutils.h:
4512           remove queryutils headers after moving the two used functions
4513           to gstquery.  also fixes build problem for gstsiddec
4514
4515 2005-09-26  Michael Smith <msmith@fluendo.com>
4516
4517         * tools/gst-launch.1.in:
4518         Correct documentation in manpage of debug syntax
4519
4520 2005-09-26  Wim Taymans  <wim@fluendo.com>
4521
4522         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
4523         (gst_base_src_is_seekable), (gst_base_src_change_state):
4524         Some more debugging info.
4525
4526 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
4527
4528         * docs/gst/gstreamer-sections.txt:
4529         * gst/base/gstbasetransform.h:
4530         * gst/gstindex.h:
4531           added more docs
4532
4533 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
4534
4535         * docs/gst/.cvsignore:
4536         * docs/gst/tmpl/.cvsignore:
4537         * docs/gst/tmpl/gstpipeline.sgml:
4538         * docs/gst/tmpl/gstplugin.sgml:
4539         * gst/gstpipeline.c:
4540         * gst/gstplugin.c:
4541         * gst/gstplugin.h:
4542           inlined the last two docs files
4543           removed the tmpl directory from cvs (no more conflicts here!)
4544
4545 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
4546
4547         * docs/gst/gstreamer-sections.txt:
4548         * docs/gst/tmpl/.cvsignore:
4549         * docs/gst/tmpl/gstpad.sgml:
4550         * docs/gst/tmpl/gstpadtemplate.sgml:
4551         * gst/Makefile.am:
4552         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
4553         (gst_pad_finalize), (gst_pad_set_pad_template):
4554         * gst/gstpad.h:
4555         * gst/gstpadtemplate.c: (gst_pad_template_get_type),
4556         (gst_pad_template_class_init), (gst_pad_template_init),
4557         (gst_pad_template_dispose), (name_is_valid),
4558         (gst_static_pad_template_get), (gst_pad_template_new),
4559         (gst_static_pad_template_get_caps), (gst_pad_template_get_caps),
4560         (gst_pad_template_pad_created):
4561         * gst/gstpadtemplate.h:
4562           inlined two more docs
4563           factored gstpadtemplate out of gstpad
4564
4565 2005-09-24  Tim-Philipp Müller  <tim at centricular dot net>
4566
4567         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
4568         (test_children_state_change_order_semi_sink):
4569           Fix test case: we can't rely on a fixed state change order when
4570           going from READY => PAUSED because the sink might commit its 
4571           new state first when the first buffer created by the source 
4572           reaches the sink before the source has finished its change state.
4573           (Test case still fails at times, see #316856, comment 5 onwards)
4574
4575 2005-09-24  Wim Taymans  <wim@fluendo.com>
4576
4577         * docs/design/part-events.txt:
4578         * docs/design/part-gstbus.txt:
4579         * docs/design/part-gstpipeline.txt:
4580         * docs/design/part-messages.txt:
4581         * docs/design/part-overview.txt:
4582         * docs/design/part-segments.txt:
4583         * gst/gstbin.c:
4584         * gst/gstbuffer.c:
4585         * gst/gstclock.c:
4586         * gst/gstelement.c:
4587         * gst/gstevent.c:
4588         * gst/gstfilter.c:
4589         * gst/gstiterator.c:
4590         Various documentation updates.
4591
4592 2005-09-24  Thomas Vander Stichele  <thomas at apestaart dot org>
4593
4594         * gst/gstclock.h:
4595           Well, that's embarassing.  Luckily we weren't using
4596           GST_CLOCK_DIFF anywhere.
4597
4598 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
4599
4600         * common/gtk-doc.mak:
4601           don't fail on building XML, FC4 slave shows a bunch of doc
4602           missing bits that I don't get
4603         * gst/gstpad.c:
4604         * gst/gstpipeline.c:
4605         * gst/gststructure.c:
4606           some doc updates
4607
4608 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
4609
4610         * docs/design/part-gstbin.txt:
4611         * docs/design/part-gstbus.txt:
4612         * gst/gstbus.c:
4613           Add blurb about how the bus goes into flushing mode and
4614           drops all messages when its bin goes from READY into NULL 
4615           state.
4616
4617 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
4618
4619         * docs/gst/gstreamer-sections.txt:
4620         * gst/gststructure.c: (gst_structure_get_clock_time):
4621         * gst/gststructure.h:
4622           add a method to get a GstClockTime out of a structure
4623
4624 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
4625
4626         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
4627         (test_children_state_change_order_semi_sink), (gst_bin_suite):
4628           Added test to check state change order in bins (can still be made
4629           to fail here under heavy disk load; bails out with 'Push on pad
4630           fakesink:sink0, but it was not activated in push mode').
4631
4632         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_change_state):
4633           Fix state change order when there is only a semi sink (#316856)
4634
4635         * gst/gstbus.c: (gst_bus_class_init):
4636           Use _class_peek_parent(), not _class_ref(); fix docs to say
4637           'default main context' instead of 'mainloop' where that is
4638           what's meant.
4639
4640         * gst/gstelement.c: (gst_element_commit_state),
4641         (gst_element_set_state):
4642           Fix typos in debug messages
4643
4644 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
4645
4646         * docs/README:
4647         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_chain):
4648         * gst/gstpluginfeature.c:
4649         * gst/gstutils.c:
4650           various doc updates
4651         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
4652           change an assert into an error until it gets fixed properly
4653
4654 2005-09-23  Stefan Kost  <ensonic@users.sf.net>
4655
4656         * docs/gst/gstreamer-sections.txt:
4657         * docs/gst/tmpl/.cvsignore:
4658         * docs/gst/tmpl/gstelement.sgml:
4659         * docs/gst/tmpl/gstinfo.sgml:
4660         * docs/gst/tmpl/gstobject.sgml:
4661         * gst/gstelement.c:
4662         * gst/gstelement.h:
4663         * gst/gstinfo.c:
4664         * gst/gstinfo.h:
4665         * gst/gstobject.c: (gst_object_class_init):
4666         * gst/gstobject.h:
4667           inlined 3 more biiiig doc files and added some missing docs on the fly
4668
4669 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
4670
4671         * check/gst/.cvsignore:
4672         * check/gst/gstplugin.c: (GST_START_TEST), (gst_plugin_suite):
4673         * gst/gstregistryxml.c: (load_plugin),
4674         (gst_registry_xml_save_plugin):
4675           put back source in registry.  add checks for find_plugin.
4676         * testsuite/states/bin.c: (assert_state), (empty_bin),
4677         (test_adding_one_element), (main):
4678         * testsuite/states/locked.c: (main):
4679           some compile/run fixes
4680
4681 2005-09-22  Thomas Vander Stichele  <thomas at apestaart dot org>
4682
4683         * check/gst/gstvalue.c: (GST_START_TEST):
4684           fix leaks in the test itself
4685
4686 2005-09-22  Wim Taymans  <wim@fluendo.com>
4687
4688         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
4689         (gst_base_sink_send_event), (gst_base_sink_peer_query),
4690         (gst_base_sink_query):
4691         Prepare for more accurate position reporting and query
4692         handling.
4693
4694         * gst/gstelement.c: (gst_element_send_event),
4695         (gst_element_set_state):
4696         Add some comment.
4697
4698 2005-09-22  Wim Taymans  <wim@fluendo.com>
4699
4700         * gst/gstquery.c: (gst_query_new_segment), (gst_query_set_segment),
4701         (gst_query_parse_segment):
4702         * gst/gstquery.h:
4703         More documentation.
4704         Add segment query for future use.
4705
4706 2005-09-22  Wim Taymans  <wim@fluendo.com>
4707
4708         * gst/gstbin.c: (gst_bin_add_func):
4709         Some more debug info.
4710
4711         * gst/gstelement.c: (gst_element_send_event):
4712         Simplify send_event
4713
4714         * gst/gstelement.h:
4715         Don't know how flags got broken.
4716
4717         * gst/gstquery.h:
4718         Added new query.
4719
4720 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
4721
4722         * check/gst/gstvalue.c: (test_date), (gst_value_suite):
4723           Add simplistic test suite for GST_TYPE_DATE serialisation and
4724           deserialisation.
4725
4726 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
4727
4728         * docs/gst/gstreamer-sections.txt:
4729         * gst/gststructure.c: (gst_structure_set_valist),
4730         (gst_structure_get_date):
4731         * gst/gststructure.h:
4732         * gst/gstvalue.c: (gst_value_set_date), (gst_value_get_date),
4733         (gst_date_copy), (gst_value_compare_date),
4734         (gst_value_serialize_date), (gst_value_deserialize_date),
4735         (gst_value_transform_date_string),
4736         (gst_value_transform_string_date), (_gst_value_initialize):
4737         * gst/gstvalue.h:
4738           Add GST_TYPE_DATE, a boxed type that wraps GDate, and the usual
4739           bunch of utility functions along with a hack that checks that
4740           developers don't accidentally use G_TYPE_DATE where GST_TYPE_DATE
4741           is required. Part of the grand scheme in #170777.
4742
4743 2005-09-22  Andy Wingo  <wingo@pobox.com>
4744
4745         * gst/gstconfig.h.in: Psych out gtk-doc.
4746
4747         * docs/gst/gstreamer-sections.txt: Add GST_HAVE_GLIB_2_8.
4748
4749         * check/Makefile.am (check_PROGRAMS): Add gstplugin to the tests.
4750
4751         * tools/gst-inspect.c (print_element_list): Plug some
4752         inconsequential leaks.
4753
4754         * gst/gstregistry.c (gst_registry_get_default): Doc.
4755
4756         * check/gst/gstplugin.c: 
4757         * gst/gsttypefindfactory.c (gst_type_find_factory_call_function):
4758         * gst/gstelementfactory.c (gst_element_factory_create): 
4759         * gst/gstindexfactory.c (gst_index_factory_create): Update for
4760         refcount changes.
4761
4762         * gst/gstpluginfeature.c (gst_plugin_feature_list_free): Doc.
4763         (gst_plugin_feature_load): Doc, don't eat refs.
4764
4765         * gst/gstplugin.c (gst_plugin_load): Doc, don't eat refs.
4766         (gst_plugin_list_free): Doc.
4767         (gst_plugin_load_file): Doc updates.
4768
4769         * gst/gstbuffer.c (gst_buffer_get_caps): Like all our _get
4770         accessors returning refcounted objects, return a ref.
4771
4772         * check/gst/gstbuffer.c (GST_START_TEST): Use refcount-idempotent
4773         accessor for caps. IDEMPOTENCE. Oh yes.
4774
4775 2005-09-21  Francis Labonte  <francis_labonte at hotmail dot com>
4776
4777         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
4778
4779         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
4780         (_gst_debug_register_funcptr):
4781           Add mutex to serialise access to the hash table with
4782           the function pointer => function name string mapping;
4783           make that hash table static scope (#316809).
4784
4785         * gst/registries/.cvsignore:
4786           Remove left-over file.
4787
4788 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
4789
4790         * docs/pwg/appendix-porting.xml:
4791           And something about newsegment events and caps-on-buffers to
4792           the porting guide (feel free to improve).
4793
4794 2005-09-21  Andy Wingo  <wingo@pobox.com>
4795
4796         * check/gst/gstutils.c (test_buffer_probe_n_times): Add tests for
4797         data and event probes on the same pad.
4798         (test_buffer_probe_once): Test that removing probes from within
4799         the probe functions works.
4800
4801 2005-09-21  Andy Wingo  <wingo@pobox.com>
4802
4803         * check/gst/gstutils.c: New file.
4804         (test_buffer_probe_n_times): A simple buffer probe test. More to
4805         come, foolios.
4806
4807         * gst/gstutils.c (gst_pad_add_buffer_probe): Connect to
4808         have-data::buffer, not have-data.
4809         (gst_pad_add_event_probe): Likewise for have-data::event.
4810         (gst_pad_add_data_probe): More docs. The part about 'resolving the
4811         peer' isn't quite right yet though.
4812         (gst_pad_remove_buffer_probe, gst_pad_remove_event_probe) 
4813         (gst_pad_remove_data_probe): Change to take the guint handler_id
4814         as their arg, not the function+data, which is more glib-like.
4815
4816         * gst/gstpad.c (gst_pad_emit_have_data_signal): Add a detail to
4817         the signal emission to indicate if the data is a buffer or an
4818         event.
4819         (gst_pad_get_type): Initialize buffer and event quarks.
4820         (gst_pad_class_init): have-data is now a detailed signal, yes it
4821         is.
4822
4823 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
4824
4825         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
4826         * gst/gstutils.c: (gst_util_set_value_from_string),
4827         (gst_util_set_object_arg):
4828           Don't put functional code in g_return_if_fail() or
4829           g_return_val_if_fail() statements, otherwise things will 
4830           break when G_DISABLE_CHECKS is defined during compilation.
4831
4832 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
4833
4834         * docs/gst/tmpl/.cvsignore:
4835         * docs/gst/tmpl/gstvalue.sgml:
4836         * gst/gstvalue.c:
4837         * gst/gstvalue.h:
4838           inlied another one and added  some obvious docs
4839
4840 2005-09-21  Wim Taymans  <wim@fluendo.com>
4841
4842         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init),
4843         (gst_fdsrc_init), (gst_fdsrc_start), (gst_fdsrc_stop),
4844         (gst_fdsrc_unlock), (gst_fdsrc_set_property),
4845         (gst_fdsrc_get_property), (gst_fdsrc_create):
4846         * gst/elements/gstfdsrc.h:
4847         Properly implement fdsrc. Removed signal and timeout,
4848         better implemented somewhere else.
4849
4850 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
4851
4852         * docs/gst/tmpl/.cvsignore:
4853         * docs/gst/tmpl/gstimplementsinterface.sgml:
4854         * gst/gstinterface.c:
4855           inlined more docs
4856
4857 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
4858
4859         * docs/gst/gstreamer-sections.txt:
4860         * docs/gst/tmpl/.cvsignore:
4861         * docs/gst/tmpl/gstenumtypes.sgml:
4862           remove obsolete doc file
4863
4864 2005-09-21  David Schleef  <ds@schleef.org>
4865
4866         * gst/gstelementfactory.c: (gst_element_factory_make): Drink a
4867         little beer, fix a little leak.
4868
4869 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
4870
4871         * docs/gst/gstreamer-docs.sgml:
4872         * docs/gst/gstreamer-sections.txt:
4873         * docs/gst/tmpl/.cvsignore:
4874         * gst/Makefile.am:
4875         * gst/gst.h:
4876         * gst/gstbin.c:
4877         * gst/gstelement.h:
4878         * gst/gstindex.c: (gst_index_class_init):
4879         * gst/gstindex.h:
4880         * gst/gstindexfactory.c: (gst_index_factory_get_type),
4881         (gst_index_factory_class_init), (gst_index_factory_init),
4882         (gst_index_factory_finalize), (gst_index_factory_new),
4883         (gst_index_factory_destroy), (gst_index_factory_find),
4884         (gst_index_factory_create), (gst_index_factory_make):
4885         * gst/gstindexfactory.h:
4886         * gst/gstpluginfeature.c:
4887         * gst/gstpluginfeature.h:
4888         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
4889           more docs inlined, splitted gstindex.{c,h}
4890
4891 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
4892
4893         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
4894           fix a leak
4895
4896 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
4897
4898         * gst/elements/gstfilesink.c: (gst_file_sink_init):
4899           Set sync to FALSE by default.
4900
4901 2005-09-20  Wim Taymans  <wim@fluendo.com>
4902
4903         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
4904         (gst_base_sink_init):
4905         Make sync property settable from subclass.
4906
4907         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
4908         (gst_fake_sink_change_state):
4909         Set sync to FALSE by default.
4910
4911 2005-09-20  Wim Taymans  <wim@fluendo.com>
4912
4913         * gst/gstbus.c: (poll_func), (poll_timeout), (gst_bus_poll):
4914         * tools/gst-launch.c: (main):
4915         The timeout handler should have lower priority than the source
4916         so we don't timeout before popping a message with 0 timeout.
4917         Dump error messages after failed state change.
4918
4919 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
4920
4921         * tools/gst-inspect.c: (print_element_properties_info):
4922           Fix two typos.
4923
4924 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
4925
4926         * check/gst/gstevent.c:
4927         * gst/elements/gstfakesink.c:
4928         * gst/elements/gstfakesink.h:
4929           remove the sync property from fakesink.
4930           has the side effect of setting sync TRUE
4931           for fakesink, which is a change.  Anyone who knows how
4932           to fix this nicely in a GObject-y way, feel free.
4933
4934 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
4935
4936         * docs/gst/gstreamer-docs.sgml:
4937           remove probe refsection
4938
4939 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
4940
4941         * check/Makefile.am:
4942           disable valgrinding the controller test again
4943         * docs/gst/gstreamer-sections.txt:
4944           update for api-changes
4945
4946 2005-09-20  Wim Taymans  <wim@fluendo.com>
4947
4948         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
4949         (gst_base_sink_set_property), (gst_base_sink_get_property),
4950         (gst_base_sink_do_sync):
4951         * gst/base/gstbasesink.h:
4952         Added sync property to basesink to disable clock sync.
4953
4954 2005-09-20  Andy Wingo  <wingo@pobox.com>
4955
4956         * gst/gstelementfactory.c (gst_element_factory_create): Avoid
4957         eating the caller's refcount.
4958
4959         * gst/gstobject.h (GST_OBJECT_REFCOUNT) 
4960         (GST_OBJECT_REFCOUNT_VALUE): Conditionally fondle the right
4961         refcount.
4962
4963         * gst/gstconfig.h.in (GST_HAVE_GLIB_2_8):
4964         * configure.ac (GST_HAVE_GLIB_2_8_DEFINE): Make the availability
4965         of GLib 2.8 public, so we can know which refcount to check in
4966         tests.
4967
4968         * gst/gstobject.c: Use the GST_HAVE_GLIB_2_8 define.
4969         (gst_object_init): Only set the gst refcount if we're going ahead
4970         with the refcount hack.
4971
4972 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
4973
4974         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
4975         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
4976           more leaks plumbed, added more debug-logging
4977         * gst/gstmacros.h:
4978           whitespace fix
4979
4980 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
4981
4982         * gst/gstmessage.c:
4983           remove include of gstmemchunk.h
4984
4985 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
4986
4987         * gst/gstclock.c: (_gst_clock_id_free):
4988           Commit from the Political Party For More Atomic CVS Commits,
4989           so that people don't waste too much of their day fishing
4990           out obvious leaks out of massive commits.
4991           Oh, and fix a pretty damn obvious leak in the memchunk
4992           removal code.
4993
4994 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
4995
4996         * check/Makefile.am:
4997         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
4998           plug mem-leak, re-add to valgrindable tests
4999
5000 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5001
5002         * gst/gstplugin.h:
5003           unbreak the build for those who have chronic arthritis
5004           and typing "make check" is just too taxing on the hands
5005
5006 2005-09-20  Andy Wingo  <wingo@pobox.com>
5007
5008         * gst/gst.h: Re-add marshal to gst.h's include list -- if we
5009         really want it out, you should fix plugins at the same time.
5010
5011 2005-09-19  Stefan Kost  <ensonic@users.sf.net>
5012
5013         * configure.ac:
5014         * docs/gst/gstreamer-sections.txt:
5015         * gst/gstobject.c:
5016           added missing symbols to api docs
5017           disable ref-count hack if we have glib >= 2.8
5018
5019 2005-09-19  David Schleef  <ds@schleef.org>
5020
5021         * docs/gst/Makefile.am: Ignore a few more internal headers
5022         * docs/gst/gstreamer-docs.sgml: Remove old sections
5023         * docs/gst/gstreamer-sections.txt: Remove old sections
5024         * docs/gst/tmpl/gstobject.sgml: update
5025         * docs/gst/tmpl/gstplugin.sgml: update
5026         * docs/gst/tmpl/gstpluginfeature.sgml: update
5027         * docs/random/ds/0.9-suggested-changes: update.
5028         * gst/Makefile.am: remove memchunk and trashstack, since they're
5029           not used.
5030         * gst/gst.c: (gst_deinit): rename gst_registry_deinit to _cleanup
5031         * gst/gst.h: don't include some headers
5032         * gst/gstchildproxy.c: add gstmarshal.h
5033         * gst/gstclock.c: Don't use memchunks
5034         * gst/gstminiobject.c: Add some docs
5035         * gst/gstobject.c: remove DESTROYED flag, since it's redundant
5036         * gst/gstobject.h: same
5037         * gst/gstplugin.c: include gstmacros.h
5038         * gst/gstplugin.h: don't include gstmacros.h, since it's private
5039         * gst/gstquery.c: don't use memchunks
5040         * gst/gstregistry.c: rename gst_registry_deinit()
5041         * gst/gstregistry.h: same
5042
5043 2005-09-19  David Schleef  <ds@schleef.org>
5044
5045         * docs/libs/gstreamer-libs-docs.sgml: Remove docs for getbits
5046         * docs/libs/gstreamer-libs-sections.txt:
5047         * docs/libs/tmpl/gstgetbits.sgml:
5048         * docs/libs/tmpl/gstputbits.sgml:
5049
5050 2005-09-19  Tim-Philipp Müller  <tim at centricular dot net>
5051
5052         * win32/gstenumtypes.c:
5053         * win32/gstenumtypes.h:
5054           Update.
5055
5056 2005-09-19  Wim Taymans  <wim@fluendo.com>
5057
5058         * gst/gstpipeline.c: (do_pipeline_seek), (gst_pipeline_send_event):
5059         Automatically PAUSE and RESUME a pipeline when a flushing seek
5060         is performed.
5061
5062 2005-09-19  Andy Wingo  <wingo@pobox.com>
5063
5064         * gst/gstregistry.h: Spacing fixen.
5065
5066 2005-09-19  Wim Taymans  <wim@fluendo.com>
5067
5068         * gst/base/gstbasesrc.c: (gst_base_src_change_state):
5069         Handle state change failure more correctly.
5070
5071 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5072
5073         * check/Makefile.am:
5074         * check/pipelines/cleanup.c: (run_pipeline):
5075         * check/pipelines/simple_launch_lines.c: (run_pipeline),
5076         (GST_START_TEST):
5077           enable cleanup again after fixing the leak
5078         * docs/README:
5079           some more info on docs
5080
5081 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5082
5083         * check/Makefile.am:
5084           re-enable tests now that leaks are plugged
5085         * check/gst/gst.c:
5086         * check/gst/gstbin.c:
5087         * check/gst/gstpipeline.c:
5088           add some more tests while fixing leaks
5089         * common/check.mak:
5090           make sure binaries are uptodate when valgrinding/gdbing
5091         * gst/gst.c:
5092         * gst/gstelementfactory.c:
5093           remove a ref too many, and add a FIXME for when we get
5094           round to disposing of classes
5095         * gst/gstplugin.c:
5096           fix the refcounting when loading a plugin from a file and
5097           the code pretends that the pointer is the same even though
5098           of course it can change
5099         * gst/gstpluginfeature.c:
5100           unref plugins marked cached (a bit confusing as a name)
5101           as the docs state should be done
5102           various doc additions to explain refcounting
5103         * gst/gstregistry.c:
5104         * gst/gstregistryxml.c:
5105           debugging
5106
5107 2005-09-19  Wim Taymans  <wim@fluendo.com>
5108
5109         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
5110         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
5111         (send_messages), (GST_START_TEST), (gstbus_suite):
5112         * check/gst/gstpipeline.c: (GST_START_TEST):
5113         * check/pipelines/cleanup.c: (run_pipeline):
5114         * check/pipelines/simple_launch_lines.c: (run_pipeline),
5115         (GST_START_TEST):
5116         * gst/gstbus.c: (gst_bus_have_pending), (gst_bus_source_prepare),
5117         (gst_bus_source_check), (gst_bus_source_dispatch),
5118         (gst_bus_create_watch), (gst_bus_add_watch_full),
5119         (gst_bus_add_watch), (poll_func), (poll_timeout), (gst_bus_poll):
5120         * gst/gstbus.h:
5121         * tools/gst-launch.c: (event_loop):
5122         * tools/gst-md5sum.c: (event_loop):
5123         GstBusHandler -> GstBusFunc, return value has the same meaning as
5124         any other GSource (FALSE == remove source).
5125         _add_watch() and _add_watch_full() now take a MessageType mask to
5126         only handle specific types of messages.
5127         _poll() returns the GstMessage instead of the message type to avoid
5128         race conditions.
5129         _have_pending() takes a MessageType mask now too.
5130         Added testsuite for multiple bus watches.
5131         Fix testsuites and applications for new bus API.
5132
5133 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5134
5135         * check/Makefile.am:
5136           mark a bunch of the tests as to fix until we fix them
5137
5138 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
5139
5140         * common/check.mak:
5141           use GST_PLUGIN settings for valgrind tests as well, so we're
5142           valgrinding the correct thing
5143         * gst/gst.c: (init_post):
5144           plug another leak
5145
5146 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
5147
5148         * gst/gst.c: (init_post), (gst_deinit):
5149         * gst/gstelementfactory.c: (gst_element_factory_class_init),
5150         (gst_element_factory_finalize), (gst_element_factory_cleanup):
5151         * gst/gstindex.c: (gst_index_factory_class_init),
5152         (gst_index_factory_finalize):
5153         * gst/gstobject.c: (gst_object_dispose):
5154         * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_class_init),
5155         (gst_plugin_load_file), (gst_plugin_desc_free):
5156         * gst/gstpluginfeature.c: (gst_plugin_feature_class_init),
5157         (gst_plugin_feature_finalize):
5158         * gst/gstregistry.c: (gst_registry_class_init),
5159         (gst_registry_init), (gst_registry_finalize),
5160         (gst_registry_get_default), (gst_registry_deinit):
5161         * gst/gstregistry.h:
5162         * gst/gstregistryxml.c: (load_feature), (load_plugin):
5163           various cleanups and memleak plugging.  make valgrind is happy now.
5164
5165 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
5166
5167         * common/check.mak:
5168           add a check-valgrind target
5169
5170 2005-09-18  David Schleef  <ds@schleef.org>
5171
5172         * tools/gst-inspect.c: Revert the GOption code.
5173
5174 2005-09-17  David Schleef  <ds@schleef.org>
5175
5176         * check/Makefile.am: Fix environment variables.
5177         * check/gst/gstplugin.c: Fix for API changes.
5178         * tools/gst-inspect.c: Fix for API changes.
5179         * tools/gst-xmlinspect.c: Fix for API changes.
5180         * gst/gstelementfactory.c:
5181         * gst/gstplugin.c:
5182         * gst/gstplugin.h:
5183         * gst/gstpluginfeature.c:
5184         * gst/gstpluginfeature.h:
5185         * gst/gstregistry.c:
5186         * gst/gstregistry.h:
5187         * gst/gstregistryxml.c:
5188         * gst/gsttypefind.c:
5189         * gst/gsttypefindfactory.c:
5190         * gst/indexers/gstfileindex.c:
5191         * gst/indexers/gstmemindex.c:
5192         * gst/schedulers/Makefile.am:
5193           Change registry to keep track of both plugins and features,
5194           removing the feature tracking from plugins themselves.
5195
5196 2005-09-16  Thomas Vander Stichele  <thomas at apestaart dot org>
5197
5198         * check/Makefile.am:
5199         * tools/gst-register.1.in:
5200           remove gst-register
5201
5202 2005-09-15  David Schleef  <ds@schleef.org>
5203
5204         * check/gst/gstplugin.c:
5205         * gst/gstelementfactory.c:
5206         * gst/gstplugin.c:
5207         * gst/gstpluginfeature.c:
5208         * gst/gstregistry.c:
5209           Getting tired of debugging.  Disabled all the unreffing of
5210           plugins and features, which fixes the segfaults, but of
5211           course leaks like crazy.  At least playbin works.
5212
5213 2005-09-15  David Schleef  <ds@schleef.org>
5214
5215         * check/gst/gstplugin.c: (register_check_elements),
5216         (GST_START_TEST), (peek), (suggest), (gst_plugin_suite):
5217         More testing
5218         * gst/elements/gsttypefindelement.c: Fix refcounting.
5219         * gst/gsttypefind.c:
5220         * gst/gsttypefindfactory.c:
5221         * gst/gsttypefindfactory.h:
5222
5223 2005-09-15  David Schleef  <ds@schleef.org>
5224
5225         * gst/gstindex.c: get refcounting correct.
5226         * gst/gstregistry.c: Handle the case where a feature/plugin is
5227           not found.
5228
5229 2005-09-15  David Schleef  <ds@schleef.org>
5230
5231         * check/Makefile.am:
5232         * check/gst/gstplugin.c: Add test
5233         * gst/gstplugin.c: Fix problems noticed by testsuite
5234         * gst/gstplugin.h:
5235         * gst/gstregistry.c: 
5236         * gst/gstregistry.h:
5237
5238 2005-09-15  David Schleef  <ds@schleef.org>
5239
5240         * gst/gstplugin.c: Implement semi-decent recounting and locking
5241           in plugins and plugin features.
5242         * gst/gstplugin.h:
5243         * gst/gstpluginfeature.c:
5244         * gst/gstpluginfeature.h:
5245         * gst/gstregistry.c:
5246
5247 2005-09-15  Michael Smith <msmith@fluendo.com>
5248
5249         * gst/gstregistry.c: (gst_registry_get_feature_list):
5250           Implement this. Makes oggdemux work; decodebin still broken.
5251
5252 2005-09-14  David Schleef  <ds@schleef.org>
5253
5254         * configure.ac: Add -no-undefined to GST_PLUGIN_LDFLAGS (bug
5255           #316076)
5256         * gst/base/Makefile.am: Add -no-undefined to LDFLAGS for libs
5257         * gst/check/Makefile.am:
5258         * libs/gst/controller/Makefile.am:
5259         * libs/gst/dataprotocol/Makefile.am:
5260
5261 2005-09-14  David Schleef  <ds@schleef.org>
5262
5263         * configure.ac: Remove getbits library.  Nothing uses it, and
5264           it should be in something like liboil if someone did want
5265           to use it.
5266         * libs/gst/Makefile.am:
5267         * libs/gst/getbits/Makefile.am:
5268         * libs/gst/getbits/gbtest.c:
5269         * libs/gst/getbits/getbits.c:
5270         * libs/gst/getbits/getbits.h:
5271         * libs/gst/getbits/gstgetbits_generic.c:
5272         * libs/gst/getbits/gstgetbits_i386.s:
5273         * libs/gst/getbits/gstgetbits_inl.h:
5274
5275 2005-09-14  David Schleef  <ds@schleef.org>
5276
5277         * gst/Makefile.am: Dist glib-compat.h
5278
5279 2005-09-14  David Schleef  <ds@schleef.org>
5280
5281         * configure.ac: Remove gst/registries, since it's no longer used.
5282         * gst/registries/Makefile.am:
5283         * gst/registries/gstlibxmlregistry.c:
5284         * gst/registries/gstlibxmlregistry.h:
5285         * gst/registries/gstxmlregistry.c:
5286         * gst/registries/gstxmlregistry.h:
5287         * gst/registries/registrytest.c:
5288
5289 2005-09-14  David Schleef  <ds@schleef.org>
5290
5291         * gst/glib-compat.h:
5292         * gst/gstregistryxml.c:
5293           Convergence is near.  Seriously.
5294
5295 2005-09-14  David Schleef  <ds@schleef.org>
5296
5297         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
5298         * gst/glib-compat.h:
5299           Attempt #4 to appease the buildbots.
5300
5301 2005-09-14  David Schleef  <ds@schleef.org>
5302
5303         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
5304           Attempt #3.
5305
5306 2005-09-14  David Schleef  <ds@schleef.org>
5307
5308         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
5309         Attempt #2.
5310
5311 2005-09-14  David Schleef  <ds@schleef.org>
5312
5313         * gst/Makefile.am: Oh yeah, libgstreamer.so needs to contain
5314           the new functions.
5315
5316 2005-09-14  David Schleef  <ds@schleef.org>
5317
5318         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
5319         * gst/glib-compat.h: Add some functions that are in newer versions
5320           of glib than we care to require.
5321         * gst/gstregistryxml.c: Use them.
5322
5323 2005-09-14  David Schleef  <ds@schleef.org>
5324
5325         * po/POTFILES.in: remove gst-register.c
5326
5327 2005-09-14  David Schleef  <ds@schleef.org>
5328
5329         * docs/gst/gstreamer-docs.sgml:
5330         * docs/gst/gstreamer-sections.txt:
5331         * docs/gst/gstreamer.types:
5332         * docs/gst/tmpl/gstelement.sgml:
5333         * docs/gst/tmpl/gstplugin.sgml:
5334         * docs/gst/tmpl/gstpluginfeature.sgml:
5335           Documentation updates for registry changes.
5336
5337 2005-09-14  David Schleef  <ds@schleef.org>
5338
5339         * gst/gstregistryxml.c: Copy g_mkdir_with_parent() from glib,
5340           because we don't require glib-2.8.
5341
5342 2005-09-14  David Schleef  <ds@schleef.org>
5343
5344         * gst/gstregistryxml.c: Added.  Essentially moved out of the
5345           registries directory.
5346
5347 2005-09-14  David Schleef  <ds@schleef.org>
5348
5349         * check/Makefile.am:
5350         * check/generic/states.c:
5351         * gst/Makefile.am:
5352         * gst/gst.c:
5353         * gst/gst.h:
5354         * gst/gst_private.h:
5355         * gst/gstelementfactory.c:
5356         * gst/gstindex.c:
5357         * gst/gstinfo.c:
5358         * gst/gstplugin.c:
5359         * gst/gstplugin.h:
5360         * gst/gstpluginfeature.c:
5361         * gst/gstpluginfeature.h:
5362         * gst/gstregistry.c:
5363         * gst/gstregistry.h:
5364         * gst/gstregistrypool.c: remove
5365         * gst/gstregistrypool.h: remove
5366         * gst/gsttypefind.c:
5367         * gst/gsttypefindfactory.c:
5368         * gst/gsturi.c:
5369         * tools/Makefile.am:
5370         * tools/gst-compprep.c:
5371         * tools/gst-inspect.c:
5372         * tools/gst-register.c: remove
5373         * tools/gst-xmlinspect.c:
5374           Registry rewrite.  Changes registry from being a file created
5375           by a tool into a simple cache file created automatically by 
5376           libgstreamer.  Removed gst-register (because it's no longer
5377           needed).  Remove registry pools, because we only have one
5378           registry implementation (XML).  Fix up other subsystems as
5379           necessary.
5380
5381 2005-09-13  Michael Smith <msmith@fluendo.com>
5382
5383         * gst/gstconfig.h.in:
5384           Don't Use windows linking attributes for MinGW. Fixes #316157
5385
5386 2005-09-13  Thomas Vander Stichele  <thomas at apestaart dot org>
5387
5388         * gst/gstutils.c: (set_state_async_thread_func),
5389         (gst_element_set_state_async):
5390           Apparently people think it's better if this function doesn't
5391           try to set the state to whatever state was asked for on the first
5392           call to this function for any object.  Seriously.
5393
5394 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
5395
5396         * check/gst/gstpipeline.c: (GST_START_TEST):
5397         * docs/gst/gstreamer-sections.txt:
5398         * gst/gstutils.c: (set_state_async_thread_func),
5399         (gst_element_set_state_async):
5400         * gst/gstutils.h:
5401           add a "gst_element_set_state_async" method that
5402           sets the state and starts a thread to make sure the state
5403           change completes as best as it can
5404
5405 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
5406
5407         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
5408           codify design+behaviour in testsuite after discussion
5409
5410 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
5411
5412         * docs/gst/tmpl/gstelement.sgml:
5413         * docs/manual/appendix-quotes.xml:
5414           add a quote
5415         * gst/gstelement.c: (gst_element_set_state):
5416           add some debug
5417
5418 2005-09-12  Jan Schmidt  <thaytan@mad.scientist.com>
5419
5420         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
5421         (gst_base_transform_prepare_output_buf),
5422         (gst_base_transform_handle_buffer):
5423         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip),
5424         (gst_capsfilter_prepare_buf):
5425           Remove the requirement for sub-classes to call the parent
5426           implementation of prepare_output_buffer with a wrapper function.
5427           
5428         * gst/gsttaglist.h:
5429         * gst/gsttagsetter.h:
5430           Fix #define wrapper
5431
5432 2005-09-11  Stefan Kost  <ensonic@users.sf.net>
5433
5434         * docs/gst/gstreamer-sections.txt:
5435           more doc cleanups
5436
5437 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
5438
5439         * docs/gst/gstreamer-sections.txt:
5440         * docs/gst/tmpl/gstelement.sgml:
5441         * docs/gst/tmpl/gstplugin.sgml:
5442         * gst/gstminiobject.c:
5443         * gst/gstvalue.h:
5444           docs now stop throwing warnings
5445
5446 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
5447
5448         * docs/gst/gstreamer-sections.txt:
5449         * docs/gst/gstreamer.types:
5450         * docs/gst/tmpl/gstpad.sgml:
5451         * docs/gst/tmpl/gsttypes.sgml:
5452         * gst/base/gstadapter.h:
5453         * gst/base/gstbasesink.h:
5454         * gst/base/gstbasesrc.h:
5455         * gst/gstbin.h:
5456         * gst/gstbuffer.h:
5457         * gst/gstbus.h:
5458         * gst/gstcaps.h:
5459         * gst/gstclock.h:
5460         * gst/gstelement.h:
5461         * gst/gstevent.h:
5462         * gst/gstmessage.h:
5463         * gst/gstpad.h:
5464         * gst/gststructure.c:
5465         * gst/registries/gstlibxmlregistry.h:
5466           various documentation fixes
5467
5468 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
5469
5470         * docs/gst/gstreamer-sections.txt:
5471         * docs/gst/tmpl/gstvalue.sgml:
5472           rearrange gstvalue section
5473         * gst/gstutils.c: (gst_element_state_get_name):
5474           NONE -> VOID
5475         * gst/gstvalue.c: (_gst_value_initialize):
5476         * gst/gstvalue.h:
5477           doc updates
5478
5479 2005-09-10  Jan Schmidt  <thaytan@mad.scientist.com>
5480
5481         * check/gst-libs/controller.c:
5482           Header include fix.
5483         * gst/base/gstbasetransform.c:
5484         (gst_base_transform_default_prepare_buf),
5485         (gst_base_transform_handle_buffer):
5486         * gst/base/gstbasetransform.h:
5487           Some more basetransform changes and fixes to enable sub-classes
5488           that modify buffer metadata only.
5489         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
5490         (gst_capsfilter_init), (gst_capsfilter_transform_ip),
5491         (gst_capsfilter_prepare_buf):
5492           If the output pad has fixed allowed caps and input buffers 
5493           don't have any, set the fixed caps on outgoing buffers.
5494
5495 2005-09-09  Jan Schmidt  <thaytan@mad.scientist.com>
5496         * check/elements/identity.c: (GST_START_TEST):
5497           Make the error a little clearer when the test fails because
5498           identity made a copy of the buffer.
5499         * docs/gst/gstreamer-sections.txt:
5500           New symbols in gstbasetransform.h
5501         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
5502         (gst_base_transform_init), (gst_base_transform_transform_size),
5503         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
5504         (gst_base_transform_default_prepare_buf),
5505         (gst_base_transform_get_unit_size),
5506         (gst_base_transform_buffer_alloc),
5507         (gst_base_transform_handle_buffer), (gst_base_transform_chain),
5508         (gst_base_transform_change_state),
5509         (gst_base_transform_set_passthrough),
5510         (gst_base_transform_set_in_place),
5511         (gst_base_transform_is_in_place):
5512         * gst/base/gstbasetransform.h:
5513           Change BaseTransform to separate in_place operate from same_caps
5514           output. in_place implies that the element can perform the transform
5515           on incoming buffers in-place, even if the caps on the output are
5516           different.
5517           Sub-class elements can now implement special buffer allocation
5518           methods for outgoing buffers if they wish to.
5519           Big documentation addition.
5520         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip):
5521         * gst/elements/gstelements.c:
5522           Changes for basetransform modifications.
5523         * gst/elements/Makefile.am:
5524         * gst/elements/gstfdsrc.c: (gst_fdsrc_init), (gst_fdsrc_create):
5525           Compile fix. Extra debug output.
5526
5527 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
5528
5529         * check/gst/gstpad.c: (GST_START_TEST), (name_is_valid),
5530         (gst_pad_suite):
5531           add tests for valid pad naming
5532         * gst/check/gstcheck.c: (gst_check_log_message_func),
5533         (gst_check_log_critical_func):
5534           add ASSERT_WARNING
5535           remove printing of code, it is fragile when the code contains
5536           % and the line number is enough info
5537         * gst/check/gstcheck.h:
5538         * gst/gstpad.c: (gst_pad_template_new):
5539           fix memleaks
5540
5541 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
5542
5543         * configure.ac:
5544           say what CHECK flags we use
5545         * docs/libs/gstreamer-libs.types:
5546         * libs/gst/controller/Makefile.am:
5547         * libs/gst/controller/gst-controller.c:
5548         * libs/gst/controller/gst-controller.h:
5549         * libs/gst/controller/gst-helper.c:
5550         * libs/gst/controller/gst-interpolation.c:
5551         * libs/gst/controller/gstcontroller.c:
5552         * libs/gst/controller/gsthelper.c:
5553         * libs/gst/controller/gstinterpolation.c:
5554         * tools/gst-inspect.c: (print_plugin_info):
5555           we don't use dashes in header names
5556
5557 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
5558
5559         * check/Makefile.am:
5560         * check/gst/.cvsignore:
5561         * check/gst/gstpipeline.c: (pop_messages), (GST_START_TEST),
5562         (gst_pipeline_suite), (main):
5563           adding a test for pipelines and state changes
5564         * gst/gstutils.c: (get_state_func):
5565           add some debugging
5566         * gstreamer.spec.in:
5567           fix up spec file
5568
5569 2005-09-08  Michael Smith <msmith@fluendo.com>
5570
5571         * gst/elements/gstfilesrc.c: (gst_file_src_map_region),
5572         (gst_file_src_map_small_region), (gst_file_src_create_mmap),
5573         (gst_file_src_is_seekable), (gst_file_src_get_size),
5574         (gst_file_src_start):
5575         * gst/elements/gstfilesrc.h:
5576           Various fixes for unseekable, unmmapable, and non-normal files, so
5577           that fallback to read() rather than mmap() works.
5578         * gst/gstevent.c: (gst_event_new_newsegment):
5579           Allow newsegment events with segment_start == segment_end, as will
5580           correctly happen if you use filesrc on a zero-size file, for
5581           example.
5582
5583 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
5584
5585         * gst/gstplugin.c: (gst_plugin_load_file):
5586           Call g_module_close when we don't load the module
5587
5588         * gst/registries/gstlibxmlregistry.c:
5589         (gst_xml_registry_get_property):
5590           Port leak fix from 0.8
5591
5592 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
5593
5594         * docs/gst/gstreamer-docs.sgml:
5595         * docs/gst/tmpl/.cvsignore:
5596         * docs/gst/tmpl/gsttrace.sgml:
5597         * docs/gst/tmpl/gsttrashstack.sgml:
5598         * gst/Makefile.am:
5599         * gst/gst.h:
5600         * gst/gstelement.h:
5601         * gst/gstevent.h:
5602         * gst/gstmessage.c:
5603         * gst/gstmessage.h:
5604         * gst/gsttag.c:
5605         * gst/gsttag.h:
5606         * gst/gsttaginterface.c:
5607         * gst/gsttaginterface.h:
5608         * gst/gsttaglist.c:
5609         * gst/gsttaglist.h:
5610         * gst/gsttagsetter.c:
5611         * gst/gsttagsetter.h:
5612         * gst/gsttrace.c:
5613         * gst/gsttrace.h:
5614         * gst/gsttrashstack.c:
5615           renamed gsttag -> gsttaglist, gsttaginterface -> gsttagsetter
5616           inlined docs for gsttrace, gsttrashstack
5617
5618 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
5619
5620         * gst/Makefile.am:
5621         * gst/elements/gstbufferstore.h:
5622         * gst/elements/gsttypefindelement.c:
5623         * gst/elements/gsttypefindelement.h:
5624         * gst/gst.h:
5625         * gst/gsttypefind.c:
5626         * gst/gsttypefind.h:
5627         * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type),
5628         (gst_type_find_factory_class_init), (gst_type_find_factory_init),
5629         (gst_type_find_factory_dispose),
5630         (gst_type_find_factory_unload_thyself),
5631         (gst_type_find_load_plugin), (gst_type_find_factory_get_list),
5632         (gst_type_find_factory_get_caps),
5633         (gst_type_find_factory_get_extensions),
5634         (gst_type_find_factory_call_function):
5635         * gst/gsttypefindfactory.h:
5636         * gst/registries/gstlibxmlregistry.c:
5637         * gst/registries/gstxmlregistry.c:
5638           splitted gsttypefind into gsttypefind, gsttypefindfactory
5639
5640 2005-09-07  Andy Wingo  <wingo@pobox.com>
5641
5642         * gst/base/gstbasesink.c (gst_base_sink_activate_pull): Fix a race
5643         condition whereby the pad's task function is entered before the
5644         pad_mode variable was set.
5645
5646 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
5647
5648         * gst/gstpad.c: (gst_pad_alloc_buffer):
5649           Catch misbehaving pad_alloc functions that don't
5650           set up caps and do it for them.
5651
5652 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
5653
5654         * check/pipelines/simple_launch_lines.c: (run_pipeline):
5655           test for pipe!=NULL
5656         * docs/gst/tmpl/.cvsignore:
5657         * docs/gst/tmpl/gstmemchunk.sgml:
5658         * docs/gst/tmpl/gstparse.sgml:
5659         * docs/gst/tmpl/gsttaglist.sgml:
5660         * docs/gst/tmpl/gsttagsetter.sgml:
5661         * docs/gst/tmpl/gsttypefind.sgml:
5662         * docs/gst/tmpl/gsttypefindfactory.sgml:
5663         * gst/gstmemchunk.c:
5664         * gst/gstparse.c:
5665         * gst/gsttag.c:
5666         * gst/gsttaginterface.c:
5667         * gst/gsttypefind.c:
5668         * gst/gsttypefind.h:
5669           inlined more docs
5670
5671 === release 0.9.2 ===
5672
5673 2005-09-06  Thomas Vander Stichele  <thomas at apestaart dot org>
5674
5675         * NEWS:
5676         * RELEASE:
5677         * configure.ac:
5678           releasing 0.9.2, "South"
5679
5680 2005-09-05  Andy Wingo  <wingo@pobox.com>
5681
5682         * gst/registries/gstxmlregistry.h:
5683         * gst/registries/gstxmlregistry.c: Um... resurrect...
5684         
5685         * gst/registries/gstxmlregistry.h:
5686         * gst/registries/gstxmlregistry.c: and update to newer API.
5687         Incidentally they should be a bit faster now that they don't have
5688         to parse the caps.
5689         
5690 2005-09-05  Andy Wingo  <wingo@pobox.com>
5691
5692         * gst/registries/gstxmlregistry.h:
5693         * gst/registries/gstxmlregistry.c: Remove from CVS, they were
5694         replaced by the libxml registry a while back
5695
5696 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
5697
5698         * docs/gst/tmpl/gstplugin.sgml:
5699         * gst/elements/gstelements.c:
5700         * gst/gst.c:
5701         * gst/gstplugin.c: (gst_plugin_register_func),
5702         (gst_plugin_desc_copy), (gst_plugin_desc_free),
5703         (gst_plugin_get_source):
5704         * gst/gstplugin.h:
5705         * gst/registries/gstlibxmlregistry.c: (load_plugin),
5706         (gst_xml_registry_save_plugin):
5707         * gst/registries/gstxmlregistry.c: (gst_xml_registry_parse_plugin),
5708         (gst_xml_registry_save_plugin):
5709         * tools/gst-inspect.c: (print_plugin_info):
5710           add a "source" plugin description field, to represent the source
5711           module this plugin is a part of.  By default GST_PLUGIN_DEFINE
5712           will set it to PACKAGE, which is automake's idea of the name of
5713           the source project.
5714
5715 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
5716
5717         * Makefile.am:
5718         * autogen.sh:
5719         * configure.ac:
5720         * docs/Makefile.am:
5721         * docs/faq/Makefile.am:
5722         * docs/gst/tmpl/gstelement.sgml:
5723         * docs/gst/tmpl/gsttypes.sgml:
5724         * docs/htmlinstall.mak:
5725         * docs/manual/Makefile.am:
5726         * docs/pwg/Makefile.am:
5727           reorganize doc build a little
5728           split out docbook and gtk-doc stuff
5729           have two separate --enable's and enable them through autogen
5730           but disable by default in configure (to be similar to other
5731           projects)
5732         * gstreamer.spec.in:
5733           clean up docs install
5734         * po/af.po:
5735         * po/az.po:
5736         * po/ca.po:
5737         * po/cs.po:
5738         * po/de.po:
5739         * po/en_GB.po:
5740         * po/fr.po:
5741         * po/it.po:
5742         * po/nb.po:
5743         * po/nl.po:
5744         * po/ru.po:
5745         * po/sq.po:
5746         * po/sr.po:
5747         * po/sv.po:
5748         * po/tr.po:
5749         * po/uk.po:
5750         * po/vi.po:
5751           translation updates
5752
5753 2005-09-03  Tim-Philipp Müller  <tim at centricular dot net>
5754
5755         * gst/base/gstbasesink.c: (gst_base_sink_pad_buffer_alloc):
5756           Add comment.
5757           
5758         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
5759         (gst_fake_sink_change_state):
5760           Make state change function thread-safe.
5761           
5762         * gst/gstpad.c: (gst_pad_alloc_buffer):
5763           Set offset on generic buffer allocated by fallback.
5764
5765 2005-09-03  Stefan Kost  <ensonic@users.sf.net>
5766
5767         * docs/gst/gstreamer-sections.txt:
5768         * docs/gst/tmpl/gstelement.sgml:
5769         * gst/gstpad.c:
5770         * libs/gst/controller/gst-controller.c:
5771         (gst_controlled_property_set_interpolation_mode),
5772         (gst_controlled_property_new),
5773         (gst_controller_find_controlled_property):
5774          run the wingo-magic script against the docs
5775
5776 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
5777
5778         * docs/gst/gstreamer-docs.sgml:
5779         * docs/gst/gstreamer-sections.txt:
5780         * docs/gst/tmpl/.cvsignore:
5781         * docs/gst/tmpl/gstelementdetails.sgml:
5782         * docs/gst/tmpl/gstelementfactory.sgml:
5783         * gst/gst.c:
5784         * gst/gstbus.c:
5785         * gst/gstelementfactory.c:
5786         * gst/gstelementfactory.h:
5787           merged elementdetails docs into elementfactory docs
5788           inlined both
5789
5790 2005-09-02  Andy Wingo  <wingo@pobox.com>
5791
5792         * gst/gstelement.h: Add magical pixie dust to make glib-mkenums
5793         consider this enum an enum and not a flags.
5794
5795 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
5796
5797         * docs/gst/gstreamer-docs.sgml:
5798         * docs/gst/tmpl/.cvsignore:
5799         * docs/gst/tmpl/gstghostpad.sgml:
5800         * docs/gst/tmpl/gstiterator.sgml:
5801         * docs/gst/tmpl/gstmacros.sgml:
5802         * docs/gst/tmpl/gstrealpad.sgml:
5803         * docs/gst/tmpl/gstregistry.sgml:
5804         * docs/gst/tmpl/gstregistrypool.sgml:
5805         * docs/gst/tmpl/gststructure.sgml:
5806         * docs/gst/tmpl/gstsystemclock.sgml:
5807         * docs/gst/tmpl/gsttrace.sgml:
5808         * gst/gstghostpad.c:
5809         * gst/gstmacros.h:
5810         * gst/gstmemchunk.c:
5811         * gst/gstmemchunk.h:
5812         * gst/gstqueue.c:
5813         * gst/gstregistry.c:
5814         * gst/gstregistrypool.c:
5815         * gst/gststructure.c:
5816         * gst/gstsystemclock.c:
5817           more docs inlined
5818
5819 2005-09-02  Andy Wingo  <wingo@pobox.com>
5820
5821         * gst/gstelement.h (GstState): Renamed from GstElementState,
5822         changed to be a normal enum instead of flags.
5823         (GstStateChangeReturn): Renamed from GstElementStateReturn, names
5824         munged to be GST_STATE_CHANGE_*.
5825         (GST_STATE_CHANGE): Renamed from GST_STATE_TRANSITION, updated to
5826         work with the new state representation.
5827         (GstStateChange): New enumeration of possible state transitions.
5828         Replaces GST_STATE_FOO_TO_BAR with GST_STATE_CHANGE_FOO_TO_BAR.
5829         (GstElementClass::change_state): Pass the GstStateChange along as
5830         an argument. Helps language bindings, so they don't have to use
5831         tricky lock-needing macros like GST_STATE_CHANGE ().
5832
5833         * scripts/update-states (file): New script. Run it on a file to
5834         update it for state naming and API changes. Updates files in
5835         place.
5836
5837         * All files updated for the new API.
5838
5839 2005-09-02  Thomas Vander Stichele  <thomas at apestaart dot org>
5840
5841         * gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
5842         * gst/gstutils.c: (gst_util_set_value_from_string),
5843         (gst_util_set_object_arg):
5844           fix a bunch of unchecked return values
5845         * tools/gst-complete.c: (main):
5846         * gstreamer.spec.in:
5847           clean up a little
5848
5849 2005-09-01  Wim Taymans  <wim@fluendo.com>
5850
5851         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
5852         (gst_base_sink_event), (gst_base_sink_do_sync),
5853         (gst_base_sink_handle_event):
5854         * gst/base/gstbasesink.h:
5855         Handle newsegments more correctly.
5856
5857         * gst/gstbus.c:
5858         Fix docs.
5859
5860         * gst/gstevent.c: (gst_event_new_newsegment):
5861         A newsegment cannot have a start_time of -1
5862
5863 2005-09-01  Tim-Philipp Müller  <tim at centricular dot net>
5864
5865         * win32/gstenumtypes.c:
5866         * win32/gstenumtypes.h:
5867           Update
5868
5869 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
5870
5871         * libs/gst/controller/gst-controller.c:
5872         (gst_controlled_property_set_interpolation_mode),
5873         (gst_controlled_property_new):
5874          fixed boolean again
5875
5876 2005-08-31  Thomas Vander Stichele  <thomas at apestaart dot org>
5877
5878         * docs/faq/gst-uninstalled:
5879           add -good
5880         * gst/gstevent.c:
5881         * gst/gstevent.h:
5882           remove wrong docs
5883         * gst/gstutils.c: (gst_element_link_filtered):
5884         * gst/gstutils.h:
5885           add gst_element_link_filtered
5886
5887 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
5888
5889         * docs/gst/gstreamer-docs.sgml:
5890         * docs/gst/gstreamer-sections.txt:
5891         * docs/gst/tmpl/.cvsignore:
5892         * docs/gst/tmpl/gsterror.sgml:
5893         * docs/gst/tmpl/gstfilter.sgml:
5894         * docs/gst/tmpl/gsturihandler.sgml:
5895         * docs/gst/tmpl/gsturitype.sgml:
5896         * docs/gst/tmpl/gstutils.sgml:
5897         * docs/gst/tmpl/gstxml.sgml:
5898         * gst/gsterror.c:
5899         * gst/gsterror.h:
5900         * gst/gstfilter.c:
5901         * gst/gsturi.c:
5902         * gst/gsturitype.c:
5903         * gst/gstutils.c:
5904         * gst/gstxml.c:
5905           inlined more docs, fixed double id-ref
5906
5907 2005-08-31  Wim Taymans  <wim@fluendo.com>
5908
5909         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
5910         (gst_base_transform_handle_buffer):
5911         Passthrough elements don't need the caps as they don't care.
5912
5913 2005-08-31  Wim Taymans  <wim@fluendo.com>
5914
5915         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
5916         (gst_base_transform_handle_buffer), (gst_base_transform_chain):
5917         Don't leak refcounts on buffers.
5918
5919 2005-08-31  Wim Taymans  <wim@fluendo.com>
5920
5921         * gst/base/gstbasetransform.c: (gst_base_transform_configure_caps),
5922         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
5923         (gst_base_transform_chain), (gst_base_transform_change_state):
5924         * gst/base/gstbasetransform.h:
5925         Handle the case where we are not negotiated more gracefully.
5926
5927 2005-08-31  Tim-Philipp Müller  <tim at centricular dot net>
5928
5929         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_init),
5930         (gst_file_src_map_region):
5931           Set READONLY flag on mmap'ed buffers, otherwise
5932           gst_buffer_make_writable() won't work properly (#314708).
5933
5934 2005-08-31  Wim Taymans  <wim@fluendo.com>
5935
5936         * gst/base/gstbasetransform.c: (gst_base_transform_handle_buffer):
5937         passthrough elements can even do inplace on non writable
5938         buffers (as they don't touch them).
5939
5940 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
5941
5942         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
5943         (gst_test_mono_source_set_property),
5944         (gst_test_mono_source_class_init), (GST_START_TEST),
5945         (gst_controller_suite):
5946           more tests (hehe I have the most)
5947         * gst/gstbus.c:
5948           describe popping messages whenusing mulltiple sources
5949         * libs/gst/controller/gst-controller.c:
5950         (gst_controlled_property_set_interpolation_mode),
5951         (gst_controlled_property_new):
5952         * libs/gst/controller/gst-controller.h:
5953         * libs/gst/controller/gst-interpolation.c:
5954           implement boolean properties
5955
5956 2005-08-31  Wim Taymans  <wim@fluendo.com>
5957
5958         * gst/gstminiobject.c: (gst_mini_object_ref):
5959         Cannot assert that the refcount has to be positive
5960         since a disposed object can be resurrected.
5961
5962 2005-08-31  Wim Taymans  <wim@fluendo.com>
5963
5964         * gst/gstpad.c: (gst_pad_init):
5965         Revert change, need to first fix badly behaving 
5966         apps.
5967
5968 2005-08-30  Wim Taymans  <wim@fluendo.com>
5969
5970         * check/elements/fakesrc.c: (setup_fakesrc):
5971         * check/elements/identity.c: (setup_identity):
5972         Activate pads before using them.
5973
5974 2005-08-30  Wim Taymans  <wim@fluendo.com>
5975
5976         * gst/base/gstadapter.c: (gst_adapter_flush):
5977         Flushing out 0 bytes is ok for this function.
5978
5979         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5980         no newsegment gives a warning and sets the start/stop to 
5981         invalid.
5982
5983         * gst/base/gstbasetransform.c: (gst_base_transform_change_state),
5984         (gst_base_transform_set_passthrough):
5985         Some debug info.
5986
5987         * gst/gstminiobject.c: (gst_mini_object_ref):
5988         Check refcount here too.
5989
5990         * gst/gstpad.c: (gst_pad_init):
5991         Pads are initially flushing and refusing data.
5992
5993         * gst/gstutils.c: (gst_element_link_pads_filtered):
5994         When adding a capsfilter element make sure it has the
5995         same state as the parent bin.
5996
5997 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
5998
5999         * docs/gst/tmpl/.cvsignore:
6000         * docs/gst/tmpl/gstformat.sgml:
6001         * docs/gst/tmpl/gstversion.sgml:
6002         * gst/gstbus.h:
6003         * gst/gstformat.c:
6004         * gst/gstformat.h:
6005         * gst/gstversion.h.in:
6006           more docs and two more inlined
6007
6008 2005-08-30  Wim Taymans  <wim@fluendo.com>
6009
6010         * gst/elements/gstfilesink.c: (gst_file_sink_class_init):
6011         Don't sync to clock.
6012
6013 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
6014
6015         * docs/gst/gstreamer-sections.txt:
6016           ultral33t func10ns deserve to appear in the docs actually
6017         * docs/gst/tmpl/.cvsignore:
6018         * docs/gst/tmpl/gstcompat.sgml:
6019         * docs/gst/tmpl/gstconfig.sgml:
6020         * gst/check/gstcheck.c:
6021         * gst/gstcompat.h:
6022         * gst/gstconfig.h.in:
6023           inlined more docs
6024
6025 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
6026
6027         * docs/gst/tmpl/.cvsignore:
6028         * docs/gst/tmpl/gstquery.sgml:
6029         * docs/gst/tmpl/gstutils.sgml:
6030         * gst/gstquery.c:
6031         * gst/gstquery.h:
6032           inlined and extended docs
6033
6034 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
6035
6036         * check/gst-libs/controller.c: (GST_START_TEST),
6037         (gst_controller_suite):
6038           more tests
6039         * docs/gst/tmpl/gstutils.sgml:
6040         * docs/libs/gstreamer-libs-sections.txt:
6041         * docs/libs/tmpl/gstdataprotocol.sgml:
6042           include path fixes
6043         * examples/controller/audio-example.c: (main):
6044           controller example works now
6045         * gst/gstclock.h:
6046           doc fixes
6047         * tools/gst-inspect.c: (print_element_properties_info):
6048           show param spec flags
6049
6050 2005-08-29  Andy Wingo  <wingo@pobox.com>
6051
6052         * gst/gstutils.c (gst_util_uint64_scale): New 3733t funct10n.
6053
6054 2005-08-28  Andy Wingo  <wingo@pobox.com>
6055
6056         * gst/gstutils.h (GST_BOILERPLATE_FULL): Prototype instance_init
6057         as having two arguments instead of just one. Allows superclasses
6058         to access information on subclasses -- see the terrible for() loop
6059         in gtype.c:g_type_create_instance for the reason why. All callers
6060         changed.
6061
6062 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
6063
6064         * docs/design/part-messages.txt:
6065           update info
6066         * docs/gst/tmpl/.cvsignore:
6067         * docs/gst/tmpl/gstcaps.sgml:
6068         * docs/gst/tmpl/gstclock.sgml:
6069         * gst/gstbus.c:
6070         * gst/gstcaps.c:
6071         * gst/gstcaps.h:
6072         * gst/gstclock.c:
6073         * gst/gstclock.h:
6074         * gst/gstmessage.c:
6075           added descriptions for bus and message
6076           inline caps and clock docs
6077
6078 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
6079
6080         * gst/gstmessage.c:
6081         * gst/gstmessage.h:
6082           doc fixes
6083
6084 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
6085
6086         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
6087           fix div-by-zero
6088
6089 2005-08-26  Andy Wingo  <wingo@pobox.com>
6090
6091         * check/pipelines/simple_launch_lines.c (run_pipeline): Check
6092         element_set_state's return val.
6093         (test_2_elements): Add test that's been disabled for months.
6094
6095         * gst/elements/gstfakesink.c: Cleanups. Add can-activate-push and
6096         can-activate-pull properties.
6097
6098         * gst/elements/gstfakesrc.c: Cleanups. Add can-activate-push and
6099         can-activate-pull properties. Implement is_seekable so fakesrc can
6100         operate in pull mode.
6101
6102         * gst/base/gstbasesink.c (GstBaseSink): Remove has-loop, has-chain
6103         properties.
6104         (gst_base_sink_activate, gst_base_sink_activate_pull)
6105         (gst_base_sink_activate_push): Make activation mode choosing work.
6106         Cleanups.
6107         (gst_base_sink_chain, gst_base_sink_loop): Assert activation mode
6108         is right. Make pull mode work. Post an eos before pausing in pull
6109         mode.
6110         (gst_base_sink_change_state): Pay attention to the core's
6111         change_state() return val.
6112         
6113         * gst/base/gstbasesrc.c (GstBaseSrc): Remove has-loop,
6114         has-getrange properties. Cleanups.
6115         
6116         * gst/base/gstbasesrc.h (GstBaseSrc): Remove has_loop,
6117         has_getrange and replace with can_activate_pull and
6118         can_activate_push.
6119
6120         * gst/base/gstbasesink.h (GstBaseSink): Rearrange fields, add
6121         locking comments. Remove has_loop, has_chain and replace with
6122         can_activate_pull and can_activate_push.
6123
6124 2005-08-26  Jan Schmidt  <thaytan@mad.scientist.com>
6125
6126         * configure.ac:
6127         * examples/Makefile.am:
6128         * examples/metadata/Makefile.am:
6129         * examples/metadata/read-metadata.c: (message_loop),
6130         (have_pad_handler), (make_pipeline), (print_tag), (main):
6131           Add metadata reading example that loops over a list of filenames,
6132           dumping any tags found.
6133
6134         * gst/gstbus.c: (gst_bus_dispose):
6135         * gst/gstelement.c: (gst_element_dispose):
6136           Release a few potentially-held references in dispose.
6137
6138 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
6139
6140         * docs/gst/tmpl/gstminiobject.sgml:
6141           do *not* add tmpl/*.sgml files to CVS!
6142
6143 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
6144
6145         * libs/gst/bytestream/.cvsignore:
6146         * libs/gst/bytestream/Makefile.am:
6147         * libs/gst/bytestream/adapter.c:
6148         * libs/gst/bytestream/adapter.h:
6149         * libs/gst/bytestream/bytestream.c:
6150         * libs/gst/bytestream/bytestream.h:
6151         * libs/gst/bytestream/filepad.c:
6152         * libs/gst/bytestream/filepad.h:
6153           removing obsolete files
6154
6155 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
6156
6157         * docs/gst/gstreamer-docs.sgml:
6158         * docs/libs/gstreamer-libs-docs.sgml:
6159           disabed additional index entries again, as this makes docs-gen just
6160           slow and they aren't useful yet
6161         * docs/libs/gstreamer-libs-sections.txt:
6162           little -section.txt cleanup for libs
6163
6164 2005-08-26  Thomas Vander Stichele  <thomas at apestaart dot org>
6165
6166         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
6167         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size),
6168           fix up some debugging
6169         (gst_base_transform_get_unit_size),
6170         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
6171         (gst_base_transform_handle_buffer):
6172         * gst/base/gstbasetransform.h:
6173           handle and store timed NEWSEGMENT events so that subclasses that
6174           calculate time by counting samples have a segment_start time they
6175           need to add to their timestamps - see audioresample
6176
6177 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
6178
6179         * gst/gstbin.h:
6180           removed ';' from the end of macro defs
6181         * docs/gst/gstreamer-docs.sgml:
6182         * docs/gst/gstreamer-sections.txt:
6183         * docs/gst/tmpl/.cvsignore:
6184         * gst/gstbus.h:
6185         * gst/gstelement.c: (gst_element_class_init),
6186         (gst_element_set_state), (activate_pads),
6187         (gst_element_save_thyself):
6188         * gst/gstevent.c: (gst_event_new_newsegment):
6189         * gst/gstevent.h:
6190         * gst/gstiterator.c:
6191         * gst/gstiterator.h:
6192         * gst/gstpad.c:
6193         * gst/gstprobe.h:
6194         * gst/gstutils.c: (gst_pad_query_convert):
6195         * gst/gstutils.h:
6196           fixed parameter name mismatches between source, header and docs
6197           added some more docs, resolved the last batch of unused elements in
6198           docs (now someone needs to doc them)
6199
6200 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
6201
6202         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_rebuild):
6203         * gst/registries/gstxmlregistry.c: (gst_xml_registry_rebuild):
6204           don't walk through the plugins backwards.  Where is all this
6205           reversed logic coming from ?
6206
6207 2005-08-25  Wim Taymans  <wim@fluendo.com>
6208
6209         * gst/base/gstbasetransform.c: (gst_base_transform_init),
6210         (gst_base_transform_transform_size),
6211         (gst_base_transform_configure_caps),
6212         (gst_base_transform_get_unit_size),
6213         (gst_base_transform_buffer_alloc),
6214         (gst_base_transform_change_state):
6215         * gst/base/gstbasetransform.h:
6216         Cache caps unit_size.
6217         Make sure we cannot negotiate up and downstream at the
6218         same time.
6219
6220 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
6221
6222         * gst/gst.c: (init_pre), (init_post):
6223           register the installed plugin path after the env var
6224         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_save):
6225         * gst/registries/gstxmlregistry.c: (gst_xml_registry_save):
6226           don't reverse order of paths; conserve the order of GST_PLUGIN_PATH
6227           directories, so the tests can prefer uninstalled over installed
6228
6229 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
6230
6231         * gst/base/gstbasetransform.h:
6232           comment
6233         * gst/gstpad.c:
6234           add to docs
6235
6236 2005-08-25  Wim Taymans  <wim@fluendo.com>
6237
6238         * gst/gstbin.c: (bin_bus_handler):
6239         Be a bit more conservative about the posted message.
6240         
6241         * gst/gstbus.c: (gst_bus_post):
6242         Some cleanups, warn wrong return values.
6243
6244 2005-08-25  Jan Schmidt  <thaytan@mad.scientist.com>
6245
6246         * check/gst/gstbin.c: (GST_START_TEST):
6247         * gst/gstbin.c: (bin_bus_handler):
6248         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
6249         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
6250         (gst_message_new_warning), (gst_message_new_tag),
6251         (gst_message_new_state_changed), (gst_message_new_segment_start),
6252         (gst_message_new_segment_done), (gst_message_new_custom):
6253         * gst/gstmessage.h:
6254         * tools/gst-launch.c: (event_loop):
6255         * tools/gst-md5sum.c: (event_loop):
6256           Revert unpopular change for GST_MESSAGE_SRC to GObject.
6257
6258 2005-08-25  Wim Taymans  <wim@fluendo.com>
6259
6260         * check/generic/states.c: (GST_START_TEST):
6261         Cleanup can be done at the end.
6262
6263         * gst/gsttask.c: (gst_task_get_type), (gst_task_finalize),
6264         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
6265         (gst_task_get_state), (gst_task_start), (gst_task_pause):
6266         Oh boy.. Thanks for finding this, Thomas. 
6267
6268 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
6269
6270         * docs/gst/gstreamer.types:
6271           added missing types
6272
6273 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
6274
6275         * docs/gst/gstreamer-docs.sgml:
6276         * docs/gst/gstreamer-sections.txt:
6277         * docs/gst/tmpl/.cvsignore:
6278         * gst/gstbin.c:
6279         * gst/gstiterator.c:
6280         * gst/gstutils.c:
6281         * gst/registries/gstxmlregistry.h:
6282           added missing classes and symbols (123 more to go)
6283           removed removed symbols from section file
6284           fixed many doc-comments
6285
6286 2005-08-24  Wim Taymans  <wim@fluendo.com>
6287
6288         * check/generic/states.c: (GST_START_TEST):
6289         Make sure all tasks are stopped.
6290
6291         * check/gst/gstbin.c: (GST_START_TEST):
6292         Unref after usage for proper valgrinding.
6293
6294         * gst/gstpad.c: (gst_pad_finalize), (gst_pad_stop_task):
6295         Really wait for the task to stop before destroying the
6296         mutex.
6297
6298         * gst/gstqueue.c: (gst_queue_sink_activate_push),
6299         (gst_queue_src_activate_push):
6300         Small cleanups. Don't stop the task when we did not start
6301         it.
6302
6303         * gst/gsttask.c: (gst_task_get_type), (gst_task_init),
6304         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
6305         (gst_task_get_state), (gst_task_start), (gst_task_pause),
6306         (gst_task_join):
6307         * gst/gsttask.h:
6308         Protect the stream lock with the object lock.
6309         Disallow setting the stream lock when running.
6310         Add cleanup_all to wait for the threadpool to finish.
6311         Remove code to autoallocate a mutex if none was provided.
6312         Add _join() to wait for a task to stop.
6313         Protect the thread pool with a global lock.
6314
6315 2005-08-24  Wim Taymans  <wim@fluendo.com>
6316
6317         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6318         (gst_base_sink_get_times), (gst_base_sink_do_sync),
6319         (gst_base_sink_handle_buffer), (gst_base_sink_change_state):
6320         * gst/base/gstbasesink.h:
6321         Handle newsegment events correctly.
6322         Drop buffers out of the segment range.
6323
6324 2005-08-22  Andy Wingo  <wingo@pobox.com>
6325
6326         * gst/gstutils.h (GST_BOILERPLATE_WITH_INTERFACE): New ghetto
6327         macro, implements an interface and gstimplementsinterface for a
6328         new type.
6329
6330 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
6331
6332         * check/Makefile.am:
6333         * check/generic/states.c: (GST_START_TEST), (states_suite), (main):
6334           add a test that does a bunch of state changes on elements
6335           needs some fixing for valgrind
6336         * check/states/sinks.c: (gst_object_suite):
6337           whitespace
6338         * gst/gstcaps.h:
6339           add prototype for gst_caps_is_equal_fixed
6340         * gst/gstplugin.c:
6341         * gst/gstregistrypool.c:
6342           doc fixes
6343
6344 2005-08-24  Andy Wingo  <wingo@pobox.com>
6345
6346         * gst/gstquery.c (gst_query_new_convert): Spew if we try to
6347         convert a negative value. Doesn't make much sense. Mostly this is
6348         here to force callers to ensure -1 maps to -1.
6349
6350 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
6351
6352         * docs/pwg/advanced-types.xml:
6353           Well done to Michael for catching my deliberate introduction
6354           of this spelling mistake. 
6355         * gst/gstbin.c: (gst_bin_remove_func), (bin_bus_handler):
6356         * gst/gstelement.h:
6357           Add GST_ELEMENT_UNPARENTING to prevent races so that we can
6358           unlink pads before removing the element from the bin.
6359
6360 2005-08-24  Andy Wingo  <wingo@pobox.com>
6361
6362         * gst/gst.c (parse_debug_list): Accept e.g. GST_DEBUG=4 to mean
6363         the same thing as GST_DEBUG=*:4.
6364         (parse_debug_level, parse_debug_category): New helper parsers.
6365
6366 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
6367
6368         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
6369         (gst_base_transform_transform_size), (gst_base_transform_getcaps),
6370         (gst_base_transform_setcaps), (gst_base_transform_get_unit_size),
6371         (gst_base_transform_buffer_alloc),
6372         (gst_base_transform_handle_buffer):
6373           use gboolean return values and pointers to size so we can use the
6374           full GST_BUFFER_SIZE range (guint) for buffer sizes
6375           use GstPadDirection for transform_caps
6376         * gst/base/gstbasetransform.h:
6377           rename get_size to get_unit_size since that's what it is
6378         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_caps):
6379           use GstPadDirection for transform_caps
6380         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
6381         * gst/gstutils.h:
6382           cleanup and debugging
6383
6384 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
6385
6386         * gst/gstelement.c: (gst_element_class_init),
6387         (gst_element_set_state), (activate_pads),
6388         (gst_element_save_thyself):
6389         * tools/gst-compprep.c: (main):
6390         * tools/gst-inspect.c: (print_element_properties_info):
6391         * tools/gst-xmlinspect.c: (print_element_properties):
6392           Fixed long standing mem-leak
6393
6394 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
6395
6396         * check/gst/gstbin.c: (GST_START_TEST):
6397         * gst/gstbin.c: (bin_bus_handler):
6398         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
6399         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
6400         (gst_message_new_warning), (gst_message_new_tag),
6401         (gst_message_new_state_changed), (gst_message_new_segment_start),
6402         (gst_message_new_segment_done), (gst_message_new_custom):
6403         * gst/gstmessage.h:
6404         * tools/gst-launch.c: (event_loop):
6405         * tools/gst-md5sum.c: (event_loop):
6406           Change GST_MESSAGE_SRC to be a GObject rather than a GstObject, so
6407           that applications can sensibly post custom messages with references
6408           to their own objects.
6409
6410 2005-08-24  Andy Wingo  <wingo@pobox.com>
6411
6412         * gst/gstpad.c (gst_pad_fixate_caps): Check if the caps is fixed
6413         already.
6414
6415 2005-08-24  Wim Taymans  <wim@fluendo.com>
6416
6417         * gst/base/gstbasetransform.c: (gst_base_transform_init),
6418         (gst_base_transform_transform_caps),
6419         (gst_base_transform_transform_size),
6420         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
6421         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
6422         (gst_base_transform_handle_buffer):
6423         * gst/base/gstbasetransform.h:
6424         Many fixes and new features added by Thomas. Can now also do
6425         transforms with variable sizes and a custom fixate_caps function.
6426
6427 2005-08-24  Wim Taymans  <wim@fluendo.com>
6428
6429         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
6430         Some debugging.
6431
6432         * gst/gstclock.h:
6433         Cast to ClockTime before formatting to time.
6434
6435         * gst/gstutils.h:
6436         Cleanups.
6437
6438 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
6439
6440         * check/gst-libs/controller.c: (GST_START_TEST),
6441         (gst_controller_suite):
6442         * docs/gst/tmpl/gstcaps.sgml:
6443         * docs/gst/tmpl/gstghostpad.sgml:
6444         * docs/gst/tmpl/gstquery.sgml:
6445         * docs/gst/tmpl/gstutils.sgml:
6446         * libs/gst/controller/gst-helper.c: (gst_object_set_controller),
6447         (gst_object_sink_values), (gst_object_get_value_arrays),
6448         (gst_object_get_value_array):
6449           gracefully handle helper method calls to objects that are not beeing
6450           controlled, added test case for that          
6451
6452 2005-08-23  Wim Taymans  <wim@fluendo.com>
6453
6454         * gst/gstevent.c: (_gst_event_copy), (gst_event_new_custom),
6455         (gst_event_new_newsegment), (gst_event_parse_newsegment),
6456         (gst_event_new_tag), (gst_event_parse_tag), (gst_event_new_qos),
6457         (gst_event_parse_qos), (gst_event_new_seek),
6458         (gst_event_parse_seek):
6459         * gst/gstevent.h:
6460         Some more debugging output and doc cleanups.
6461
6462         * gst/gstqueue.c: (gst_queue_handle_sink_event):
6463         Fix possible deadlock.
6464
6465 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
6466
6467         * docs/gst/gstreamer-docs.sgml:
6468         * docs/gst/gstreamer-sections.txt:
6469         * docs/gst/gstreamer.types:
6470         * docs/gst/tmpl/.cvsignore:
6471         * gst/gstbin.h:
6472         * gst/gstbus.c:
6473         * gst/gstelement.c:
6474         * gst/gstevent.h:
6475           added 100 symbols from gstreamer-unused.txt to the right sections
6476           fixed more broken comments
6477           added GstBus to docs
6478
6479 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
6480
6481         * docs/gst/gstreamer-sections.txt:
6482         * docs/gst/tmpl/.cvsignore:
6483         * docs/gst/tmpl/gstbin.sgml:
6484         * docs/gst/tmpl/gstbuffer.sgml:
6485         * gst/base/gstbasesrc.c:
6486         * gst/gstbin.c: (gst_bin_get_type), (gst_bin_class_init):
6487         * gst/gstbuffer.c:
6488         * gst/gstbuffer.h:
6489         * tools/gst-launch.1.in:
6490           inlined more doc comments, added missing comments and fixed comments
6491           fixed typos
6492
6493 2005-08-23  Thomas Vander Stichele  <thomas at apestaart dot org>
6494
6495         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
6496           some debugging
6497         * gst/gstcaps.h:
6498           whitespace fixes
6499         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_alloc_buffer):
6500           more debugging
6501         * gst/gststructure.c: (gst_caps_structure_fixate_field_boolean):
6502         * gst/gststructure.h:
6503           add a fixate function for booleans; add a FIXME that these func
6504           names should probably be gst_structure_fixate_*
6505
6506 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
6507
6508         * docs/gst/gstreamer-docs.sgml:
6509         * docs/gst/gstreamer-sections.txt:
6510         * gst/Makefile.am:
6511         * gst/gstbin.c: (gst_bin_get_type),
6512         (gst_bin_child_proxy_get_child_by_index),
6513         (gst_bin_child_proxy_get_children_count),
6514         (gst_bin_child_proxy_init):
6515         * gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
6516         (gst_child_proxy_get_child_by_index),
6517         (gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
6518         (gst_child_proxy_get_property), (gst_child_proxy_get_valist),
6519         (gst_child_proxy_get), (gst_child_proxy_set_property),
6520         (gst_child_proxy_set_valist), (gst_child_proxy_set),
6521         (gst_child_proxy_child_added), (gst_child_proxy_child_removed),
6522         (gst_child_proxy_base_init), (gst_child_proxy_get_type):
6523         * gst/gstchildproxy.h:
6524         * gst/parse/grammar.y:
6525         * tools/gst-inspect.c: (print_interfaces),
6526         (print_element_properties_info), (print_element_info):
6527           ported gstchildproxy over from 0.8
6528           ported gst-inspect fixes and enhancements over from 0.8
6529
6530 2005-08-22  Wim Taymans  <wim@fluendo.com>
6531
6532         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
6533         (gst_base_transform_handle_buffer):
6534         Also call the transform function if we have ANY caps.
6535
6536         * gst/gstpipeline.c: (gst_pipeline_set_new_stream_time):
6537         Fix debug info.
6538
6539 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
6540
6541         * gst/base/gstbasesrc.c: (gst_base_src_event_handler)
6542           Don't pretend to handle seek events if the source is not seekable
6543
6544 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
6545
6546         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
6547           Remove extra parameter to debug output
6548
6549         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
6550         (gst_base_src_do_seek), (gst_base_src_activate_push):
6551           Fix seek event handling.
6552
6553         * gst/gstpipeline.c: (gst_pipeline_change_state):
6554         * gst/gstqueue.c: (gst_queue_handle_sink_event),
6555         (gst_queue_src_activate_push):
6556           Don't start the src pad task on FLUSH_STOP if the pad
6557           isn't linked.
6558           Debug changes.
6559
6560 2005-08-22  Wim Taymans  <wim@fluendo.com>
6561
6562         * check/gst/gstcaps.c: (GST_START_TEST), (gst_caps_suite):
6563         Added check for gst_static_caps_get() refcounting.
6564
6565 2005-08-22  Wim Taymans  <wim@fluendo.com>
6566
6567         * gst/gstcaps.c: (gst_static_caps_get), (gst_caps_to_string):
6568         Make _static_caps_get() refcounting sane.
6569         
6570         * gst/gstelement.c: (gst_element_set_state):
6571         Add g_return_val_if_fail() to protect against segfaults.
6572
6573 2005-08-22  Stefan Kost  <ensonic@users.sf.net>
6574
6575         * docs/gst/tmpl/gstevent.sgml:
6576         * gst/gstevent.c:
6577         * gst/gstevent.h:
6578           inlined remaining docs, added missing doc comments
6579
6580 2005-08-22  Thomas Vander Stichele  <thomas at apestaart dot org>
6581
6582         * check/gst/gstbin.c: (GST_START_TEST):
6583           since we don't know when preroll is done, use refcount range
6584           check for the sink
6585         * gst/check/gstcheck.h:
6586           add macro for checking refcount range
6587
6588 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
6589
6590         * check/Makefile.am:
6591           clean up environment for when registry gets built versus
6592           when actual tests are run; valgrind seems to not report
6593           leaks if GST_PLUGIN_PATH is set to some specific values
6594         * check/gst/gstbin.c: (GST_START_TEST):
6595           add more refcounting checks; maybe this exposes a
6596           preroll lock bug ?
6597         * common/check.mak:
6598         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
6599         * gst/check/gstcheck.h:
6600         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_get_state),
6601         (gst_bin_change_state):
6602         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_chain):
6603           add/fix debugging/whitespace
6604
6605 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
6606
6607         * check/gst/gstevent.c: (event_probe), (test_event),
6608         (GST_START_TEST):
6609          Er, don't call gst_bin_watch_for_state_change you idiot.
6610
6611 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
6612
6613         * check/Makefile.am:
6614           Use CHECK_CFLAGS and CHECK_LIBS
6615         * check/gst/gstevent.c: (event_probe), (test_event),
6616         (GST_START_TEST):
6617           Don't leak events.
6618         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
6619         (gst_base_src_start), (gst_base_src_stop),
6620         (gst_base_src_activate_push), (gst_base_src_activate_pull),
6621         (gst_base_src_change_state):
6622           Sprinkle gst_base_src_stop liberally around error paths to fix
6623           problems reusing a source after failed state changes.
6624         * gst/base/gsttypefindhelper.c: (helper_find_peek),
6625         (helper_find_suggest), (gst_type_find_helper):
6626           Extra debug output. Don't segfault on GST_PAD_GETRANGEFUNC = NULL
6627         * gst/gstevent.h:
6628         * docs/gst/tmpl/gstevent.sgml:
6629           Migrate part of the docs from the SGML file. Wait for ensonic to
6630           tell me how I did it wrong ;)
6631         * tools/gst-typefind.c: (main):
6632           Extra robustness to state changes between files.
6633
6634 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
6635
6636         * check/Makefile.am:
6637           don't valgrind the controller test - it's leaking - Stefan, HELP
6638         * gst/check/gstcheck.c: (gst_check_message_error),
6639         (gst_check_chain_func), (gst_check_setup_element),
6640         (gst_check_teardown_element), (gst_check_setup_src_pad),
6641         (gst_check_teardown_src_pad), (gst_check_setup_sink_pad),
6642         (gst_check_teardown_sink_pad):
6643         * gst/check/gstcheck.h:
6644           add a bunch of methods to set up elements, and src and sink pads
6645         * check/elements/fakesrc.c: (setup_fakesrc), (cleanup_fakesrc):
6646         * check/elements/identity.c: (setup_identity), (cleanup_identity),
6647         (GST_START_TEST):
6648           use them
6649         * gst/gstmessage.c:
6650         * gst/gsttag.h:
6651           whitespace/doc fixes
6652
6653 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
6654
6655         * gst/gstelement.h:
6656           make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should
6657           be handled by the application and not always printed as well
6658
6659 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
6660
6661         * check/Makefile.am:
6662           set GST_TOOLS_DIR
6663         * gst/check/gstcheck.c: (gst_check_message_error):
6664         * gst/check/gstcheck.h:
6665           add a fail_unless_equals_int
6666           add fail_unless for error messages
6667
6668 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
6669
6670         * check/Makefile.am:
6671         * check/gst.supp:
6672         * common/Makefile.am:
6673         * common/check.mak:
6674         * common/gst.supp:
6675           factor out some of the common stuff so we can use it
6676
6677 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
6678
6679         * check/Makefile.am:
6680         * check/gst/gstiterator.c: (GST_START_TEST):
6681         * check/gst/gstsystemclock.c: (GST_START_TEST),
6682         (gst_systemclock_suite):
6683         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
6684         * gst/gstclock.c:
6685           valgrind more tests
6686
6687 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
6688
6689         * check/elements/.cvsignore:
6690         * check/elements/gstfakesrc.c:
6691           rename to name of element
6692         * check/elements/identity.c: (chain_func), (event_func),
6693         (setup_identity), (cleanup_identity), (GST_START_TEST),
6694         (identity_suite), (main):
6695           add a test for identity
6696         * check/Makefile.am:
6697         * pkgconfig/Makefile.am:
6698         * pkgconfig/gstreamer-check.pc.in:
6699         * pkgconfig/gstreamer-check-uninstalled.pc.in:
6700         * gst/check:
6701         * gst/Makefile.am:
6702         * configure.ac:
6703           move the check stuff to a library that gets installed
6704         * check/gst-libs/controller.c: (GST_START_TEST):
6705         * check/gst-libs/gdp.c:
6706         * check/gst/gst.c: (GST_START_TEST):
6707         * check/gst/gstbin.c:
6708         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
6709         * check/gst/gstbus.c:
6710         * check/gst/gstcaps.c: (GST_START_TEST):
6711         * check/gst/gstelement.c:
6712         * check/gst/gstghostpad.c:
6713         * check/gst/gstiterator.c:
6714         * check/gst/gstmessage.c:
6715         * check/gst/gstminiobject.c: (thread_ref), (GST_START_TEST):
6716         * check/gst/gstobject.c:
6717         * check/gst/gstpad.c: (GST_START_TEST):
6718         * check/gst/gststructure.c: (GST_START_TEST):
6719         * check/gst/gstsystemclock.c: (GST_START_TEST),
6720         (gst_systemclock_suite):
6721         * check/gst/gsttag.c: (gst_tag_suite):
6722         * check/gst/gstvalue.c:
6723         * check/pipelines/cleanup.c:
6724         * check/pipelines/simple_launch_lines.c:
6725         * check/states/sinks.c:
6726           change include statement
6727
6728         * docs/gst/gstreamer-sections.txt:
6729         * docs/gst/tmpl/gstpad.sgml:
6730           document more pad stuff
6731         * gst/gstminiobject.c: (gst_mini_object_ref),
6732         (gst_mini_object_unref):
6733           debug refcounting
6734
6735 2005-08-19  Stefan Kost  <ensonic@users.sf.net>
6736
6737         * docs/gst/tmpl/gst.sgml:
6738         * gst/gst.c:
6739           eliminate another tmpl file, fix spelling in the long-description
6740
6741 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
6742
6743         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
6744         (test_event), (timediff), (gstevents_suite):
6745           Should fix build on 64-bit arch's
6746
6747 2005-08-18  Andy Wingo  <wingo@pobox.com>
6748
6749         Make sure that when a pipeline goes to PLAYING, that data has
6750         actually hit the sink.
6751
6752         * check/states/sinks.c (test_sink): A sink that doesn't get any
6753         data shouldn't return SUCCESS for going to either PLAYING or
6754         PAUSED. Test also the return values on the way back down.
6755
6756         * gst/gstelement.c (gst_element_set_state): When changing the
6757         state of an element currently changing state asynchronously, go to
6758         lost-state after commiting the pending state. Makes future calls
6759         to get_state continue to return ASYNC.
6760
6761         * gst/base/gstbasesink.c (gst_base_sink_change_state): Return
6762         ASYNC when going to PLAYING if we still don't have preroll, as can
6763         happen with live sources.
6764
6765 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
6766
6767         * docs/pwg/advanced-types.xml:
6768           Hack long paragraph into 2 chunks as a workaround for buggy
6769           jadetex version in sid and breezy that loops infinitely and
6770           eats all RAM.
6771
6772 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
6773
6774         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
6775         (test_event), (timediff), (gstevents_suite):
6776           Provide more error margin in clock measurements to allow for 
6777           g_get_current_time inaccuracies.
6778
6779 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
6780
6781         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
6782         (test_event), (timediff), (gstevents_suite):
6783            Fix error message output so I might be able to tell why the
6784            test works here but fails on the build farm.
6785
6786 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
6787
6788         * check/Makefile.am:
6789         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
6790         (test_event), (timediff), (gstevents_suite), (main):
6791           I wrote a test!
6792
6793         * docs/design/part-seeking.txt:
6794           Spelling correction
6795
6796         * docs/gst/tmpl/gstevent.sgml:
6797         * docs/gst/tmpl/gstfakesrc.sgml:
6798           Docs updates.
6799
6800         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
6801           Treat a buffer-without-newsegment the same as a receiving 
6802           a newsegment not in time format, and disable syncing to the clock
6803           with a warning.
6804
6805         * gst/gstbus.c: (gst_bus_set_sync_handler):
6806           Assert if anyone tries to replace the existing sync_handler for bus, 
6807           as only the owner should be setting it.
6808
6809         * gst/gstevent.h:
6810           Have a fixed set of custom event enums with events identified by
6811           their structure name (as in 0.8), rather than a free-for-all
6812           allowing collisions between enum values from different plugins.
6813
6814         * gst/gstpad.c: (gst_pad_class_init):
6815           Docs change.
6816           
6817         * gst/gstqueue.c: (gst_queue_handle_sink_event):
6818           Handle out-of-band downstream events from the sending thread.
6819
6820 2005-08-17  Andy Wingo  <wingo@pobox.com>
6821
6822         * gst/gstpipeline.c (gst_pipeline_change_state): Interpret
6823         play-timeout==0 to mean no timeout at all. In that case, don't
6824         bother with a get_state or a warning, just return directly, even
6825         if it's ASYNC.
6826
6827         * gst/base/gstbasetransform.c: Debug changes.
6828
6829         * gst/gstutils.h:
6830         * gst/gstutils.c (gst_bin_watch_for_state_change): Add function to
6831         ensure bins post state change messages. A bit of a hack but I can't
6832         think of a way to avoid it.
6833
6834         * check/gst/gstbin.c (test_watch_for_state_change): Added test.
6835
6836 2005-08-16  Andy Wingo  <wingo@pobox.com>
6837
6838         * gst/base/gstadapter.h:
6839         * gst/base/gstadapter.c (gst_adapter_take): New function, like
6840         peek() but you own the data. Not terribly efficient atm.
6841
6842 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6843
6844         * gst/gstutils.c: (gst_element_found_tags_for_pad), (push_and_ref),
6845         (gst_element_found_tags):
6846         * gst/gstutils.h:
6847           Add two utility functions for tag handling.
6848
6849 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6850
6851         * docs/manual/advanced-dataaccess.xml:
6852         * docs/manual/basics-helloworld.xml:
6853           Fix docs to use _bin_add() before _link(), which fixes the examples
6854           with recent core versions (reported by Madhan Raj M
6855           <raj_madan@rediffmail.com>, #313199).
6856
6857 2005-08-16  Wim Taymans  <wim@fluendo.com>
6858
6859         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
6860         Added subtract checks.
6861
6862         * docs/design/part-events.txt:
6863         Some more docs about newsegment
6864
6865         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
6866         Fix FIXME
6867
6868         * gst/gstcaps.c: (gst_caps_to_string):
6869         Add comments, cleanups.
6870         
6871         * gst/gstelement.c: (gst_element_save_thyself):
6872         cleanups
6873         
6874         * gst/gstvalue.c: (gst_value_collect_int_range),
6875         (gst_string_unwrap), (gst_value_union_int_int_range),
6876         (gst_value_union_int_range_int_range),
6877         (gst_value_intersect_int_int_range),
6878         (gst_value_intersect_int_range_int_range),
6879         (gst_value_intersect_double_double_range),
6880         (gst_value_intersect_double_range_double_range),
6881         (gst_value_intersect_list), (gst_value_subtract_int_int_range),
6882         (gst_value_subtract_int_range_int),
6883         (gst_value_subtract_double_range_double),
6884         (gst_value_subtract_double_range_double_range),
6885         (gst_value_subtract_from_list), (gst_value_subtract_list),
6886         (gst_value_can_compare), (gst_value_compare_fraction):
6887         Cleanups, add comments, remove unneeded asserts.
6888
6889 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
6890
6891         * tools/gst-launch.c: (event_loop):
6892           don't convert NULL structures to strings
6893
6894 2005-08-15  Stefan Kost  <ensonic@users.sf.net>
6895
6896         * docs/gst/gstreamer-sections.txt:
6897           made some defines private
6898         * docs/gst/tmpl/gstconfig.sgml:
6899         * docs/gst/tmpl/gstqueue.sgml:
6900         * docs/gst/tmpl/gsttaglist.sgml:
6901         * docs/gst/tmpl/gsttypes.sgml:
6902         * docs/gst/tmpl/gstutils.sgml:
6903         * docs/pwg/appendix-porting.xml:
6904         * gst/base/gstbasesink.h:
6905         * gst/base/gstbasesrc.c:
6906         * gst/base/gstbasesrc.h:
6907         * gst/elements/gstfakesink.c: (gst_fake_sink_class_init):
6908         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init):
6909         * gst/gstelement.c: (gst_element_class_init):
6910         * gst/gstpad.c: (gst_pad_class_init):
6911         * gst/gstqueue.c: (gst_queue_class_init):
6912         * gst/gstxml.c: (gst_xml_class_init):
6913           documented all undocumented signal inline
6914         * libs/gst/controller/gst-controller.h:
6915           added padding
6916
6917 2005-08-15  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6918
6919         * docs/pwg/appendix-porting.xml:
6920           Document _set_link_function -> _set_setcaps_function.
6921
6922 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
6923
6924         * check/Makefile.am:
6925           add a .check target for running the check
6926         * check/gst-libs/controller.c: (GST_START_TEST):
6927           cosmetic fixups
6928         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
6929           complete checks for gstbuffer; would be nice if I could get the
6930           gcov stuff to work so I can see if I actually completed gstbuffer.c
6931         * check/gstcheck.h:
6932           add ASSERT_BUFFER_REFCOUNT
6933
6934 2005-08-13  Tim-Philipp Müller  <tim at centricular dot net>
6935
6936         * docs/gst/gstreamer-sections.txt:
6937         * gst/gsttag.c: (_gst_tag_initialize), (gst_tag_register):
6938         * gst/gsttag.h:
6939           Add GST_TAG_LANGUAGE_CODE as we have in 0.8, and don't
6940           spew out a warning if a tag that is already registered
6941           is re-registered, unless it is re-registered with a 
6942           different type (#308438).
6943
6944 2005-08-12  Tim-Philipp Müller  <tim at centricular dot net>
6945
6946         * docs/pwg/appendix-porting.xml:
6947         * docs/pwg/building-state.xml:
6948           Add some paragraphs about state changes in 0.9 to the PWG
6949           and the porting guide, in particular about the new meaning
6950           of GST_STATE_PAUSED and how to write state change functions
6951           with concurrent access by multiple threads in mind.
6952
6953 2005-08-11  Stefan Kost  <ensonic@users.sf.net>
6954
6955         * docs/gst/gstreamer-docs.sgml:
6956         * docs/libs/gstreamer-libs-docs.sgml:
6957           added deprecation and since indexes
6958         * libs/gst/controller/gst-controller.c:
6959         * libs/gst/controller/gst-helper.c:
6960           added since tags
6961
6962
6963 2005-08-11  Wim Taymans  <wim@fluendo.com>
6964
6965         * gst/gstghostpad.c: (gst_proxy_pad_set_target_unlocked),
6966         (gst_proxy_pad_set_target), (gst_proxy_pad_get_target),
6967         (gst_proxy_pad_dispose), (gst_ghost_pad_do_activate_push),
6968         (gst_ghost_pad_do_link), (gst_ghost_pad_set_internal),
6969         (gst_ghost_pad_new_notarget), (gst_ghost_pad_get_target),
6970         (gst_ghost_pad_set_target):
6971         Actually implement (re)setting the target on a ghostpad
6972         as described in the docs.
6973
6974 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
6975
6976         * gst/gst.c: (gst_init_check_with_popt_table), (init_pre):
6977           Check whether GST_DEBUG_NO_COLOR environment variable is
6978           set and disable coloured debug output if that is the case.
6979
6980 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
6981
6982         * gst/base/gsttypefindhelper.c: (helper_find_peek),
6983         (gst_type_find_helper):
6984           The memory returned by gst_type_find_peek() needs to
6985           stay valid until the end of a typefind function, and
6986           typefind functions may keep results from different 
6987           offsets around, so we can't just unref the buffer from
6988           the previous _peek(), but have to save all buffers 
6989           returned by _peek() until typefinding is done and only
6990           free them then.
6991
6992 2005-08-09  Tim-Philipp Müller  <tim at centricular dot net>
6993
6994         * docs/gst/gstreamer-sections.txt:
6995         * gst/gstutils.h:
6996           New macros: GST_ROUND_UP_2() through GST_ROUND_UP_64().
6997
6998 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6999
7000         * gst/base/gstbasetransform.c: (gst_base_transform_buffer_alloc):
7001           Fix a pretty good memleak.
7002
7003 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
7004
7005         * gst/gstiterator.h:
7006           Fix wrong include and 'make distcheck'.
7007
7008 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7009
7010         * gst/gstbin.c: (bin_bus_handler):
7011           Use gst_element_post_message() instead.
7012
7013 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
7014
7015         * gst/base/gstadapter.h:
7016         * gst/base/gstbasesink.h:
7017         * gst/base/gstbasesrc.h:
7018         * gst/base/gstbasetransform.h:
7019         * gst/base/gstcollectpads.h:
7020         * gst/base/gstpushsrc.h:
7021         * gst/gstiterator.h:
7022           Add padding to our base elements' class and instance structs and
7023           to GstIterator (you will need to rebuild all plugins and apps!)
7024
7025 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7026
7027         * gst/gstbin.c: (bin_bus_handler):
7028           Make default message forwarding from child->bus to bin->bus
7029           threadsafe and make it not emit warnings if the parent has no bus.
7030
7031 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7032
7033         * gst/gstelement.c: (activate_pads):
7034           On paused->ready, set pad->caps to NULL, as is the documented
7035           behaviour in this state change. Fixes playback of series of
7036           media files when visualization is enabled in Totem.
7037
7038 2005-08-07  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7039
7040         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
7041           Allow NULL as filter-caps (which means "any").
7042
7043 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
7044
7045         * docs/libs/gstreamer-libs-sections.txt:
7046         * libs/gst/controller/gst-controller.c:
7047         * libs/gst/controller/gst-controller.h:
7048         * libs/gst/controller/gst-helper.c:
7049           adding more entries to the docs and fix small doc-bugs
7050
7051 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
7052
7053         * docs/gst/gstreamer-docs.sgml:
7054         * docs/gst/gstreamer-sections.txt:
7055         * docs/gst/gstreamer.types:
7056         * docs/gst/tmpl/gstbasesink.sgml:
7057         * docs/gst/tmpl/gstbasesrc.sgml:
7058         * docs/gst/tmpl/gstbasetransform.sgml:
7059         * docs/gst/tmpl/gstfakesrc.sgml:
7060         * gst/base/gstcollectpads.c:
7061         * gst/base/gstcollectpads.h:
7062         * libs/gst/controller/gst-controller.c:
7063         * libs/gst/controller/gst-controller.h:
7064         * libs/gst/controller/gst-helper.c:
7065         * libs/gst/controller/gst-interpolation.c:
7066         * libs/gst/controller/lib.c:
7067           added long/short desc for controller docs
7068           added collectpads base class docs
7069           added correct includes to base-class docs
7070
7071 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
7072
7073         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
7074         (gst_test_mono_source_set_property),
7075         (gst_test_mono_source_class_init), (GST_START_TEST),
7076         (gst_controller_suite):
7077         * docs/gst/gstreamer-docs.sgml:
7078         * docs/gst/gstreamer-sections.txt:
7079         * docs/gst/gstreamer.types:
7080         * docs/libs/gstreamer-libs-docs.sgml:
7081         * docs/libs/gstreamer-libs-sections.txt:
7082         * gst/base/gstadapter.c:
7083         * libs/gst/controller/gst-controller.c:
7084         (gst_controlled_property_new), (gst_controlled_property_free),
7085         (gst_controller_new_valist),
7086         (gst_controller_remove_properties_valist),
7087         (gst_controller_sink_values), (_gst_controller_finalize):
7088         * libs/gst/controller/gst-controller.h:
7089         * libs/gst/controller/gst-helper.c:
7090         (gst_object_control_properties), (gst_object_uncontrol_properties),
7091         (gst_object_get_controller), (gst_object_set_controller),
7092         (gst_object_sink_values), (gst_object_get_value_arrays),
7093         (gst_object_get_value_array):
7094           more tests (and fixes) for the controller
7095           more docs for the controller
7096           integrated companies docs for the adapter 
7097
7098 2005-08-05  Thomas Vander Stichele  <thomas at apestaart dot org>
7099
7100         * check/elements/gstfakesrc.c: (setup_fakesrc), (cleanup_fakesrc),
7101         (GST_START_TEST), (fakesrc_suite):
7102           add tests for sizetype
7103
7104 2005-08-04  Andy Wingo  <wingo@pobox.com>
7105
7106         * gst/elements/gstcapsfilter.c: Reimplement using basetransform,
7107         fixes buffer_alloc proxying among other things.
7108
7109         * gst/base/gstbasetransform.c:
7110         * gst/base/gstbasetransform.h:
7111         Revert patch to gstbasetransform from 7-28 removing
7112         delay_configure.
7113
7114         * gst/base/gstbasetransform.h (GstBaseTransformClass.get_size):
7115         * gst/base/gstbasetransform.c (gst_base_transform_get_size):
7116         Semantics changed, should return not the size of the output buffer
7117         but the byte size of a buffer with a given caps.
7118
7119         * gst/base/gstbasetransform.c (gst_base_transform_getcaps): Better
7120         debug object.
7121         (gst_base_transform_configure_caps): Don't set out_size here: (in,
7122         out) are not the pad caps until setcaps finishes.
7123         (gst_base_transform_buffer_alloc): Proxy the buffer_alloc for the
7124         not-in-place case as well. Deal with changing from in-place to
7125         not-in-place within calling pad_alloc_buffer. Still a bit
7126         concerned about the overhead here...
7127
7128 2005-08-03  Andy Wingo  <wingo@pobox.com>
7129
7130         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): Not
7131         fixating is an error.
7132
7133 2005-08-04  Edward Hervey  <edward@fluendo.com>
7134
7135         * gst/base/gstadapter.h: 
7136         Added gst_adapter_get_type() to the header
7137
7138 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
7139
7140         * check/Makefile.am:
7141         * check/gst-libs/controller.c:
7142         * libs/gst/controller/gst-controller.c:
7143         (gst_controller_new_valist):
7144           added check test suite for the controller
7145         * gst/base/gstpushsrc.c:
7146           fixed a doc typo
7147
7148 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
7149
7150         * docs/gst/Makefile.am:
7151         * docs/gst/gstreamer-docs.sgml:
7152         * docs/gst/gstreamer-sections.txt:
7153         * docs/gst/gstreamer.types:
7154         * docs/gst/tmpl/gstfakesrc.sgml:
7155         * gst/base/README:
7156         * gst/base/gstbasesink.c:
7157         * gst/base/gstbasesink.h:
7158         * gst/base/gstbasesrc.c:
7159         * gst/base/gstbasesrc.h:
7160         * gst/base/gstbasetransform.c:
7161         * gst/base/gstpushsrc.c:
7162         * gst/base/gstpushsrc.h:
7163           add short/long description docs to base classes
7164           add pushsrc to the docs
7165           remove consolidated doc fragments
7166
7167 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
7168
7169         * configure.ac:
7170         * docs/libs/Makefile.am:
7171         * docs/libs/gstreamer-libs-docs.sgml:
7172         * docs/libs/gstreamer-libs-sections.txt:
7173         * docs/libs/gstreamer-libs.types:
7174         * examples/Makefile.am:
7175         * examples/controller/.cvsignore:
7176         * examples/controller/Makefile.am:
7177         * examples/controller/audio-example.c: (main):
7178         * libs/gst/Makefile.am:
7179         * libs/gst/controller/.cvsignore:
7180         * libs/gst/controller/Makefile.am:
7181         * libs/gst/controller/gst-controller.c:
7182         (on_object_controlled_property_changed), (gst_timed_value_compare),
7183         (gst_timed_value_find),
7184         (gst_controlled_property_set_interpolation_mode),
7185         (gst_controlled_property_new), (gst_controlled_property_free),
7186         (gst_controller_find_controlled_property),
7187         (gst_controller_new_valist), (gst_controller_new),
7188         (gst_controller_remove_properties_valist),
7189         (gst_controller_remove_properties), (gst_controller_set),
7190         (gst_controller_set_from_list), (gst_controller_unset),
7191         (gst_controller_get), (gst_controller_get_all),
7192         (gst_controller_sink_values), (gst_controller_get_value_arrays),
7193         (gst_controller_get_value_array),
7194         (gst_controller_set_interpolation_mode),
7195         (_gst_controller_finalize), (_gst_controller_init),
7196         (_gst_controller_class_init), (gst_controller_get_type):
7197         * libs/gst/controller/gst-controller.h:
7198         * libs/gst/controller/gst-helper.c: (g_object_control_properties),
7199         (g_object_uncontrol_properties), (g_object_get_controller),
7200         (g_object_set_controller), (g_object_sink_values),
7201         (g_object_get_value_arrays), (g_object_get_value_array):
7202         * libs/gst/controller/gst-interpolation.c:
7203         (gst_controlled_property_find_timed_value_node),
7204         (interpolate_none_get), (interpolate_trigger_get),
7205         (interpolate_trigger_get_value_array):
7206         * libs/gst/controller/lib.c: (gst_controller_init):
7207         * pkgconfig/Makefile.am:
7208         * pkgconfig/gstreamer-control-uninstalled.pc.in:
7209         * pkgconfig/gstreamer-control.pc.in:
7210         * testsuite/Makefile.am:
7211         * testsuite/controller/.cvsignore:
7212         * testsuite/controller/Makefile.am:
7213         * testsuite/controller/interpolator.c: (main):
7214           added controller code
7215           removed dparam pc files
7216
7217 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
7218         * gst/base/gstcollectpads.c: (gst_collectpads_finalize),
7219         (gst_collectpads_stop):
7220           Broadcast the condition when shutting down, to make sure we wake all
7221           threads up. Shut down pads on finalize, for safety.
7222
7223 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
7224         * gst/base/gstbasetransform.c: (gst_base_transform_init),
7225         (gst_base_transform_handle_buffer),
7226         (gst_base_transform_change_state):
7227           Handle PAUSED->READY->PAUSED transition after negotiation
7228           occurred already.
7229         * gst/gstmessage.c: (gst_message_init):
7230           Extra piece of debug for new messages.
7231
7232 2005-08-01  Stefan Kost  <ensonic@users.sf.net>
7233
7234         * configure.ac:
7235         * docs/gst/tmpl/gstbasesrc.sgml:
7236         * docs/gst/tmpl/gstelement.sgml:
7237         * docs/gst/tmpl/gstevent.sgml:
7238         * docs/gst/tmpl/gstfakesrc.sgml:
7239         * docs/gst/tmpl/gstformat.sgml:
7240         * docs/gst/tmpl/gstghostpad.sgml:
7241         * docs/gst/tmpl/gstpad.sgml:
7242         * docs/gst/tmpl/gstquery.sgml:
7243         * docs/gst/tmpl/gststructure.sgml:
7244         * docs/gst/tmpl/gsttaglist.sgml:
7245         * docs/gst/tmpl/gstvalue.sgml:
7246         * docs/libs/gstreamer-libs-docs.sgml:
7247         * docs/libs/gstreamer-libs-sections.txt:
7248         * docs/libs/gstreamer-libs.types:
7249         * libs/gst/Makefile.am:
7250         * libs/gst/control/.cvsignore:
7251         * libs/gst/control/Makefile.am:
7252         * libs/gst/control/control.c:
7253         * libs/gst/control/control.h:
7254         * libs/gst/control/dparam.c:
7255         * libs/gst/control/dparam.h:
7256         * libs/gst/control/dparam_smooth.c:
7257         * libs/gst/control/dparam_smooth.h:
7258         * libs/gst/control/dparamcommon.h:
7259         * libs/gst/control/dparammanager.c:
7260         * libs/gst/control/dparammanager.h:
7261         * libs/gst/control/dplinearinterp.c:
7262         * libs/gst/control/dplinearinterp.h:
7263         * libs/gst/control/unitconvert.c:
7264         * libs/gst/control/unitconvert.h:
7265         * testsuite/Makefile.am:
7266         * testsuite/dynparams/.cvsignore:
7267         * testsuite/dynparams/Makefile.am:
7268         * testsuite/dynparams/dparamstest.c:
7269         * tools/Makefile.am:
7270         * tools/gst-inspect.c: (print_element_info), (main):
7271         * tools/gst-xmlinspect.c: (print_element_info), (main):
7272           deactivate and remove dparams (libgstcontrol)
7273
7274 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
7275
7276         * gst/elements/gsttypefindelement.c:
7277         (gst_type_find_element_have_type), (gst_type_find_element_init),
7278         (stop_typefinding), (gst_type_find_element_handle_event),
7279         (gst_type_find_element_chain), (gst_type_find_element_getrange):
7280         * gst/elements/gsttypefindelement.h:
7281           Set caps on all outgoing buffers, not just the first one.
7282
7283 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
7284
7285         * gst/elements/gsttypefindelement.c:
7286         (gst_type_find_element_have_type),
7287         (gst_type_find_element_check_set_buffer_caps),
7288         (gst_type_find_element_init), (stop_typefinding),
7289         (gst_type_find_element_handle_event),
7290         (gst_type_find_element_chain), (gst_type_find_element_getrange):
7291         * gst/elements/gsttypefindelement.h:
7292           Set caps on first outgoing buffer when we've found the type.
7293
7294 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
7295
7296         * docs/gst/gstreamer-docs.sgml:
7297         * docs/gst/gstreamer-sections.txt:
7298         * docs/gst/tmpl/gstscheduler.sgml:
7299         * docs/gst/tmpl/gstschedulerfactory.sgml:
7300           Remove some old cruft from docs.
7301
7302 2005-07-31  Tim-Philipp Müller  <tim at centricular dot net>
7303
7304         * gst/gstpad.h:
7305           Fix inline docs for GstPadLinkReturn.
7306           
7307         * gst/gststructure.c: (gst_structure_has_name):
7308         * gst/gststructure.h:
7309         * docs/gst/gstreamer-sections.txt:
7310           New API: gst_structure_has_name().
7311
7312 2005-07-30  Tim-Philipp Müller  <tim at centricular dot net>
7313
7314         * configure.ac:
7315           Use AC_SYS_LARGEFILE, which will set _FILE_OFFSET_BITS=64
7316           and _LARGEFILE_SOURCE in config.h as required. Do not 
7317           export those flags in our .pc files any longer (#142209).
7318
7319           Remove unused GST_DISABLE_OMEGA_COTHREADS stuff.
7320
7321         * gst/elements/gstfilesink.c: (gst_file_sink_class_init),
7322         (gst_file_sink_do_seek), (gst_file_sink_event),
7323         (gst_file_sink_get_current_offset), (gst_file_sink_render):
7324           Redo seek/tell calls with large file support in mind; add some
7325           debugging messages; add log message that tells us when large
7326           file support is unavailable or not enabled for some reason.
7327
7328         * gst/elements/gstfilesrc.c: (gst_file_src_class_init):
7329           Add log message that tells us when large file support 
7330           is unavailable or not enabled for some reason.
7331
7332 2005-07-29  Wim Taymans  <wim@fluendo.com>
7333
7334         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
7335         Added test for removing an element with ghostpad from a bin.
7336         Fixed test as current implementation does the right thing.
7337
7338         * gst/gstghostpad.c: (gst_proxy_pad_class_init),
7339         (gst_proxy_pad_do_query_type), (gst_proxy_pad_do_event),
7340         (gst_proxy_pad_do_query), (gst_proxy_pad_do_internal_link),
7341         (gst_proxy_pad_do_bufferalloc), (gst_proxy_pad_do_activate),
7342         (gst_proxy_pad_do_activatepull), (gst_proxy_pad_do_activatepush),
7343         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange),
7344         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_getcaps),
7345         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
7346         (gst_proxy_pad_do_setcaps), (gst_proxy_pad_set_target),
7347         (gst_proxy_pad_get_target), (gst_proxy_pad_init),
7348         (gst_proxy_pad_dispose), (gst_proxy_pad_finalize),
7349         (gst_ghost_pad_class_init), (gst_ghost_pad_do_activate_push),
7350         (gst_ghost_pad_do_link), (gst_ghost_pad_do_unlink),
7351         (gst_ghost_pad_set_internal), (gst_ghost_pad_dispose),
7352         (gst_ghost_pad_new_notarget), (gst_ghost_pad_new),
7353         (gst_ghost_pad_get_target), (gst_ghost_pad_set_target):
7354         * gst/gstghostpad.h:
7355         Clean up ghostpads, remove properties for internal stuff.
7356         Make threadsafe.
7357         Fix refcounting.
7358         Prepare for switching targets, not all use cases work yet.
7359
7360 2005-07-29  Wim Taymans  <wim@fluendo.com>
7361
7362         * docs/design/part-gstghostpad.txt:
7363         Small update.
7364
7365         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
7366         (gst_bin_remove_func):
7367         Unlinking pads while holding the bin LOCK is not a good
7368         idea.
7369
7370         * gst/gstpad.c: (gst_pad_class_init),
7371         (gst_pad_link_check_hierarchy), (gst_pad_get_caps_unlocked),
7372         (gst_pad_accept_caps), (gst_pad_set_caps), (gst_pad_send_event):
7373         No prob setting template after creating the pad.
7374
7375 2005-07-29  Jan Schmidt  <thaytan@mad.scientist.com>
7376
7377         * gst/gstbus.c: (gst_bus_set_flushing), (gst_bus_pop),
7378         (gst_bus_peek), (gst_bus_source_dispatch),
7379         (gst_bus_add_watch_full), (poll_handler), (poll_timeout),
7380         (poll_destroy), (poll_destroy_timeout), (gst_bus_poll):
7381           gst_bus_poll may be called from other threads. Handle
7382           this nicely by not making poll_data disappear off the
7383           stack once gst_bus_poll returns.
7384           gst_bus_peek now increments the refcount on the returned
7385           message.
7386
7387 2005-07-29  Wim Taymans  <wim@fluendo.com>
7388
7389         * docs/design/part-gstghostpad.txt:
7390         Overview of current GhostPad datastructures and use
7391         cases for changing the target.
7392
7393 2005-07-28  Wim Taymans  <wim@fluendo.com>
7394
7395         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
7396         Added checks for hierarchy consistency whan adding linked
7397         elements to bins.
7398
7399         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
7400         Added check to test element scheduling without bin/pipeline.
7401
7402         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
7403         First add elements to bin, then link.
7404         
7405         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
7406         (gst_bin_remove_func):
7407         Unlink pads from elements added/removed from bin to maintain
7408         hierarchy consistency.
7409
7410 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7411
7412         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
7413         (gst_base_transform_handle_buffer):
7414         * gst/base/gstbasetransform.h:
7415           Remove broken delay_configure (fixes renegotiation of software
7416           scaling pipelines); remove some leftover printf()s.
7417
7418 2005-07-28  Wim Taymans  <wim@fluendo.com>
7419
7420         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
7421         Added some more tests for wrong hierarchy
7422
7423         * docs/design/part-overview.txt:
7424         Some updates.
7425
7426         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_dispose):
7427         Cleanups.
7428
7429         * gst/gstelement.c: (gst_element_remove_pad), (gst_element_seek),
7430         (gst_element_dispose):
7431         Some more cleanups.
7432
7433         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
7434         (gst_pad_link_check_hierarchy), (gst_pad_link_prepare),
7435         (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
7436         (gst_pad_set_caps), (gst_pad_send_event):
7437         Check for correct hierarchy when linking pads. Moving to
7438         strict requirement for ghostpads when linking elements in
7439         different bins.
7440
7441         * gst/gstpad.h:
7442         Clean ups. Added WRONG_HIERARCHY return value.
7443
7444 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7445
7446         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
7447           Better debug if no transform is possible.
7448
7449 2005-07-27  Wim Taymans  <wim@fluendo.com>
7450
7451         * docs/random/wtay/network-transp:
7452         Some old doc I had.
7453
7454 2005-07-27  Wim Taymans  <wim@fluendo.com>
7455
7456         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
7457         (gst_dp_event_from_packet):
7458         Fix serialization of seek events.
7459
7460 2005-07-27  Wim Taymans  <wim@fluendo.com>
7461
7462         * check/gst-libs/gdp.c: (GST_START_TEST):
7463         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
7464         Fix compilation and fix event serialization.
7465
7466 2005-07-27  Wim Taymans  <wim@fluendo.com>
7467
7468         * CHANGES-0.9:
7469         * docs/design/part-TODO.txt:
7470         * docs/design/part-events.txt:
7471         Some docs updates
7472
7473         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7474         (gst_base_sink_event), (gst_base_sink_do_sync),
7475         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
7476         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
7477         (gst_base_src_do_seek), (gst_base_src_event_handler),
7478         (gst_base_src_loop):
7479         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
7480         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
7481         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
7482         (gst_base_transform_event), (gst_base_transform_handle_buffer),
7483         (gst_base_transform_set_passthrough),
7484         (gst_base_transform_is_passthrough):
7485         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
7486         * gst/elements/gstfilesink.c: (gst_file_sink_event):
7487         Event updates.
7488
7489         * gst/gstbuffer.h:
7490         Use faster casts.
7491
7492         * gst/gstelement.c: (gst_element_seek):
7493         * gst/gstelement.h:
7494         Update gst_element_seek.
7495
7496         * gst/gstevent.c: (gst_event_finalize), (_gst_event_copy),
7497         (gst_event_new), (gst_event_new_custom), (gst_event_get_structure),
7498         (gst_event_new_flush_start), (gst_event_new_flush_stop),
7499         (gst_event_new_eos), (gst_event_new_newsegment),
7500         (gst_event_parse_newsegment), (gst_event_new_tag),
7501         (gst_event_parse_tag), (gst_event_new_filler), (gst_event_new_qos),
7502         (gst_event_parse_qos), (gst_event_new_seek),
7503         (gst_event_parse_seek), (gst_event_new_navigation):
7504         * gst/gstevent.h:
7505         Make GstEvent use GstStructure. Add parsing code, make sure the
7506         API is sufficiently generic.
7507         Mark possible directions of events and serialization.
7508
7509         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize),
7510         (_gst_message_copy), (gst_message_new_segment_start),
7511         (gst_message_new_segment_done), (gst_message_new_custom),
7512         (gst_message_parse_segment_start),
7513         (gst_message_parse_segment_done):
7514         Small cleanups.
7515
7516         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
7517         (gst_pad_set_caps), (gst_pad_send_event):
7518         Update for new events. 
7519         Catch events sent in wrong directions.
7520
7521         * gst/gstqueue.c: (gst_queue_link_src),
7522         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
7523         (gst_queue_handle_src_query):
7524         Event updates.
7525
7526         * gst/gsttag.c:
7527         * gst/gsttag.h:
7528         Remove event code from this file.
7529
7530         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
7531         (gst_dp_event_from_packet):
7532         Event updates.
7533
7534 2005-07-27  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7535
7536         * gst/base/gstbasetransform.c: (gst_base_transform_getcaps),
7537         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
7538         (gst_base_transform_get_size), (gst_base_transform_handle_buffer):
7539           Make debugging actually useful.
7540
7541 2005-07-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7542
7543         * gst/gstpad.c: (fixate_value), (gst_pad_default_fixate),
7544         (gst_pad_fixate_caps):
7545           Implement default fixation once again, so that gst_pad_fixate()
7546           actually does anything at all. This probably needs to be some
7547           sort of a last resort, and use profile-based fixation first, but
7548           since that doesn't exist yet, this is the best we have. Fixes
7549           visualization in Totem.
7550
7551 2005-07-22  Wim Taymans  <wim@fluendo.com>
7552
7553         * docs/design/part-events.txt:
7554         Small update.
7555
7556         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7557         (gst_base_sink_do_sync), (gst_base_sink_activate_push),
7558         (gst_base_sink_activate_pull):
7559         Some more comments.
7560
7561         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init),
7562         (gst_fake_src_create):
7563         Fix handoff marshall.
7564
7565         * gst/elements/gstidentity.c: (gst_identity_class_init),
7566         (gst_identity_transform_ip):
7567         We're a real inplace element.
7568
7569         * gst/gstbus.c: (gst_bus_post):
7570         Added some comments.
7571
7572         * tests/lat.c: (fakesrc), (fakesink), (simple), (queue), (main):
7573         * tests/muxing/case1.c: (main):
7574         * tests/sched/dynamic-pipeline.c: (main):
7575         * tests/sched/interrupt1.c: (main):
7576         * tests/sched/interrupt2.c: (main):
7577         * tests/sched/interrupt3.c: (main):
7578         * tests/sched/runxml.c: (main):
7579         * tests/sched/sched-stress.c: (main):
7580         * tests/seeking/seeking1.c: (event_received), (main):
7581         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
7582         (main):
7583         * tests/threadstate/threadstate3.c: (main):
7584         * tests/threadstate/threadstate4.c: (main):
7585         * tests/threadstate/threadstate5.c: (main):
7586         Fix the tests.
7587
7588 2005-07-21  Wim Taymans  <wim@fluendo.com>
7589
7590         * docs/design/part-seeking.txt:
7591         Some small additions.
7592
7593         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7594         (gst_base_sink_get_times), (gst_base_sink_do_sync),
7595         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
7596         * gst/base/gstbasesink.h:
7597         discont values are gint64, handle the math correctly.
7598
7599         * gst/base/gstbasesrc.c: (gst_base_src_loop):
7600         Make the basesrc report error if the source pad is not linked.
7601
7602         * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
7603         (gst_queue_loop), (gst_queue_handle_src_query),
7604         (gst_queue_src_activate_push):
7605         Make queue collect data even if the srcpad is not linked.
7606         Start pushing out data as soon as it is linked.
7607
7608         * gst/gstutils.c: (gst_element_unlink), (gst_flow_get_name):
7609         * gst/gstutils.h:
7610         Added gst_flow_get_name() to ease error reporting.
7611
7612 2005-07-20  Wim Taymans  <wim@fluendo.com>
7613
7614         * gst/gstmessage.c: (gst_message_new_segment_start),
7615         (gst_message_new_segment_done), (gst_message_parse_segment_start),
7616         (gst_message_parse_segment_done):
7617         * gst/gstmessage.h:
7618         Added a bunch of messages for advanced seeking.
7619
7620         * gst/parse/grammar.y:
7621         * libs/gst/control/dparammanager.c: (gst_dpman_set_parent),
7622         (gst_dpman_state_changed):
7623         Fix some new-pad -> pad-added signals
7624
7625 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7626
7627         * docs/manual/appendix-porting.xml:
7628         * docs/pwg/appendix-porting.xml:
7629           Document new-pad/state-change signal renames and the FixedList
7630           type rename.
7631
7632 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7633
7634         * docs/manual/advanced-autoplugging.xml:
7635         * docs/manual/basics-helloworld.xml:
7636         * docs/manual/basics-pads.xml:
7637         * docs/random/ds/0.9-suggested-changes:
7638         * gst/gstelement.c: (gst_element_class_init), (gst_element_seek):
7639         * gst/gstelement.h:
7640         * gst/gstevent.h:
7641         * gst/gstformat.h:
7642         * gst/gstquery.h:
7643         * gst/gststructure.c: (gst_structure_value_get_generic_type),
7644         (gst_structure_parse_array), (gst_structure_parse_value):
7645         * gst/gstvalue.c: (gst_type_is_fixed),
7646         (gst_value_list_prepend_value), (gst_value_list_append_value),
7647         (gst_value_list_get_size), (gst_value_list_get_value),
7648         (gst_value_transform_array_string), (gst_value_serialize_array),
7649         (gst_value_deserialize_array), (gst_value_intersect_array),
7650         (gst_value_is_fixed), (_gst_value_initialize):
7651         * gst/gstvalue.h:
7652           GstElement::new-pad -> pad-added, GstElement::state-change ->
7653           state-changed, GstValueFixedList -> GstValueArray, add format and
7654           flags as their own arguments in gst_element_seek() (should improve
7655           "bindeability"), remove function generators since they don't work
7656           under a whole bunch of compilers (they were deprecated already
7657           anyway).
7658
7659 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7660
7661         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
7662         (_gst_debug_register_funcptr):
7663         * gst/gstinfo.h:
7664           Fix illegal cast on some platforms (#309253).
7665
7666 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7667
7668         * gst/gstmessage.c: (gst_message_new_custom):
7669         * gst/gstmessage.h:
7670           Add _new_custom, make _new_application a macro to _new_custom.
7671
7672 2005-07-20  Wim Taymans  <wim@fluendo.com>
7673
7674         * gst/base/gstbasesrc.c: (gst_base_src_init),
7675         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start):
7676         * gst/base/gstbasesrc.h:
7677         Add a gboolean to decide when to push out a discont.
7678
7679         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
7680         (gst_queue_loop), (gst_queue_handle_src_query),
7681         (gst_queue_sink_activate_push), (gst_queue_src_activate_push),
7682         (gst_queue_set_property), (gst_queue_get_property):
7683         Some cleanups.
7684
7685         * tests/threadstate/threadstate1.c: (main):
7686         Make a thread test compile and run... very silly..
7687
7688
7689 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7690
7691         * docs/manual/appendix-porting.xml:
7692           Mention removal of libgstgconf-0.9.la and existence of gconf
7693           elements.
7694
7695 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7696
7697         * docs/pwg/advanced-clock.xml:
7698         * docs/pwg/appendix-porting.xml:
7699         * docs/pwg/intro-preface.xml:
7700         * docs/pwg/other-base.xml:
7701         * docs/pwg/other-manager.xml:
7702         * docs/pwg/other-nton.xml:
7703         * docs/pwg/other-ntoone.xml:
7704         * docs/pwg/other-oneton.xml:
7705         * docs/pwg/pwg.xml:
7706           Document base classes, update sections of n-to-1 and 1-to-n (muxer,
7707           demuxer), remove n-to-n (was never written), fix some code examples
7708           and links and update the porting section to include all this.
7709
7710 2005-07-19  Wim Taymans  <wim@fluendo.com>
7711
7712         * gst/gstqueue.c: (gst_queue_init), (gst_queue_handle_sink_event),
7713         (gst_queue_chain), (gst_queue_loop), (gst_queue_handle_src_event),
7714         (gst_queue_handle_src_query), (gst_queue_sink_activate_push),
7715         (gst_queue_src_activate_push), (gst_queue_change_state),
7716         (gst_queue_get_property):
7717         * gst/gstqueue.h:
7718         Propagate GstFlowReturn more intelligently upstream and output
7719         an ERROR/EOS when streaming stopped due to fatal error.
7720
7721 2005-07-19  Wim Taymans  <wim@fluendo.com>
7722
7723         * tools/gst-launch.c: (check_intr), (event_loop), (main):
7724         Don't block forever for the state change to complete, the
7725         pipeline already did with a sensible timeout.
7726
7727 2005-07-19  Wim Taymans  <wim@fluendo.com>
7728
7729         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
7730         Make sure we never call the create function is we
7731         got deactivated.
7732
7733 2005-07-19  Andy Wingo  <wingo@pobox.com>
7734
7735         * gst/parse/parse.l: Attempt to solve bug #172815.
7736
7737 2005-07-19  Wim Taymans  <wim@fluendo.com>
7738
7739         * docs/design/part-clocks.txt:
7740         * docs/design/part-events.txt:
7741         * gst/base/gstbasesrc.c: (gst_base_src_do_seek):
7742         Small docs updates.
7743         Only update the seeking values when we are not
7744         busy streaming.
7745
7746 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
7747
7748         * gst/base/gstbasesrc.c: (gst_base_src_loop):
7749           Oops, ignore the result of gst_pad_push_event here.
7750
7751 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
7752
7753         * gst/base/gstbasesrc.c: (gst_base_src_loop),
7754         (gst_base_src_activate_push):
7755           Send discont event from the loop function, as pads
7756           aren't activated yet in the activate_push handler.
7757
7758         * gst/gstbin.c: (bin_bus_handler):
7759           Don't leak element name.
7760
7761 2005-07-18  Andy Wingo  <wingo@pobox.com>
7762
7763         * configure.ac: Use AS_LIBTOOL_TAGS.
7764
7765 2005-07-18  Wim Taymans  <wim@fluendo.com>
7766
7767         * docs/gst/gstreamer.types:
7768         Remove deleted types.
7769
7770 2005-07-18  Wim Taymans  <wim@fluendo.com>
7771
7772         * check/elements/gstfakesrc.c: (GST_START_TEST):
7773         * configure.ac:
7774         * gst/Makefile.am:
7775         * gst/gst.c: (gst_init_get_popt_table), (init_pre), (init_post),
7776         (init_popt_callback):
7777         * gst/gst.h:
7778         * gst/gst_private.h:
7779         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_add_func),
7780         (gst_bin_remove_func), (gst_bin_get_state), (gst_bin_change_state):
7781         * gst/gstbin.h:
7782         * gst/gstbus.h:
7783         * gst/gstconfig.h.in:
7784         * gst/gstelement.c: (gst_element_class_init),
7785         (gst_element_set_base_time), (gst_element_get_base_time),
7786         (iterator_fold_with_resync), (gst_element_change_state),
7787         (gst_element_dispose), (gst_element_get_bus):
7788         * gst/gstelement.h:
7789         * gst/gstelementfactory.h:
7790         * gst/gsterror.c: (_gst_core_errors_init):
7791         * gst/gsterror.h:
7792         * gst/gstevent.h:
7793         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
7794         * gst/gstindex.c:
7795         * gst/gstinfo.c: (_gst_debug_init):
7796         * gst/gstmessage.c: (_gst_message_copy):
7797         * gst/gstmessage.h:
7798         * gst/gstminiobject.h:
7799         * gst/gstobject.c:
7800         * gst/gstobject.h:
7801         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
7802         (gst_pad_set_caps), (gst_pad_start_task), (gst_pad_stop_task):
7803         * gst/gstpad.h:
7804         * gst/gstparse.h:
7805         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
7806         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
7807         (gst_pipeline_get_last_stream_time):
7808         * gst/gstpipeline.h:
7809         * gst/gstpluginfeature.h:
7810         * gst/gstquery.h:
7811         * gst/gstscheduler.c:
7812         * gst/gstscheduler.h:
7813         * gst/gststructure.h:
7814         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
7815         (gst_task_finalize), (gst_task_func), (gst_task_create),
7816         (gst_task_set_lock), (gst_task_get_state), (gst_task_start),
7817         (gst_task_stop), (gst_task_pause):
7818         * gst/gsttask.h:
7819         * gst/gsttypefind.h:
7820         * gst/gsttypes.h:
7821         * gst/registries/gstlibxmlregistry.c: (load_feature),
7822         (gst_xml_registry_load), (gst_xml_registry_save_feature):
7823         * gst/registries/gstxmlregistry.c:
7824         (gst_xml_registry_start_element), (gst_xml_registry_save_feature):
7825         * gst/schedulers/threadscheduler.c:
7826         * libs/gst/control/dparammanager.h:
7827         * tools/gst-inspect.c: (print_element_list),
7828         (print_plugin_features), (print_element_features):
7829         * tools/gst-xmlinspect.c: (print_element_list),
7830         (print_plugin_info), (main):
7831         Removed plugable schedulers.
7832         Removed Scheduler/Manager from elements.
7833         Removed gsttypes.h, rearranged includes.
7834         Removed dependency pad<->element, element<>pipeline, and
7835         various others,  fix includes.
7836         implement gst_pad_get_parent() with gst_object_get_parent()
7837         Make GstTask sefcontained.
7838         Fix _get_state() on GstBin, it did not return ASYNC with a 0
7839         timeout.
7840         Fix endless loop in iterator_fold_with_resync.
7841
7842
7843 2005-07-18  Wim Taymans  <wim@fluendo.com>
7844
7845         * gst/Makefile.am:
7846         * gst/gstarch.h:
7847         Remove old file.
7848
7849 2005-07-18  Wim Taymans  <wim@fluendo.com>
7850
7851         * gst/Makefile.am:
7852         No more cothreads.h
7853
7854 2005-07-18  Wim Taymans  <wim@fluendo.com>
7855
7856         * gst/cothreads.c:
7857         * gst/cothreads.h:
7858         Let's remove these.
7859
7860 2005-07-18  Wim Taymans  <wim@fluendo.com>
7861
7862         * docs/design/part-dynamic.txt:
7863         * docs/design/part-events.txt:
7864         * docs/design/part-seeking.txt:
7865         Some more docs in the works.
7866
7867         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
7868         (gst_base_transform_getcaps), (gst_base_transform_configure_caps),
7869         (gst_base_transform_setcaps), (gst_base_transform_get_size),
7870         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
7871         (gst_base_transform_handle_buffer),
7872         (gst_base_transform_sink_activate_push),
7873         (gst_base_transform_src_activate_pull),
7874         (gst_base_transform_set_passthrough),
7875         (gst_base_transform_is_passthrough):
7876         Refcounting fixes.
7877
7878         * gst/gstbus.c: (gst_bus_source_dispatch), (gst_bus_poll):
7879         Cleanups.
7880
7881         * gst/gstevent.c: (gst_event_finalize):
7882         Set SRC to NULL.
7883
7884         * gst/gstutils.c: (gst_element_unlink),
7885         (gst_pad_get_parent_element), (gst_pad_proxy_getcaps),
7886         (gst_pad_proxy_setcaps):
7887         * gst/gstutils.h:
7888         Add _get_parent_element() to get a pads parent as an element.
7889
7890 2005-07-18  Wim Taymans  <wim@fluendo.com>
7891
7892         * check/gst/gstbin.c: (GST_START_TEST):
7893         Remove bogus test.
7894
7895 2005-07-18  Wim Taymans  <wim@fluendo.com>
7896
7897         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
7898         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
7899         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
7900         (gst_base_sink_event), (gst_base_sink_do_sync),
7901         (gst_base_sink_chain), (gst_base_sink_loop),
7902         (gst_base_sink_deactivate), (gst_base_sink_activate_push),
7903         (gst_base_sink_activate_pull), (gst_base_sink_change_state):
7904         Refcounting fixes.
7905         Fix logic for returning ASYNC when not prerolled.
7906
7907 2005-07-18  Wim Taymans  <wim@fluendo.com>
7908
7909         * gst/gstqueue.c: (gst_queue_handle_sink_event):
7910         Fix nasty refcount bug.
7911
7912 2005-07-16 Philippe Khalaf <burger@speedy.org>
7913
7914         * gst/elements/gstfdsrc.c:
7915         * gst/elements/gstfdsrc.h:
7916         * gst/elements/gstelements.c:
7917         * gst/elements/Makefile.am:
7918         Ported fdsrc to 0.9.
7919
7920 2005-07-16  Wim Taymans  <wim@fluendo.com>
7921
7922         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7923         (gst_base_sink_do_sync):
7924         Fix compile error.
7925
7926 2005-07-16  Wim Taymans  <wim@fluendo.com>
7927
7928         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7929         (gst_base_sink_event), (gst_base_sink_get_times),
7930         (gst_base_sink_do_sync), (gst_base_sink_change_state):
7931         * gst/base/gstbasesink.h:
7932         Store and use discont values when syncing buffers as described
7933         in design docs.
7934         
7935         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
7936         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start),
7937         (gst_base_src_activate_push):
7938         Push discont event when starting.
7939
7940         * gst/elements/gstidentity.c: (gst_identity_transform):
7941         Small cleanups.
7942
7943         * gst/gstbin.c: (gst_bin_change_state):
7944         Small cleanups in base_time  distribution.
7945
7946         * gst/gstelement.c: (gst_element_set_base_time),
7947         (gst_element_get_base_time), (gst_element_change_state):
7948         * gst/gstelement.h:
7949         Added methods for the base_time of the element.
7950         Some MT fixes.
7951
7952         * gst/gstpipeline.c: (gst_pipeline_send_event),
7953         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
7954         (gst_pipeline_get_last_stream_time):
7955         * gst/gstpipeline.h:
7956         MT fixes.
7957         Handle seeking as described in design doc, remove stream_time
7958         hack.
7959         Cleanups clock and stream_time selection code. Added accessors
7960         for the stream_time.
7961         
7962
7963 2005-07-16  Andy Wingo  <wingo@pobox.com>
7964
7965         * gst/gsterror.c (_gst_core_errors_init): Use the magic word
7966         (#305291).
7967
7968 2005-07-16  Wim Taymans  <wim@fluendo.com>
7969
7970         * check/gst/gstbin.c: (GST_START_TEST):
7971         Make elements silent as the deep_notify refs the
7972         parent, which might make the test fail.
7973
7974         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
7975         Don't hold the lock for too long.
7976
7977 2005-07-16  Tim-Philipp Müller  <tim at centricular dot net>
7978
7979         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
7980           Don't unref the caps we passed to gst_caps_make_writable() after
7981           passing them. gst_caps_make_writable() will do that for us.
7982
7983 2005-07-15  Andy Wingo  <wingo@pobox.com>
7984
7985         * gst/gstcaps.h (gst_caps_is_simple): Removed deprecated macro
7986         (#157311).
7987
7988         * gst/elements/gstidentity.c (marshal_VOID__MINIOBJECT): Write our
7989         own marshalling function for the handoff signal. Properly type the
7990         buffer as a buffer. Fixes some warnings. Should do a more general
7991         solution.
7992         (gst_identity_class_init): Plug into the right marshaller.
7993
7994 2005-07-15  Wim Taymans  <wim@fluendo.com>
7995
7996         * docs/design/part-TODO.txt:
7997         * docs/design/part-clocks.txt:
7998         * docs/design/part-element-sink.txt:
7999         * docs/design/part-events.txt:
8000         * docs/design/part-gstpipeline.txt:
8001         Updated docs, mostly DISCONT related.
8002
8003 2005-07-15  Tim-Philipp Müller  <tim at centricular dot net>
8004
8005         * docs/pwg/building-pads.xml:
8006           s/GST_PAD_LINK_REFUSED/FALSE/ in gst_my_filter_setcaps()
8007
8008 2005-07-15  Andy Wingo  <wingo@pobox.com>
8009
8010         * tools/gst-typefind.c: Update, add copyright block.
8011
8012         * gst/base/gstbasesrc.c (gst_base_src_default_negotiate):
8013         Normalize and truncate caps before fixation.
8014
8015         * gst/gstcaps.h:
8016         * gst/gstcaps.c (gst_caps_truncate): New function, destructively
8017         discards all but the first structure from its argument.
8018
8019 2005-07-15  Wim Taymans  <wim@fluendo.com>
8020
8021         * gst/base/gstbasetransform.c: (gst_base_transform_init),
8022         (gst_base_transform_transform_caps), (gst_base_transform_getcaps),
8023         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
8024         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
8025         (gst_base_transform_handle_buffer), (gst_base_transform_getrange),
8026         (gst_base_transform_chain), (gst_base_transform_change_state),
8027         (gst_base_transform_set_passthrough),
8028         (gst_base_transform_is_passthrough):
8029         * gst/base/gstbasetransform.h:
8030         Make passthrough work using the bufferpools.
8031         Changed API a bit, subclasses have to write into a buffer
8032         provided by the base class.
8033         More debug info in nego functions.
8034         
8035         * gst/elements/gstidentity.c: (gst_identity_init),
8036         (gst_identity_transform):
8037         Port to new base class.
8038
8039 2005-07-15  Wim Taymans  <wim@fluendo.com>
8040
8041         * gst/gstmessage.c: (gst_message_new_state_changed):
8042         * tools/gst-launch.c: (event_loop), (main):
8043         Totally dump messages in -launch with the -m option.
8044         Fix message name for State messages,
8045
8046 2005-07-14  Wim Taymans  <wim@fluendo.com>
8047
8048         * gst/base/gstbasesrc.c: (gst_base_src_loop):
8049         Post error messages on errors.
8050
8051 2005-07-14  Wim Taymans  <wim@fluendo.com>
8052
8053         * gst/gstcaps.c: (gst_caps_do_simplify):
8054         Remove debug info.
8055
8056         * gst/gsterror.h:
8057         Define error for stream stopped.
8058
8059         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
8060         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange):
8061         Do proper return values.
8062
8063         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
8064         (gst_pad_set_caps), (gst_pad_chain), (gst_pad_push),
8065         (gst_pad_get_range):
8066         Better return values.
8067
8068         * gst/gstpad.h:
8069         Reorganise return values, add macro to check for fatal errors.
8070
8071         * gst/gstqueue.c: (gst_queue_chain):
8072         Return proper GstFlowReturn values,
8073
8074 2005-07-14  Thomas Vander Stichele  <thomas at apestaart dot org>
8075
8076         * docs/gst/gstreamer-sections.txt:
8077         * docs/gst/gstreamer.types:
8078         * docs/gst/tmpl/gst.sgml:
8079         * docs/gst/tmpl/gstbasesink.sgml:
8080         * docs/gst/tmpl/gstbasesrc.sgml:
8081         * docs/gst/tmpl/gstbasetransform.sgml:
8082         * docs/gst/tmpl/gstbin.sgml:
8083         * docs/gst/tmpl/gstbuffer.sgml:
8084         * docs/gst/tmpl/gstcaps.sgml:
8085         * docs/gst/tmpl/gstclock.sgml:
8086         * docs/gst/tmpl/gstcompat.sgml:
8087         * docs/gst/tmpl/gstconfig.sgml:
8088         * docs/gst/tmpl/gstelement.sgml:
8089         * docs/gst/tmpl/gstelementdetails.sgml:
8090         * docs/gst/tmpl/gstelementfactory.sgml:
8091         * docs/gst/tmpl/gstenumtypes.sgml:
8092         * docs/gst/tmpl/gsterror.sgml:
8093         * docs/gst/tmpl/gstevent.sgml:
8094         * docs/gst/tmpl/gstfakesink.sgml:
8095         * docs/gst/tmpl/gstfakesrc.sgml:
8096         * docs/gst/tmpl/gstfilesink.sgml:
8097         * docs/gst/tmpl/gstfilesrc.sgml:
8098         * docs/gst/tmpl/gstfilter.sgml:
8099         * docs/gst/tmpl/gstformat.sgml:
8100         * docs/gst/tmpl/gstghostpad.sgml:
8101         * docs/gst/tmpl/gstimplementsinterface.sgml:
8102         * docs/gst/tmpl/gstindex.sgml:
8103         * docs/gst/tmpl/gstindexfactory.sgml:
8104         * docs/gst/tmpl/gstinfo.sgml:
8105         * docs/gst/tmpl/gstiterator.sgml:
8106         * docs/gst/tmpl/gstmacros.sgml:
8107         * docs/gst/tmpl/gstmemchunk.sgml:
8108         * docs/gst/tmpl/gstminiobject.sgml:
8109         * docs/gst/tmpl/gstobject.sgml:
8110         * docs/gst/tmpl/gstpad.sgml:
8111         * docs/gst/tmpl/gstpadtemplate.sgml:
8112         * docs/gst/tmpl/gstparse.sgml:
8113         * docs/gst/tmpl/gstpipeline.sgml:
8114         * docs/gst/tmpl/gstplugin.sgml:
8115         * docs/gst/tmpl/gstpluginfeature.sgml:
8116         * docs/gst/tmpl/gstquery.sgml:
8117         * docs/gst/tmpl/gstqueue.sgml:
8118         * docs/gst/tmpl/gstregistry.sgml:
8119         * docs/gst/tmpl/gstregistrypool.sgml:
8120         * docs/gst/tmpl/gstscheduler.sgml:
8121         * docs/gst/tmpl/gstschedulerfactory.sgml:
8122         * docs/gst/tmpl/gststructure.sgml:
8123         * docs/gst/tmpl/gstsystemclock.sgml:
8124         * docs/gst/tmpl/gsttaglist.sgml:
8125         * docs/gst/tmpl/gsttagsetter.sgml:
8126         * docs/gst/tmpl/gsttrace.sgml:
8127         * docs/gst/tmpl/gsttrashstack.sgml:
8128         * docs/gst/tmpl/gsttypefind.sgml:
8129         * docs/gst/tmpl/gsttypefindfactory.sgml:
8130         * docs/gst/tmpl/gsttypes.sgml:
8131         * docs/gst/tmpl/gsturihandler.sgml:
8132         * docs/gst/tmpl/gsturitype.sgml:
8133         * docs/gst/tmpl/gstutils.sgml:
8134         * docs/gst/tmpl/gstvalue.sgml:
8135         * docs/gst/tmpl/gstversion.sgml:
8136         * docs/gst/tmpl/gstxml.sgml:
8137         * docs/libs/tmpl/gstcontrol.sgml:
8138         * docs/libs/tmpl/gstdataprotocol.sgml:
8139         * docs/libs/tmpl/gstdparam.sgml:
8140         * docs/libs/tmpl/gstdplinint.sgml:
8141         * docs/libs/tmpl/gstdpman.sgml:
8142         * docs/libs/tmpl/gstdpsmooth.sgml:
8143         * docs/libs/tmpl/gstgetbits.sgml:
8144         * docs/libs/tmpl/gstunitconvert.sgml:
8145         * gst/base/gstpushsrc.c: (gst_push_src_get_type),
8146         (gst_push_src_base_init), (gst_push_src_class_init),
8147         (gst_push_src_init), (gst_push_src_create):
8148         * gst/base/gstpushsrc.h:
8149         * gst/elements/gstelements.c:
8150         * gst/elements/gstfakesink.c: (gst_fake_sink_state_error_get_type),
8151         (gst_fake_sink_base_init), (gst_fake_sink_class_init),
8152         (gst_fake_sink_init), (gst_fake_sink_set_property),
8153         (gst_fake_sink_get_property), (gst_fake_sink_get_times),
8154         (gst_fake_sink_event), (gst_fake_sink_preroll),
8155         (gst_fake_sink_render), (gst_fake_sink_change_state):
8156         * gst/elements/gstfakesink.h:
8157         * gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type),
8158         (gst_fake_src_sizetype_get_type), (gst_fake_src_filltype_get_type),
8159         (gst_fake_src_base_init), (gst_fake_src_class_init),
8160         (gst_fake_src_init), (gst_fake_src_event_handler),
8161         (gst_fake_src_alloc_parent), (gst_fake_src_set_property),
8162         (gst_fake_src_get_property), (gst_fake_src_prepare_buffer),
8163         (gst_fake_src_alloc_buffer), (gst_fake_src_get_size),
8164         (gst_fake_src_create_buffer), (gst_fake_src_create),
8165         (gst_fake_src_start), (gst_fake_src_stop):
8166         * gst/elements/gstfakesrc.h:
8167         * gst/elements/gstfilesink.c: (_do_init),
8168         (gst_file_sink_base_init), (gst_file_sink_class_init),
8169         (gst_file_sink_init), (gst_file_sink_dispose),
8170         (gst_file_sink_set_location), (gst_file_sink_set_property),
8171         (gst_file_sink_get_property), (gst_file_sink_open_file),
8172         (gst_file_sink_close_file), (gst_file_sink_query),
8173         (gst_file_sink_event), (gst_file_sink_render),
8174         (gst_file_sink_change_state), (gst_file_sink_uri_get_type),
8175         (gst_file_sink_uri_get_protocols), (gst_file_sink_uri_get_uri),
8176         (gst_file_sink_uri_set_uri), (gst_file_sink_uri_handler_init):
8177         * gst/elements/gstfilesink.h:
8178         * gst/elements/gstfilesrc.c: (_do_init), (gst_file_src_base_init),
8179         (gst_file_src_class_init), (gst_file_src_init),
8180         (gst_file_src_finalize), (gst_file_src_set_location),
8181         (gst_file_src_set_property), (gst_file_src_get_property),
8182         (gst_file_src_map_region), (gst_file_src_map_small_region),
8183         (gst_file_src_create_mmap), (gst_file_src_create_read),
8184         (gst_file_src_create), (gst_file_src_is_seekable),
8185         (gst_file_src_get_size), (gst_file_src_start), (gst_file_src_stop),
8186         (gst_file_src_uri_get_type), (gst_file_src_uri_get_protocols),
8187         (gst_file_src_uri_get_uri), (gst_file_src_uri_set_uri),
8188         (gst_file_src_uri_handler_init):
8189         * gst/elements/gstfilesrc.h:
8190           more autistic cleanliness in functions/names/defines
8191
8192 2005-07-13  Andy Wingo  <wingo@pobox.com>
8193
8194         * gst/base/gstbasesrc.c (gst_base_src_start): Post an error if the
8195         source couldn't negotiate.
8196
8197         * gst/parse/grammar.y: Revert 1.54->1.55, so we now do filtered
8198         connections again.
8199
8200         * gst/gstutils.h:
8201         * gst/gstutils.c (gst_element_link_pads_filtered): New old
8202         function. I am channeling Hades. Put your boots on suckers!!!
8203
8204 2005-07-13  Thomas Vander Stichele  <thomas at apestaart dot org>
8205
8206         * testsuite/caps/Makefile.am:
8207         * testsuite/caps/value_compare.c:
8208         * testsuite/caps/value_intersect.c:
8209         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
8210           move two testsuite apps over to the check dir
8211
8212 2005-07-12  Wim Taymans  <wim@fluendo.com>
8213
8214         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
8215         Added more debug info in the negotiate process.
8216
8217         * gst/gstmessage.h:
8218         Prepare for segment playback.
8219
8220         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps):
8221         Better debugging.
8222
8223         * gst/gstutils.c:
8224         Some more docs.
8225
8226         * tools/gst-launch.c: (main):
8227         NULL pipeline on errors.
8228
8229 2005-07-12  Andy Wingo  <wingo@pobox.com>
8230
8231         * gst/gstbuffer.c (_gst_buffer_copy): Copy the buffer whether or
8232         not it comes from a malloc region. Make sure our copy gets freed.
8233
8234 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
8235
8236         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
8237         * check/gst/gstmessage.c: (GST_START_TEST):
8238         * check/gst/gststructure.c: (GST_START_TEST),
8239         (gst_structure_suite), (main):
8240           more testing
8241         * gst/gstelement.c: (gst_element_message_full):
8242           clean up GError and debug string now that they get copied
8243         * gst/gstmessage.c: (gst_message_new_error),
8244         (gst_message_new_warning), (gst_message_parse_error),
8245         (gst_message_parse_warning):
8246           use GST_TYPE_G_ERROR for structure_new, and take copies of
8247           arguments, so that we don't mess up refcounting
8248
8249 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
8250
8251         * check/Makefile.am:
8252           add per-test valgrind targets
8253         * check/gst-libs/gdp.c: (GST_START_TEST),
8254         (gst_data_protocol_suite), (main):
8255           clean up
8256
8257 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
8258
8259         * check/Makefile.am:
8260           instate more valgrindable tests
8261         * check/elements/gstfakesrc.c: (chain_func), (event_func),
8262         (GST_START_TEST), (fakesrc_suite):
8263         * check/gst/gstpad.c: (GST_START_TEST):
8264         * check/gst/gststructure.c: (GST_START_TEST):
8265           fix test leaks
8266         * docs/gst/tmpl/gstminiobject.sgml:
8267         * gst/gstpad.c: (gst_pad_finalize):
8268           fix the static mutex leak
8269
8270 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
8271
8272         * check/Makefile.am:
8273           add two more tests for valgrinding
8274         * check/gst/gstvalue.c: (GST_START_TEST):
8275           test refcount of deserialized buffer, found a leak
8276         * docs/gst/gstreamer-docs.sgml:
8277         * docs/gst/gstreamer-sections.txt:
8278         * docs/gst/gstreamer.types:
8279         * docs/gst/tmpl/gstminiobject.sgml:
8280           add miniobject to docs
8281         * gst/gstminiobject.c:
8282           add some docs
8283         * gst/gstvalue.c: (gst_value_deserialize_buffer),
8284         (gst_string_unwrap):
8285           fix a hard-to-find invalid write for one of the tests
8286           fix a leak for deserialized buffers
8287
8288 2005-07-11  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8289
8290         * docs/pwg/advanced-events.xml:
8291         * docs/pwg/advanced-request.xml:
8292         * docs/pwg/advanced-scheduling.xml:
8293         * docs/pwg/appendix-porting.xml:
8294         * docs/pwg/building-boiler.xml:
8295         * docs/pwg/intro-preface.xml:
8296         * docs/pwg/other-ntoone.xml:
8297           Rewrite scheduling-chapter for scheduling model in 0.9. Add lots
8298           of example code and explanation for pad activation, loop() and
8299           getrange() functions and a bit more. Remove old comments pointing
8300           to loop-functions.
8301         * examples/pwg/Makefile.am:
8302           Add loop/getrange examples.
8303
8304 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
8305
8306         * configure.ac:
8307           check for valgrind binary + some fixes
8308         * check/gst.supp:
8309           valgrind suppressions for the tests
8310         * check/Makefile.am:
8311           add a valgrind: target that valgrinds the unit tests
8312         * check/gst/gst.c: (GST_START_TEST), (gst_suite):
8313         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
8314         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
8315         * check/gst/gstghostpad.c:
8316           added some cleanup
8317         * check/gst/gstdata.c:
8318           removed
8319         * check/gst/gstminiobject.c: (GST_START_TEST), (thread_ref),
8320         (thread_unref), (gst_mini_object_suite), (main):
8321           added
8322         * gst/gst.c: (gst_deinit):
8323         * gst/gst.h:
8324           add a method to clean up.
8325         * gst/gstsystemclock.c: (gst_system_clock_dispose),
8326         (gst_system_clock_obtain):
8327           allow for disposing the system clock.
8328         * tools/gst-launch.c: (main):
8329           deinit
8330
8331 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
8332
8333         * docs/gst/tmpl/gstbasesrc.sgml:
8334         * docs/gst/tmpl/gstfakesrc.sgml:
8335         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
8336         (gst_base_src_init), (gst_base_src_set_property),
8337         (gst_base_src_get_property), (gst_base_src_get_range),
8338         (gst_base_src_start):
8339         * gst/base/gstbasesrc.h:
8340           add num-buffers property
8341         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
8342         (gst_fakesrc_init), (gst_fakesrc_set_property),
8343         (gst_fakesrc_get_property), (gst_fakesrc_create),
8344         (gst_fakesrc_start):
8345           remove num-buffers property
8346
8347 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
8348
8349         * docs/gst/gstreamer-sections.txt:
8350         * docs/gst/tmpl/gstbasesink.sgml:
8351         * docs/gst/tmpl/gstbasesrc.sgml:
8352         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
8353         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
8354         (gst_base_sink_finalize), (gst_base_sink_set_clock),
8355         (gst_base_sink_set_property), (gst_base_sink_get_property),
8356         (gst_base_sink_handle_object), (gst_base_sink_event),
8357         (gst_base_sink_do_sync), (gst_base_sink_handle_event),
8358         (gst_base_sink_handle_buffer), (gst_base_sink_chain),
8359         (gst_base_sink_loop), (gst_base_sink_deactivate),
8360         (gst_base_sink_activate_push), (gst_base_sink_activate_pull),
8361         (gst_base_sink_change_state):
8362         * gst/base/gstbasesink.h:
8363         * gst/base/gstbasesrc.h:
8364         * gst/elements/gstfakesink.c: (gst_fakesink_get_times):
8365         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
8366         (gst_filesink_init):
8367           more macro splitting
8368
8369 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
8370
8371         * gst/gstelement.c: (gst_element_get_bus):
8372           add debug
8373         * tools/gst-launch.c: (check_intr), (event_loop):
8374           fix bus leaks
8375
8376 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
8377
8378         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
8379           fix a caps leak
8380
8381 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
8382
8383         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
8384         (gst_base_src_finalize):
8385           add finalize method and clean up properly
8386         * gst/gstpipeline.c: (gst_pipeline_dispose):
8387           add debug
8388
8389 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
8390
8391         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST),
8392         (gst_bin_suite):
8393           add more things to check
8394         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
8395         * gst/gstelement.c:
8396           more debug
8397
8398 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
8399
8400         * check/elements/gstfakesrc.c: (chain_func), (event_func),
8401         (GST_START_TEST), (fakesrc_suite):
8402         * check/gst-libs/gdp.c: (GST_START_TEST):
8403         * check/gst/gst.c: (GST_START_TEST):
8404         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
8405         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
8406         * check/gst/gstbus.c: (GST_START_TEST):
8407         * check/gst/gstcaps.c: (GST_START_TEST):
8408         * check/gst/gstdata.c: (GST_START_TEST):
8409         * check/gst/gstelement.c: (GST_START_TEST):
8410         * check/gst/gstghostpad.c: (GST_START_TEST):
8411         * check/gst/gstiterator.c: (GST_START_TEST):
8412         * check/gst/gstmessage.c: (GST_START_TEST):
8413         * check/gst/gstobject.c: (GST_START_TEST):
8414         * check/gst/gstpad.c: (GST_START_TEST):
8415         * check/gst/gststructure.c: (GST_START_TEST):
8416         * check/gst/gstsystemclock.c: (GST_START_TEST),
8417         (gst_systemclock_suite):
8418         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
8419         * check/gst/gstvalue.c: (GST_START_TEST):
8420         * check/pipelines/cleanup.c: (GST_START_TEST):
8421         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
8422         * check/states/sinks.c: (GST_START_TEST):
8423         * check/gstcheck.c: (gst_check_init):
8424         * check/gstcheck.h:
8425           add debugging category
8426           use GST_START_TEST now, so we add a debug line
8427
8428 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
8429
8430         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite):
8431           add test for state change message on a bin
8432         * check/gst/gstelement.c: (START_TEST), (gst_element_suite):
8433           add another test
8434         * gst/gstbin.c: (gst_bin_init):
8435         * gst/gstbus.c: (gst_bus_init), (gst_bus_post):
8436         * gst/gstelement.c: (gst_element_post_message),
8437         (gst_element_set_state):
8438         * gst/gstelementfactory.c: (gst_element_factory_create):
8439         * gst/gstmessage.c: (gst_message_new):
8440         * gst/gstscheduler.c:
8441           various debugging additions and cleanups
8442
8443 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8444
8445         * check/Makefile.am:
8446         * check/gst/gstelement.c: (START_TEST), (gst_element_suite),
8447         (main):
8448           adding tests for elements
8449         * gst/gstelement.c: (gst_element_dispose):
8450
8451 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8452
8453         * gst/registries/gstlibxmlregistry.c: (load_feature):
8454           plug more leaks.  A simple gst_init() now is leakfree, yay.
8455
8456 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8457
8458         * gst/registries/gstlibxmlregistry.c: (read_string), (load_paths),
8459         (gst_xml_registry_load):
8460           plug another memleak
8461
8462 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8463
8464         * configure.ac:
8465           use GST_SET_ERROR_CFLAGS
8466         * docs/faq/cvs.xml:
8467           change to ERROR_CFLAGS
8468
8469 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8470
8471         * configure.ac:
8472           make GST_ERROR_CFLAGS overridable and re-enable Werror
8473         * docs/faq/cvs.xml:
8474           add a note about error CFLAGS
8475         * docs/gst/tmpl/gstfakesrc.sgml:
8476         * gst/elements/gstfakesrc.c:
8477           comment out some unused code
8478         * gst/gst.c: (split_and_iterate):
8479         * gst/registries/gstlibxmlregistry.c: (load_pad_template),
8480         (load_feature):
8481           plug some memleaks
8482
8483 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
8484
8485         * common/Makefile.am:
8486         * common/gtk-doc.mak:
8487         * docs/gst/Makefile.am:
8488           factor out gtk-doc.mak
8489
8490 2005-07-07  Wim Taymans  <wim@fluendo.com>
8491
8492         * gst/schedulers/threadscheduler.c: (gst_thread_scheduler_func),
8493         (gst_thread_scheduler_dispose):
8494         Unlock the STREAM_LOCK completely.
8495
8496 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
8497
8498         * check/Makefile.am:
8499         * check/elements/.cvsignore:
8500         * check/elements/gstfakesrc.c: (chain_func), (event_func),
8501         (START_TEST), (fakesrc_suite), (main):
8502         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
8503         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
8504         (gst_fakesrc_create), (gst_fakesrc_start):
8505         * gst/elements/gstfakesrc.h:
8506           adding a first element test
8507
8508 2005-07-07  Andy Wingo  <wingo@pobox.com>
8509
8510         * gst/gstbus.c (gst_bus_have_pending): Remove intensely irritating
8511         debug message.
8512
8513 2005-07-07  Wim Taymans  <wim@fluendo.com>
8514
8515         * gst/gstquery.c:
8516         * gst/gstquery.h:
8517         Remove old types
8518
8519 2005-07-07  Wim Taymans  <wim@fluendo.com>
8520
8521         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
8522         (gst_base_src_default_negotiate), (gst_base_src_negotiate):
8523         Allow subclasses to implement their own negotiation.
8524
8525 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
8526
8527         * docs/design/part-gstbin.txt:
8528         * docs/design/part-gstpipeline.txt:
8529           Update design notes to reflect the movement of
8530           responsibility for bus handling from GstPipeline to
8531           GstBin
8532
8533 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
8534
8535         * configure.ac:
8536           Remove unnecessary queue2/3/4 examples.
8537
8538 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
8539
8540         * examples/Makefile.am:
8541         * examples/helloworld/helloworld.c: (event_loop), (main):
8542         * examples/queue/queue.c: (event_loop), (main):
8543         * examples/queue2/queue2.c: (main):
8544           Update a couple of the examples to work again.
8545
8546         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
8547         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_event):
8548          Spelling corrections and extra debug.
8549         
8550         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init), (is_eos),
8551         (gst_bin_add_func), (bin_element_is_sink), (gst_bin_get_state),
8552         (gst_bin_change_state), (gst_bin_dispose), (bin_bus_handler):
8553         * gst/gstbin.h:
8554         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
8555         (gst_pipeline_change_state):
8556         * gst/gstpipeline.h:
8557           Move the bus handler for children to the GstBin, and create a
8558           separate bus for receiving messages from children to the one the
8559           bus sends 'upwards' on.
8560
8561 2005-07-06  Wim Taymans  <wim@fluendo.com>
8562
8563         * gst/base/README:
8564         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
8565         (gst_base_sink_handle_object), (gst_base_sink_loop),
8566         (gst_base_sink_change_state):
8567         * gst/base/gstbasesink.h:
8568         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
8569         (gst_base_src_init), (gst_base_src_setcaps),
8570         (gst_base_src_getcaps), (gst_base_src_loop),
8571         (gst_base_src_default_negotiate), (gst_base_src_negotiate),
8572         (gst_base_src_start), (gst_base_src_change_state):
8573         * gst/base/gstbasesrc.h:
8574         Make basesrc negotiate.
8575         Handle the case where preroll fails in basesink.
8576         Update README.
8577
8578 2005-07-06  Wim Taymans  <wim@fluendo.com>
8579
8580         * gst/gstpad.c: (gst_pad_fixate_caps), (gst_pad_accept_caps):
8581         Implement the fixate function.
8582         Clean up acceptcaps.
8583
8584 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8585
8586         * docs/pwg/building-filterfactory.xml:
8587         * docs/pwg/pwg.xml:
8588           Remove never-written filter-factory chapter; I'll add the various
8589           base classes to part 4 ("other element types") later on.
8590
8591 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8592
8593         * docs/pwg/advanced-negotiation.xml:
8594         * docs/pwg/building-boiler.xml:
8595         * docs/pwg/building-pads.xml:
8596         * docs/pwg/pwg.xml:
8597         * examples/pwg/Makefile.am:
8598           Add a chapter on caps negotiation, simplify the original code
8599           samples a bit w.r.t. caps negotiation, add link to the advanced
8600           section. Add a bunch of examples showing different use cases of
8601           different types of caps negotiation. Upstream renegotiation isn't
8602           fully documented yet since nobody knows how that works.
8603
8604 2005-07-06  Thomas Vander Stichele  <thomas at apestaart dot org>
8605
8606         * check/gst/gstpad.c:
8607         * check/gstcheck.c:
8608         * gst/gstpad.c: (gst_pad_get_internal_links_default):
8609           if pad has no parent, return NULL as list of internal links
8610
8611 2005-07-05  Andy Wingo  <wingo@pobox.com>
8612
8613         * gst/elements/gstfilesrc.c:
8614         * gst/elements/gstfakesrc.c: 
8615         * gst/base/gstpushsrc.c:
8616         * gst/base/gstbasesrc.h: 
8617         * gst/base/gstbasesrc.c: s/BASESRC/BASE_SRC/g.
8618         
8619 2005-07-05  Stefan Kost  <ensonic@users.sf.net>
8620
8621         * Makefile.am:
8622           better report generation target (lcov needs a patch)
8623
8624 2005-07-05  Andy Wingo  <wingo@pobox.com>
8625
8626         * gst/elements, testsuite: Null if we got it...
8627
8628 2005-07-05  Wim Taymans  <wim@fluendo.com>
8629
8630         * configure.ac:
8631         * libs/gst/dataprotocol/Makefile.am:
8632         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_validate_packet):
8633         * libs/gst/dataprotocol/dataprotocol.h:
8634         * pkgconfig/Makefile.am:
8635         * pkgconfig/gstreamer-dataprotocol-uninstalled.pc.in:
8636         * pkgconfig/gstreamer-dataprotocol.pc.in:
8637         Ported dataprotol to 0.9. 
8638         Added pkgconfig files.
8639
8640 2005-07-05  Andy Wingo  <wingo@pobox.com>
8641
8642         * gst/base/gstbasetransform.c (gst_base_transform_setcaps):
8643         Default to returning TRUE for the case when tranform_caps returns
8644         a fixed caps, like for identity or volume.
8645
8646         * check/gst/gstbus.c (pound_bus_with_messages): 
8647         * check/gst/gstmessage.c (START_TEST): 
8648         * check/pipelines/simple_launch_lines.c (got_handoff): Application
8649         message API change.
8650
8651         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): More
8652         logic weaks here: always run transform_caps, trying passthrough
8653         operation only if the original caps intersects with the transform.
8654
8655         * gst/gstpad.c (gst_pad_link_check_compatible_unlocked): Debug
8656         source and sink caps.
8657
8658         * gst/base/gstbasetransform.c (gst_base_transform_getcaps):
8659         Intersect the peer caps with the pad template before going into
8660         transform_caps.
8661         (gst_base_transform_transform_caps): More debugging.
8662
8663         * gst/gstmessage.h (gst_message_new_application): Take a GstObject
8664         src argument.
8665
8666 2005-07-04  Edward Hervey  <edward@fluendo.com>
8667
8668         * gst/gstutils.c:
8669         * gst/gstutils.h:
8670         (gst_pad_add_*_probe): now returns the signal id for better wrapping
8671         in bindings.
8672
8673 2005-07-04  Andy Wingo  <wingo@pobox.com>
8674
8675         * check/gst/gstpad.c: Only set explicit caps on pads.
8676
8677 2005-07-01  Andy Wingo  <wingo@pobox.com>
8678
8679         * tests/network-clock.scm: Commentary update.
8680
8681         * gst/elements/gstidentity.c (PROP_DUPLICATE): Gone daddy gone.
8682         Didn't really make sense, not implementable with basetransform,
8683         etc.
8684         (gst_identity_transform): Unref inbuf via make_writable. Feeble
8685         attempt at implementing the sync property, needs an unlock method.
8686
8687         * gst/base/gstbasetransform.c (gst_base_transform_transform_caps):
8688         New func, by default returns the same caps (the identity
8689         transformation).
8690         (gst_base_transform_getcaps): Uses transform_caps to return
8691         something sensible.
8692         (gst_base_transform_setcaps): Complicated logic to get caps on
8693         both pads, even if they are different, and to call set_caps once
8694         for every time both pads get their caps set.
8695         (gst_base_transform_handle_buffer): Give the ref to the transform
8696         function. Allows in-place modification of the buffer.
8697
8698         * gst/base/gstbasetransform.h (transform_caps): New class method.
8699         Given caps on one side, what can I do on the other.
8700         (set_caps): Take two caps, one for each side of the element.
8701
8702         * gst/gstpad.h:
8703         * gst/gstpad.c (gst_pad_fixate_caps): Change prototype to modify
8704         caps in place. This is safe because we can check the mutability of
8705         the caps, and a good idea because fixate functions are just called
8706         as a matter of last resort. (Not actually implemented.)
8707         (gst_pad_set_caps): If the caps we're setting is actually the same
8708         as the existing pad caps, just update the pointer without calling
8709         setcaps. Assert that caps is either NULL or fixed, as per the
8710         docs.
8711
8712         * gst/gstghostpad.c: Update for fixate changes.
8713
8714 2005-07-02  Andy Wingo  <wingo@pobox.com>
8715
8716         * gst/gstcaps.c:
8717         * gst/gstcaps.h (gst_static_caps_get): Not const return, having
8718         two refcounts makes it immutable, which is enough. Doc more.
8719
8720 2005-07-02  Jan Schmidt  <thaytan@mad.scientist.com>
8721
8722         * gst/gstpad.c: (gst_pad_emit_have_data_signal):
8723           Put the mini_object into GValue as a mini_object,
8724           not a gpointer, since that's how we declared
8725           the signal.
8726
8727 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8728
8729         * examples/pwg/Makefile.am:
8730           Fix buildbot again.
8731
8732 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8733
8734         * docs/pwg/building-testapp.xml:
8735           Add extra check.
8736         * examples/pwg/Makefile.am:
8737           Fix buildbot.
8738
8739 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8740
8741         * configure.ac:
8742         * examples/Makefile.am:
8743         * examples/pwg/Makefile.am:
8744         * examples/pwg/extract.pl:
8745           Enable building the PWG examples.
8746         * docs/pwg/advanced-interfaces.xml:
8747           Add URI interface stub.
8748         * docs/pwg/advanced-types.xml:
8749         * docs/pwg/other-autoplugger.xml:
8750         * docs/pwg/appendix-porting.xml:
8751         * docs/pwg/pwg.xml:
8752           Add porting guide (mostly stubs), remove autoplugging (see ADM).
8753         * docs/pwg/building-boiler.xml:
8754         * docs/pwg/building-chainfn.xml:
8755         * docs/pwg/building-pads.xml:
8756         * docs/pwg/building-props.xml:
8757         * docs/pwg/building-state.xml:
8758         * docs/pwg/building-testapp.xml:
8759           Update the building-*.xml parts for 0.9 changes. All examples
8760           code blocks compile in examples/pwg/*.
8761
8762 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8763
8764         * docs/manual/advanced-autoplugging.xml:
8765         * docs/manual/appendix-checklist.xml:
8766         * docs/manual/appendix-integration.xml:
8767         * docs/manual/highlevel-components.xml:
8768           Fix playbin/decodebin examples, update docs a bit, mention bus
8769           instead of signals in various places, mention kmplayer and
8770           kaffeine since they have a working GStreamer backend in the KDE
8771           section.
8772
8773 2005-06-30  Wim Taymans  <wim@fluendo.com>
8774
8775         * CHANGES-0.9:
8776         * docs/design/draft-ghostpads.txt:
8777         * docs/design/draft-push-pull.txt:
8778         * docs/design/draft-query.txt:
8779         * docs/design/part-TODO.txt:
8780         * docs/design/part-query.txt:
8781         Added CHANGES-0.9 doc, updated status of other docs.
8782         
8783         * gst/gstquery.h:
8784         Remove "hmm" macro
8785
8786 2005-06-30  Wim Taymans  <wim@fluendo.com>
8787
8788         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
8789         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
8790         (gst_base_sink_change_state):
8791         * gst/base/gstbasesink.h:
8792         Some tweaks, only EOS and a buffer complete a preroll.
8793
8794 2005-06-30  Andy Wingo  <wingo@pobox.com>
8795
8796         * gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
8797         activate_push down to the internal pad as well.
8798
8799 2005-06-30  Torsten Schoenfeld  <kaffeetisch@gmx.de>
8800
8801         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8802
8803         * gst/gsttaginterface.c:
8804           Some documentation fixes (#307394 and #307397).
8805
8806 2005-06-30  Antoine Tremblay  <hexa00@gmail.com>
8807
8808         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8809
8810         * gst/gstvalue.c: (gst_value_intersect_list):
8811           Fix memleak (#309125).
8812
8813 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8814
8815         * docs/manual/advanced-dataaccess.xml:
8816           Fix fakesrc example to compile; doesn't work, bug somewhere...?
8817         * docs/manual/basics-pads.xml:
8818           Add reference for filtered caps to above chapter.
8819
8820 2005-06-30  Wim Taymans  <wim@fluendo.com>
8821
8822         * gst/gstbin.c: (clear_queue), (remove_all_from_queue),
8823         (gst_bin_change_state):
8824         Probes are gone.
8825         Lame attempt at making the state change function a bit
8826         more readable.
8827
8828 2005-06-30  Wim Taymans  <wim@fluendo.com>
8829
8830         * docs/design/part-clocks.txt:
8831         * docs/design/part-element-sink.txt:
8832         * docs/design/part-events.txt:
8833         * docs/design/part-preroll.txt:
8834         * docs/design/part-states.txt:
8835         Some more tweeks and additions to the docs.
8836
8837 2005-06-30  Wim Taymans  <wim@fluendo.com>
8838
8839         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
8840         (default_have_data), (gst_pad_class_init), (gst_pad_init),
8841         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
8842         (gst_pad_check_pull_range), (gst_pad_get_range),
8843         (gst_pad_pull_range), (gst_pad_push_event), (gst_pad_send_event):
8844         * gst/gstpad.h:
8845         * gst/gstutils.c: (gst_atomic_int_set), (gst_pad_add_data_probe),
8846         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
8847         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
8848         (gst_pad_remove_buffer_probe):
8849         Removed atomic operations, use existing LOCK.
8850         Move exception handling out of main code path.
8851
8852 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8853
8854         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
8855         (silly_return_true_function), (gst_pad_class_init),
8856         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
8857         (gst_pad_get_range), (gst_pad_pull_range), (gst_pad_push_event),
8858         (gst_pad_send_event):
8859           Fix accumulator, add default value by using _emitv() instead
8860           of _emit() for signal emission.
8861
8862 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8863
8864         * docs/manual/advanced-dataaccess.xml:
8865         * examples/manual/Makefile.am:
8866           Add probe example.
8867         * gst/gstpad.c: (_gst_do_pass_data_accumulator):
8868           Make work (??).
8869
8870 2005-06-29  Tim-Philipp Müller  <tim at centricular dot net>
8871
8872         * gst/elements/gstfilesink.c: (gst_filesink_render):
8873           Simplify code so that we don't have to handle short
8874           writes and return GST_FLOW_ERROR if an error occured.
8875
8876 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8877
8878         * docs/gst/gstreamer-docs.sgml:
8879           Remove probes more.
8880
8881 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8882
8883         * docs/gst/gstreamer-sections.txt:
8884         * docs/gst/tmpl/gstpad.sgml:
8885         * docs/gst/tmpl/gstprobe.sgml:
8886         * gst/Makefile.am:
8887         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
8888         (gst_pad_class_init), (gst_pad_init), (gst_pad_chain),
8889         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
8890         (gst_pad_push_event), (gst_pad_send_event):
8891         * gst/gstpad.h:
8892         * gst/gstutils.c: (gst_pad_add_data_probe),
8893         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
8894         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
8895         (gst_pad_remove_buffer_probe):
8896         * gst/gstutils.h:
8897           Remove old probes, add new g-signal-based probes and some utility
8898           functions.
8899
8900 2005-06-29  Edward Hervey  <edward@fluendo.com>
8901
8902         * gst/gstelementfactory.c:
8903         * gst/gstutils.h:
8904         * gst/gstutils.c:
8905         Moved gst_element_factory_can_[sink|src]_caps() to gstutils and added
8906         the definition to the header file.
8907
8908 2005-06-29  Andy Wingo  <wingo@pobox.com>
8909
8910         * docs/gst/Makefile.am (scan-build.stamp): Totally only check
8911         plugins from the source directory.
8912
8913 2005-06-29  Wim Taymans  <wim@fluendo.com>
8914
8915         * docs/gst/tmpl/gstbuffer.sgml:
8916         * docs/gst/tmpl/gstclock.sgml:
8917         Some fixings for blantently wrong text.
8918
8919 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
8920
8921         * check/Makefile.am:
8922         * gst/gst.c: (add_path_func), (init_pre):
8923         * gst/gstregistry.c: (gst_registry_add_path):
8924           add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will
8925           only scan the GST_PLUGIN_PATH locations, and not add
8926           system locations
8927
8928 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
8929
8930         * docs/gst/gstreamer-sections.txt:
8931         * docs/gst/tmpl/gstbasesrc.sgml:
8932         * gst/gstelement.c:
8933         * gst/gstelement.h:
8934         * gst/gstevent.c:
8935         * gst/gstutils.c:
8936           doc fixes
8937
8938 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8939
8940         * docs/manual/advanced-autoplugging.xml:
8941           Fix autoplugging example.
8942
8943 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8944
8945         * docs/manual/advanced-autoplugging.xml:
8946         * docs/manual/mime-world.fig:
8947           Try to get autoplugging working, fix type detection. Fix text
8948           in hello-world image.
8949
8950 2005-06-29  Wim Taymans  <wim@fluendo.com>
8951
8952         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
8953         (gst_base_sink_change_state):
8954         Small debug line.
8955
8956         * gst/gstclock.h:
8957         map SIGNAL and BROADCAST to the right function.
8958
8959         * gst/gstobject.h:
8960         Remove redundant braces.
8961
8962         * gst/gstpad.c: (gst_pad_set_caps):
8963         Don't call setcaps function when reseting caps to NULL.
8964
8965         * gst/gstsystemclock.c: (gst_system_clock_dispose),
8966         (gst_system_clock_async_thread), (gst_system_clock_id_wait_async),
8967         (gst_system_clock_id_unschedule):
8968         Use BROADCAST as this is what we do.
8969
8970 2005-06-29  Wim Taymans  <wim@fluendo.com>
8971
8972         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
8973         We are actually prerolling before commiting the state
8974         change. 
8975
8976 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8977
8978         * docs/manual/advanced-clocks.xml:
8979         * docs/manual/advanced-interfaces.xml:
8980         * docs/manual/advanced-metadata.xml:
8981         * docs/manual/advanced-position.xml:
8982         * docs/manual/advanced-schedulers.xml:
8983         * docs/manual/advanced-threads.xml:
8984         * docs/manual/appendix-porting.xml:
8985         * docs/manual/basics-bins.xml:
8986         * docs/manual/basics-bus.xml:
8987         * docs/manual/basics-elements.xml:
8988         * docs/manual/basics-helloworld.xml:
8989         * docs/manual/basics-pads.xml:
8990         * docs/manual/highlevel-components.xml:
8991         * docs/manual/manual.xml:
8992         * docs/manual/thread.fig:
8993           Update (until threads/scheduling) Application Development Manual;
8994           remove GstThread, add GstBus, add simple porting checklist, add
8995           documentation for tag writing, clocks, make all examples until this
8996           part compile and run.
8997         * examples/manual/Makefile.am:
8998           Update from changes to Application Development Manual; add bus
8999           example, remove thread example.
9000
9001 2005-06-28  Wim Taymans  <wim@fluendo.com>
9002
9003         * gst/gstbus.c: (gst_bus_post), (gst_bus_have_pending),
9004         (gst_bus_set_flushing), (gst_bus_pop), (gst_bus_peek),
9005         (gst_bus_source_dispatch):
9006         Add debugging messages.
9007         Make internal methods static.
9008         Handle the case where the bus is flushed in the handler.
9009         
9010         * gst/gstelement.c: (gst_element_get_bus):
9011         Fix refcount in _get_bus();
9012
9013         * gst/gstpipeline.c: (gst_pipeline_change_state),
9014         (gst_pipeline_get_clock_func):
9015         Clock refcounting fixes.
9016         Handle the case where preroll timed out more gracefully.
9017         
9018         * gst/gstsystemclock.c: (gst_system_clock_dispose):
9019         Clean up the internal thread in dispose. This is needed
9020         for subclasses that actually get disposed.
9021         
9022         * gst/schedulers/threadscheduler.c:
9023         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
9024         (gst_thread_scheduler_dispose):
9025         Free thread pool in dispose.
9026
9027 2005-06-28  Andy Wingo  <wingo@pobox.com>
9028
9029         * tests/network-clock-utils.scm (debug, print-event): New utils.
9030
9031         * tests/network-clock.scm (*debug*, *with-graph*): New parameters.
9032         (*packet-loss*): Unified loss probability.
9033         (network-time): Report out-of-band events.
9034
9035         * tests/plot-data: Add support for out-of-band events. Hack it
9036         into this script instead of passing it down the pipe; should fix
9037         this later.
9038
9039 2005-06-28  Wim Taymans  <wim@fluendo.com>
9040
9041         * docs/gst/gstreamer.types:
9042         * docs/gst/tmpl/gstbasesrc.sgml:
9043         * docs/gst/tmpl/gstpad.sgml:
9044         Docs fixes.
9045
9046 2005-06-28  Wim Taymans  <wim@fluendo.com>
9047
9048         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
9049         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_acceptcaps),
9050         (gst_proxy_pad_do_fixatecaps):
9051         Correctly proxy the check_pull_range function.
9052
9053 2005-06-28  Andy Wingo  <wingo@pobox.com>
9054
9055         * tests/network-clock.scm: Removed need for slib.
9056         
9057 2005-06-28  Wim Taymans  <wim@fluendo.com>
9058
9059         * gst/base/gstbasesink.c: (gst_basesink_set_pad_functions),
9060         (gst_basesink_preroll_queue_flush):
9061         * gst/base/gstbasesrc.c: (gst_basesrc_set_dataflow_funcs):
9062         * gst/elements/gsttee.c: (gst_tee_update_pad_functions):
9063         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
9064         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
9065         (gst_proxy_pad_set_property):
9066         * gst/gstpad.c:
9067         * gst/gstpad.h:
9068         * gst/gstqueue.c: (gst_queue_init):
9069         The deprecated pad loop function is removed now.
9070
9071 2005-06-28  Andy Wingo  <wingo@pobox.com>
9072
9073         * tests/network-clock.scm (*timeout*, *send-loss*, *recv-loss*):
9074         New parameters, simulate network packet loss.
9075
9076         * tests/network-clock-utils.scm: Initialize the RNG.
9077
9078 2005-06-28  Wim Taymans  <wim@fluendo.com>
9079
9080         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_flush),
9081         (gst_basesink_event), (gst_basesink_deactivate):
9082         Flushing the preroll queue always needs to unlock the waiters.
9083
9084 2005-06-28  Edward Hervey  <edward@fluendo.com>
9085
9086         * gst/gstpipeline.c: (gst_pipeline_send_event): 
9087         Wheen a seek was successful on a pipeline, set the stream_time to the
9088         seek offset in order to have a synchronized stream_time.
9089
9090 2005-06-28  Wim Taymans  <wim@fluendo.com>
9091
9092         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
9093         (gst_proxy_pad_do_getrange), (gst_proxy_pad_do_checkgetrange),
9094         (gst_proxy_pad_do_getcaps), (gst_proxy_pad_do_acceptcaps),
9095         (gst_proxy_pad_do_fixatecaps):
9096         Call wrapper function instead of just calling the function
9097         pointers. This takes care of any locking and whatmore.
9098
9099 2005-06-28  Wim Taymans  <wim@fluendo.com>
9100
9101         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push),
9102         (gst_pad_pull_range):
9103         * gst/gstpad.h:
9104         CONNECTED -> LINKED.
9105
9106 2005-06-28  Andy Wingo  <wingo@pobox.com>
9107
9108         * *.c: Don't cast to GST_OBJECT when reffing or unreffing. Large
9109         source-munging commit!!!
9110
9111         * gst/gstobject.c (gst_object_unref, gst_object_ref) 
9112         (gst_object_sink): Take gpointer arguments, not GstObject --
9113         avoids casts. Like GLib.
9114
9115         * gst/gstghostpad.c (gst_proxy_pad_do_activate): Don't proxy
9116         activate.
9117
9118 2005-06-27  Andy Wingo  <wingo@pobox.com>
9119
9120         * gst/base/gsttypefindhelper.c (gst_type_find_helper): Unref any
9121         remaining buffer.
9122
9123         * gst/gsttrace.c (gst_alloc_trace_list_sorted): New helper,
9124         returns a sorted copy of the trace list.
9125         (gst_alloc_trace_print_live): New API, only prints traces with
9126         live objects. Sort the list.
9127         (gst_alloc_trace_print_all): Sort the list.
9128         (gst_alloc_trace_print): Align columns.
9129
9130         * gst/elements/gstttypefindelement.c:
9131         * gst/elements/gsttee.c:
9132         * gst/base/gstbasesrc.c:
9133         * gst/base/gstbasesink.c:
9134         * gst/base/gstbasetransform.c:
9135         * gst/gstqueue.c: Adapt for pad activation changes.
9136
9137         * gst/gstpipeline.c (gst_pipeline_init): Unref after parenting
9138         sched.
9139         (gst_pipeline_dispose): Drop ref on sched.
9140
9141         * gst/gstpad.c (gst_pad_init): Set the default activate func.
9142         (gst_pad_activate_default): Push mode by default.
9143         (pre_activate_switch, post_activate_switch): New stubs, things to
9144         do before and after switching activation modes on pads.
9145         (gst_pad_set_active): Take a boolean and not a mode, dispatch to
9146         the pad's activate function to choose which mode to activate.
9147         Shortcut on deactivation and call the right function directly.
9148         (gst_pad_activate_pull): New API, (de)activates a pad in pull
9149         mode.
9150         (gst_pad_activate_push): New API, same for push mode.
9151         (gst_pad_set_activate_function) 
9152         (gst_pad_set_activatepull_function) 
9153         (gst_pad_set_activatepush_function): Setters for new API.
9154
9155         * gst/gstminiobject.c (gst_mini_object_new, gst_mini_object_free):
9156         Trace all miniobjects.
9157         (gst_mini_object_make_writable): Unref the arg if we copy, like
9158         gst_caps_make_writable.
9159
9160         * gst/gstmessage.c (_gst_message_initialize): No trace init.
9161
9162         * gst/gstghostpad.c (gst_proxy_pad_do_activate) 
9163         (gst_proxy_pad_do_activatepull, gst_proxy_pad_do_activatepush):
9164         Adapt for new pad API.
9165
9166         * gst/gstevent.c (_gst_event_initialize): Don't initialize trace.
9167
9168         * gst/gstelement.h:
9169         * gst/gstelement.c (gst_element_iterate_src_pads) 
9170         (gst_element_iterate_sink_pads): New API functions.
9171         
9172         * gst/gstelement.c (iterator_fold_with_resync): New utility,
9173         should fold into gstiterator.c in some form.
9174         (gst_element_pads_activate): Simplified via use of fold and
9175         delegation of decisions to gstpad->activate.
9176
9177         * gst/gstbus.c (gst_bus_source_finalize): Set the bus to NULL,
9178         help in debugging.
9179
9180         * gst/gstbuffer.c (_gst_buffer_initialize): Ref the buffer type
9181         class once in init, like gstmessage. Didn't run into this issue
9182         but it seems correct. Don't initialize a trace, gstminiobject does
9183         that.
9184
9185         * check/pipelines/simple_launch_lines.c (test_stop_from_app): New
9186         test, runs fakesrc ! fakesink, stopping on ::handoff via a message
9187         to the bus.
9188         (assert_live_count): New util function, uses alloc traces to check
9189         cleanup.
9190
9191         * check/gst/gstghostpad.c (test_ghost_pads): More refcount checks.
9192         To be modified when unlink drops the internal pad.
9193
9194 2005-06-27  Wim Taymans  <wim@fluendo.com>
9195
9196         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_iterate_state_order),
9197         (gst_bin_change_state):
9198         Cleanup the get_state() function a little, make sure it
9199         iterates the same set of elements.
9200         Added stub iterate_state_order().
9201
9202 2005-06-27  Thomas Vander Stichele  <thomas at apestaart dot org>
9203
9204         * docs/gst/gstreamer-docs.sgml:
9205         * docs/gst/gstreamer-sections.txt:
9206         * docs/gst/gstreamer.types:
9207         * docs/gst/tmpl/gstbasesink.sgml:
9208         * docs/gst/tmpl/gstbasesrc.sgml:
9209         * docs/gst/tmpl/gstbasetransform.sgml:
9210         * docs/gst/tmpl/gstelement.sgml:
9211         * docs/gst/tmpl/gstiterator.sgml:
9212         * gst/base/gstbasesrc.c:
9213         * gst/base/gstbasesrc.h:
9214         * gst/base/gstbasetransform.h:
9215         * gst/gstelement.c:
9216         * gst/gstiterator.h:
9217           adding basetransform and iterator docs
9218
9219 2005-06-27  Andy Wingo  <wingo@pobox.com>
9220
9221         * docs/design/part-activation.txt: Notes on how activation should
9222         work -- not quite implemented yet.
9223
9224 2005-06-25  Wim Taymans  <wim@fluendo.com>
9225
9226         * gst/gstghostpad.c: (gst_proxy_pad_do_chain):
9227         At least get the chain function correct, needs more
9228         fixing.
9229
9230 2005-06-25  Wim Taymans  <wim@fluendo.com>
9231
9232         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
9233         (gst_basesink_handle_object), (gst_basesink_event),
9234         (gst_basesink_do_sync), (gst_basesink_handle_event),
9235         (gst_basesink_change_state):
9236         * gst/gsttask.h:
9237         Right, two problems here: ghostpads don't take locks and
9238         glib _rec_mutex_lock_full() with depth==0 still locks.
9239         Catch illegal locking and g_warn them.
9240
9241 2005-06-25  Wim Taymans  <wim@fluendo.com>
9242
9243         * check/states/sinks.c: (START_TEST), (gst_object_suite):
9244         Have to check for completion now...
9245
9246 2005-06-25  Wim Taymans  <wim@fluendo.com>
9247
9248         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
9249         (gst_basesink_handle_object), (gst_basesink_event),
9250         (gst_basesink_do_sync), (gst_basesink_handle_event),
9251         (gst_basesink_change_state):
9252         * gst/gstpad.h:
9253         Unlock STREAM_LOCK whatever the recursion was.
9254
9255 2005-06-25  Wim Taymans  <wim@fluendo.com>
9256
9257         * gst/base/gstbasesink.c: (gst_basesink_set_property),
9258         (gst_basesink_preroll_queue_empty),
9259         (gst_basesink_preroll_queue_flush), (gst_basesink_handle_object),
9260         (gst_basesink_event), (gst_basesink_do_sync),
9261         (gst_basesink_handle_event), (gst_basesink_handle_buffer),
9262         (gst_basesink_chain), (gst_basesink_loop), (gst_basesink_activate),
9263         (gst_basesink_change_state):
9264         Reworked the base sink, handle event and buffer serialisation
9265         correctly and removed possible deadlock.
9266         Handle EOS correctly.
9267
9268 2005-06-25  Wim Taymans  <wim@fluendo.com>
9269
9270         * gst/gstpipeline.c: (is_eos), (pipeline_bus_handler),
9271         (gst_pipeline_change_state):
9272         * tools/gst-launch.c: (check_intr), (event_loop), (main):
9273         Allow elements to post EOS in the state change function.
9274         Fix up -launch, make it exit the poll loop when the
9275         pipeline actually changed state.
9276         Fix up warning parsing in -launch.
9277
9278 2005-06-25  Wim Taymans  <wim@fluendo.com>
9279
9280         * gst/elements/gsttee.c: (gst_tee_chain), (gst_tee_loop),
9281         (gst_tee_sink_activate):
9282         Core takes STREAM_LOCK for us now.
9283
9284 2005-06-25  Wim Taymans  <wim@fluendo.com>
9285
9286         * gst/gstelement.c: (gst_element_get_state_func),
9287         (gst_element_set_state):
9288         * gst/gstelement.h:
9289         * gst/gstmessage.c: (gst_message_parse_error),
9290         (gst_message_parse_warning):
9291         Keep track of current target state while performing a state
9292         change so that subclasses can do something interesting.
9293         Fix parsing of warning/error messages when GError is NULL.
9294
9295 2005-06-24  Thomas Vander Stichele  <thomas at apestaart dot org>
9296
9297         * docs/gst/Makefile.am:
9298         * docs/gst/gstreamer-docs.sgml:
9299         * docs/gst/gstreamer-sections.txt:
9300         * docs/gst/gstreamer.types:
9301         * docs/gst/tmpl/gstbasesink.sgml:
9302         * docs/gst/tmpl/gstbasesrc.sgml:
9303         * docs/gst/tmpl/gstbin.sgml:
9304         * docs/gst/tmpl/gstcompat.sgml:
9305         * docs/gst/tmpl/gstfakesink.sgml:
9306         * docs/gst/tmpl/gstfakesrc.sgml:
9307         * docs/gst/tmpl/gstfilesink.sgml:
9308         * docs/gst/tmpl/gstfilesrc.sgml:
9309         * docs/gst/tmpl/gstindex.sgml:
9310         * docs/manual/appendix-quotes.xml:
9311         * gst/base/gstbasesrc.h:
9312         * gst/elements/gstfakesrc.h:
9313         * gst/gstmessage.h:
9314           start pulling in base classes and elements in our docs
9315
9316 2005-06-24  Stefan Kost  <ensonic@users.sf.net>
9317
9318         * docs/gst/Makefile.am:
9319         * docs/libs/Makefile.am:
9320           fixed make distcheck with gtk-doc 1.3
9321
9322 2005-06-23  Wim Taymans  <wim@fluendo.com>
9323
9324         * gst/gstelement.c: (gst_element_get_state_func),
9325         (gst_element_set_state), (gst_element_change_state):
9326         When the state did not change, also report NO_PREROLL
9327         when it matters.
9328
9329 2005-06-23  Wim Taymans  <wim@fluendo.com>
9330
9331         * gst/gstpad.c: (gst_pad_event_default):
9332         * gst/gstqueue.c: (gst_queue_loop):
9333         No unsafe task pausing please.
9334
9335 2005-06-23  Wim Taymans  <wim@fluendo.com>
9336
9337         * gst/schedulers/threadscheduler.c:
9338         (gst_thread_scheduler_task_start),
9339         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_func):
9340         Ref the task before pushing it on the threadpool. This
9341         makes sure that we have a ref when the threadfunction is
9342         actually called.
9343
9344 2005-06-23  Andy Wingo  <wingo@pobox.com>
9345
9346         * gst/base/gstbasesrc.c (gst_basesrc_get_range): Check if the
9347         offset is greater than the file's size.
9348
9349         * gst/gstobject.h (GST_CLASS_LOCK, GST_CLASS_TRYLOCK) 
9350         (GST_CLASS_UNLOCK, GST_CLASS_GET_LOCK, GstObjectClass)
9351         * gst/gstobject.c (gst_object_class_init): Make the class lock
9352         recursive. Wim won't let me drop deep_notify. Decodebin works
9353         again, whoopdy doo.
9354
9355         * gst/gstghostpad.c (on_int_notify): Catches notify::caps on the
9356         internal pad, and hacks accordingly. Doesn't do it on the target
9357         pad because we change its caps. Probably catches all cases of
9358         interest tho.
9359         (gst_ghost_pad_set_property): Connect to notify::caps as
9360         appropritate.
9361
9362         * tests/network-clock.scm (plot-simulation): Pipe data to the
9363         elite python skript.
9364
9365         * tests/network-clock-utils.scm (define-parameter): New macro,
9366         defines a parameter that can be set via the command line.
9367         (set-parameter!, parse-parameter-arguments): Command line args
9368         parser.
9369
9370         * tests/plot-data: Simple matplotlib-based plotter, takes input on
9371         stdin.
9372
9373 2005-06-23  Jan Schmidt  <thaytan@mad.scientist.com>
9374
9375         * gst/elements/gsttypefindelement.c:
9376         (gst_type_find_element_handle_event):
9377           Don't restart typefinding on a discont.
9378         * gst/gstelement.c: (gst_element_set_state):
9379           Debug spelling fix.
9380         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_send_event):
9381           Allow changing mode of an active pad.
9382           Debug output fixes.
9383         * gst/registries/gstlibxmlregistry.c: (load_feature):
9384           Don't cast a static pad template to a normal pad template.
9385
9386 2005-06-23  Thomas Vander Stichele  <thomas at apestaart dot org>
9387
9388         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
9389         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
9390           remove gst_strtoll completely, since it didn't actually do
9391           anything more than what g_ascii_strtoull already does.
9392           check for range errors when deserializing
9393           do a cast for the unsigned cases; but further fixing needs
9394           a decision on what the interpretation of "(int)" and
9395           deserialization should be for values that fall outside the
9396           type's boundaries (ie, refuse, or interpret as casting)
9397
9398 2005-06-23  Wim Taymans  <wim@fluendo.com>
9399
9400         * check/Makefile.am:
9401         * check/states/sinks.c: (START_TEST), (gst_object_suite), (main):
9402         * docs/design/part-live-source.txt:
9403         * docs/design/part-states.txt:
9404         * gst/base/gstbasesrc.c: (gst_basesrc_init),
9405         (gst_basesrc_set_live), (gst_basesrc_is_live),
9406         (gst_basesrc_get_range), (gst_basesrc_activate),
9407         (gst_basesrc_change_state):
9408         * gst/base/gstbasesrc.h:
9409         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
9410         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
9411         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_change_state):
9412         * gst/gstelement.c: (gst_element_get_state_func),
9413         (gst_element_set_state):
9414         * gst/gstelement.h:
9415         * gst/gsttypes.h:
9416         * tools/gst-launch.c: (event_loop), (main):
9417         Added support for live sources and other elements that
9418         cannot do preroll.
9419         Updated design docs, added live-source design doc.
9420         Implemented live source functionality in basesrc
9421         Fix error condition in _bin_get_state()
9422         Implement live source handling in -launch.
9423         Added check for live sources.
9424         Fixed case in GstBin where elements were changed state
9425         multiple times.
9426
9427
9428 2005-06-23  Andy Wingo  <wingo@pobox.com>
9429
9430         * check/gst/gstpad.c (test_get_allowed_caps, test_refcount): Fix
9431         borken refcounting.
9432
9433         * gst/gstpad.c (gst_pad_set_caps): Remove needless refs,
9434         gst_caps_replace takes care of this for us.
9435
9436         * gst/gstghostpad.c (gst_proxy_pad_do_setcaps): Call the full
9437         gst_pad_set_caps on the target, not just its setcaps() function.
9438
9439         * tests/network-clock.scm: 
9440         * tests/network-clock-utils.scm: A network clock simulator.
9441         Something of an algorithmic testbed before doing something in C.
9442
9443 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
9444
9445         * check/Makefile.am:
9446         * check/gst/capslist.h:
9447           copy over from 0.8, and add two with bitmasks specified with
9448           (int) 0xFF...
9449         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
9450           add test to parse everything from capslist.h
9451         * check/gst/gststructure.c: (START_TEST), (gst_value_suite),
9452         (main):
9453           add test for structure deserialization
9454         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
9455           add tests for deserialization of strings to int types
9456         * gst/gststructure.c: (gst_structure_nth_field_name):
9457         * gst/gststructure.h:
9458           add a way to get the name of a field referenced by index
9459         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
9460           instead of checking if the resulting long long lies between
9461           min and max, we check if the long long would fit into
9462           a number of bytes for the final type.
9463           This fixes cases where a string represents 2^32 - 1, which
9464           when cast to int would be the (valid) -1, but is bigger than
9465           G_MAXINT
9466
9467 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
9468
9469         * gst/parse/grammar.y:
9470           add a log line for type deserialization
9471
9472 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
9473
9474         * check/gst/gstvalue.c: (START_TEST):
9475         * gst/gstvalue.c: (gst_value_deserialize):
9476           return long long, not int, so gint64 deserialization actually
9477           works.  Is there any flag that makes the compiler check this ?
9478           Fixes #308559
9479
9480 2005-06-22  Wim Taymans  <wim@fluendo.com>
9481
9482         * gst/gstbuffer.h:
9483         Added convenience macros for setting buffers in GValue.
9484
9485 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
9486
9487         * check/gst/.cvsignore:
9488         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
9489           add a test deserializing int64, and comment part out because
9490           it fails, yay !
9491
9492 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
9493
9494         * check/Makefile.am:
9495         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite), (main):
9496         * testsuite/Makefile.am:
9497         * testsuite/caps/Makefile.am:
9498         * testsuite/caps/value_serialize.c:
9499         * testsuite/test_gst_init.c:
9500           move a value_serialize test over
9501
9502 2005-06-20  Wim Taymans  <wim@fluendo.com>
9503
9504         * gst/gstpad.c:
9505         Small doc updates.
9506         
9507         * gst/gstvalue.c: (gst_value_compare_buffer),
9508         (gst_value_serialize_buffer), (gst_value_deserialize_buffer),
9509         (gst_value_compare_flags), (gst_value_serialize_flags),
9510         (gst_value_deserialize_flags), (_gst_value_initialize):
9511         Fix serialisation of buffers, they are not boxed types anymore
9512
9513 2005-06-20  Wim Taymans  <wim@fluendo.com>
9514
9515         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
9516         Testcase to show error in buffer-on-caps serialisation.
9517
9518 2005-06-20  Andy Wingo  <wingo@pobox.com>
9519
9520         * docs/random/wingo/porting-plugins-to-0.9: A pitiful document I
9521         will be adding to later.
9522
9523         * gst/gstsystemclock.c (gst_system_clock_init): Unlock the clock
9524         if its socks fill with rocks.
9525         (gst_system_clock_obtain): Set the name on object construction.
9526         Avoid double-checked locking.
9527
9528 2005-06-20  Tim-Philipp Müller  <tim at centricular dot net>
9529
9530         * gst/gsturi.c: (gst_element_make_from_uri):
9531           Fix potential endless loop.
9532
9533 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
9534
9535         * check/Makefile.am:
9536           add gsttag
9537         * check/gst/gsttag.c: (check_tags), (START_TEST), (gst_tag_suite),
9538         (main):
9539           move over from testsuite dir and clean up
9540         * configure.ac:
9541         * gst/gsttag.c:
9542         * testsuite/Makefile.am:
9543         * testsuite/tags/.cvsignore:
9544         * testsuite/tags/Makefile.am:
9545         * testsuite/tags/merge.c:
9546           remove testsuite/tags
9547
9548 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
9549
9550         * docs/gst/gstreamer-sections.txt:
9551         * docs/gst/tmpl/gstenumtypes.sgml:
9552         * win32/gstenumtypes.c:
9553           clean up documentation build a little
9554
9555 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
9556
9557         * check/gstcheck.h:
9558           add macros for checking refcounts on objects and caps
9559         * check/gst/gstpad.c: (START_TEST), (gst_pad_suite):
9560           add some more unit tests
9561         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
9562         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_allowed_caps):
9563           fix leaked refcounts (I hope :)) so unittest works
9564         * gst/gstpad.h:
9565           whitespace removal
9566
9567 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
9568
9569         * configure.ac: back to HEAD
9570
9571 === release 0.9.1 ===
9572
9573 2005-06-17  Thomas Vander Stichele  <thomas at apestaart dot org>
9574
9575         * NEWS:
9576         * RELEASE:
9577           updated
9578
9579 2005-06-17  Andy Wingo  <wingo@pobox.com>
9580
9581         * gst/base/gstbasesink.c (gst_basesink_chain): Remove bogus
9582         assert; it's always possible that the pad gets deactivated in
9583         between the checks in gstpad.c and the implementation. Rely on
9584         finish_preroll() to return a FLUSHING or similar instead of on the
9585         assert.
9586         
9587         * gst/base/gstbasesink.c (gst_basesink_event): Only wait for the
9588         clock and post an EOS message if we come out of finish_preroll in
9589         the playing state.
9590
9591 2005-06-16  David Schleef  <ds@schleef.org>
9592
9593         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
9594         (gst_capsfilter_set_property): Allow NULL as possible value
9595         for filter_caps property, indicating GST_CAPS_ANY.
9596
9597 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
9598
9599         * gst/elements/gstfakesrc.c: (gst_fakesrc_create):
9600           fix debug output
9601         * gst/schedulers/Makefile.am:
9602           use libgst prefix
9603         * gstreamer.spec.in:
9604           fix spec for it
9605
9606 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
9607
9608         * gstreamer.spec.in:
9609           clean up
9610
9611 2005-06-08  Andy Wingo  <wingo@pobox.com>
9612
9613         * gst/gstutils.c: RPAD fixes all around.
9614         (gst_element_link_pads): Refcounting fixes.
9615
9616         * tools/gst-inspect.c:
9617         * tools/gst-xmlinspect.c:
9618         * parse/grammar.y:
9619         * gst/base/gsttypefindhelper.c:
9620         * gst/base/gstbasesink.c:
9621         * gst/gstqueue.c: RPAD fixes.
9622
9623         * gst/gstghostpad.h:
9624         * gst/gstghostpad.c: New ghost pad implementation as full proxy
9625         pads. The tricky thing is they provide both source and sink
9626         interfaces, since they proxy the internal pad for the external
9627         pad, and vice versa. Implement with lower-level ProxyPad objects,
9628         with the interior proxy pad as a child of the exterior ghost pad.
9629         Should write a doc on this.
9630         
9631         * gst/gstpad.h: s/RPAD/PAD/, s/RealPad/Pad/.
9632         (gst_pad_set_name, gst_pad_set_parent): Macros removed, use
9633         gst_object API.
9634         
9635         * gst/gstpad.c: Big changes. No more stub base GstPad, now all
9636         pads are real pads. No ghost pads in this file. Not documenting
9637         the myriad s/RPAD/PAD/ and REALIZE fixes.
9638         (gst_pad_class_init): Add properties for "direction" and
9639         "template". Both are construct-only, so they can't change during
9640         the life of the pad. Fixes properly deriving from GstPad.
9641         (gst_pad_custom_new, gst_pad_custom_new_from_template): Gone. For
9642         derived objects, just set properties when creating the objects via
9643         g_object_new.
9644         (gst_pad_get_parent): Implement as a function, return NULL if the
9645         parent is not an element.
9646         (gst_pad_get_real_parent, gst_pad_add_ghost_pad)
9647         (gst_pad_remove_ghost_pad, gst_pad_realize): Removed.
9648         
9649         * gst/gstobject.c (gst_object_class_init): Make name a construct
9650         property. Don't set it in the object init.
9651
9652         * gst/gstelement.c (gst_element_add_pad): Don't allow adding pads
9653         with UNKNOWN direction.
9654         (gst_element_add_ghost_pad): Remove non-orthogonal API. Replace
9655         with gst_element_add_pad (e, gst_ghost_pad_new (name, pad)).
9656         (gst_element_remove_pad): Remove ghost-pad special cases.
9657         (gst_element_pads_activate): Remove rpad cruft.
9658
9659         * gst/gstbin.c (gst_bin_change_state): Use gst_pad_get_parent to
9660         catch the pad's-parent-not-an-element case.
9661
9662         * gst/gst.h: Include gstghostpad.h.
9663
9664         * gst/gst.c (init_post): No more real, ghost pads.
9665
9666         * gst/Makefile.am: Add gstghostpad.[ch].
9667
9668         * check/Makefile.am:
9669         * check/gst/gstbin.c:
9670         * check/gst/gstghostpad.c (test_ghost_pads): Check that linking
9671         into a bin creates ghost pads, and that the refcounts are right.
9672         Partly moved from gstbin.c.
9673
9674 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
9675
9676         * check/gst-libs/.cvsignore:
9677         * check/gst/.cvsignore:
9678         * check/pipelines/.cvsignore:
9679           ignore more
9680         * check/pipelines/cleanup.c: (setup_pipeline), (run_pipeline),
9681         (START_TEST), (cleanup_suite), (main):
9682           add some tests related to cleanup after running pipelines
9683
9684 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
9685
9686         * check/gst/gstbuffer.c: (START_TEST), (gst_test_suite), (main):
9687           add a testsuite for GstBuffer
9688
9689 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
9690
9691         * gst/gstminiobject.h:
9692           add defines for accessing the refcount
9693
9694 2005-06-03  Stefan Kost  <ensonic@users.sf.net>
9695
9696         * Makefile.am: added support for html unit test coverage reports
9697
9698 2005-06-03  Jan Schmidt  <thaytan@mad.scientist.com>
9699
9700         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
9701           Free existing caps if the capsfilter changes. Add a FIXME about
9702           setting those caps on the pads.
9703
9704         * gst/gstutils.c: (gst_element_get_compatible_pad), (ghost_up):
9705           Before adding a ghost pad to a parent bin, check that there isn't
9706           already one for the element on the bin. Prevents infinite recursion
9707           when using decodebin in parse pipelines. Andy says he'll rewrite the
9708           way this works anyway, so ignore the hack.
9709
9710 2005-06-02  Andy Wingo  <wingo@pobox.com>
9711
9712         * gst/elements/gsttypefindelement.c (do_pull_typefind): Query the
9713         file size, pass it on to the type find helper.
9714
9715         * gst/base/gstbasesrc.c (gst_basesrc_do_seek): Set the
9716         segment_start and segment_end properly according to the seek
9717         method. Segment_end is still a bit flaky because offset can be
9718         negative for CUR and END cases, but it takes -1 as an "unset"
9719         value.
9720
9721 2005-06-02  Wim Taymans  <wim@fluendo.com>
9722
9723         * gst/base/gstbasesink.c: (gst_basesink_pad_buffer_alloc),
9724         (gst_base_sink_buffer_alloc), (gst_basesink_preroll_queue_push),
9725         (gst_basesink_activate):
9726         * gst/base/gstbasesink.h:
9727         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
9728         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
9729         (gst_pad_query), (gst_pad_start_task):
9730         * gst/gstpad.h:
9731         * gst/gstqueue.c: (gst_queue_bufferalloc),
9732         (gst_queue_handle_sink_event), (gst_queue_chain):
9733         Bufferalloc: return GstFlowReturn to more accuratly report
9734         why allocation failed.
9735
9736 2005-06-02  Wim Taymans  <wim@fluendo.com>
9737
9738         * gst/gstpipeline.c: (gst_pipeline_send_event):
9739         Take snapshot of state without blocking.
9740
9741 2005-06-02  Wim Taymans  <wim@fluendo.com>
9742
9743         * docs/design/part-TODO.txt:
9744         * docs/design/part-caps.txt:
9745         * docs/design/part-clocks.txt:
9746         * docs/design/part-negotiation.txt:
9747         * docs/design/part-preroll.txt:
9748         Small doc updates 
9749
9750 2005-05-30  Wim Taymans  <wim@fluendo.com>
9751
9752         * gst/elements/gstidentity.c: (gst_identity_event),
9753         (gst_identity_transform), (gst_identity_get_property):
9754         Protect last_message property as it is accessed from
9755         multiple threads.
9756
9757 2005-05-30  Wim Taymans  <wim@fluendo.com>
9758
9759         * gst/gstelement.c: (gst_element_init),
9760         (gst_element_pads_activate), (gst_element_change_state):
9761         Slicker pad activation code.
9762
9763 2005-05-30  Wim Taymans  <wim@fluendo.com>
9764
9765         * gst/Makefile.am:
9766         * gst/gstelement.h:
9767         * gst/gstelementfactory.h:
9768         * gst/gsttypes.h:
9769         Move elementfactory methods to separate .h file.
9770
9771 2005-05-30  Wim Taymans  <wim@fluendo.com>
9772
9773         * docs/design/part-overview.txt:
9774         * gst/gstsystemclock.h:
9775         Small typo fixes, doc updates.
9776
9777 2005-05-30  Wim Taymans  <wim@fluendo.com>
9778
9779         * gst/gst.c: (gst_init_get_popt_table), (init_post),
9780         (init_popt_callback):
9781         Remove cpu-opt flag.
9782
9783 2005-05-30  Wim Taymans  <wim@fluendo.com>
9784
9785         * gst/gstbuffer.c: (gst_subbuffer_finalize),
9786         (gst_buffer_create_sub), (gst_buffer_is_span_fast):
9787         * gst/gstbuffer.h:
9788         Avoid typechecking in places where not needed.
9789         Added accessor for malloc_data.
9790
9791 2005-05-30  Wim Taymans  <wim@fluendo.com>
9792
9793         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_set_active),
9794         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_accept_caps),
9795         (gst_pad_configure_sink), (gst_pad_configure_src),
9796         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_send_event),
9797         (gst_pad_start_task):
9798         Propagate errors from _set_caps() in configure_src/sink
9799         functions instead of returning TRUE.
9800         FLUSH events can travel up and downstream
9801
9802
9803 2005-05-30  Wim Taymans  <wim@fluendo.com>
9804
9805         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
9806         (gst_basesink_activate):
9807         Handle EOS in preroll.
9808
9809 2005-05-30  Wim Taymans  <wim@fluendo.com>
9810
9811         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
9812         (gst_queue_loop), (gst_queue_handle_src_event):
9813         Remove old pieces of code
9814         Flushing the queue in an upstream event is a very bad idea.
9815
9816 2005-05-26  Andy Wingo  <wingo@pobox.com>
9817
9818         * gst/gstminiobject.c (gst_value_mini_object_collect): Use
9819         gst_value_set_mini_object so as to add a ref on the object (which
9820         will be removed when the value is unset).
9821
9822         * gst/elements/gstfakesink.c (gst_fakesink_class_init): Fix signal
9823         arg type in ::handoff.
9824
9825         * gst/gstelement.c (gst_element_change_state): Also deactivate
9826         pads in READY->NULL, just in case the element didn't make it to
9827         PAUSED. Wingo tested, Wim approved.
9828
9829 2005-05-26  Wim Taymans  <wim@fluendo.com>
9830
9831         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
9832         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
9833         (gst_pad_query), (gst_pad_send_event), (gst_pad_start_task):
9834         A flushing pad cannot be used to alloc_buffer from.
9835
9836 2005-05-26  Wim Taymans  <wim@fluendo.com>
9837
9838         * gst/gstbus.c: (gst_bus_init), (gst_bus_dispose), (gst_bus_post),
9839         (gst_bus_pop), (gst_bus_source_prepare), (gst_bus_source_check),
9840         (gst_bus_source_dispatch), (gst_bus_source_finalize),
9841         (gst_bus_create_watch), (gst_bus_add_watch_full):
9842         * gst/gstbus.h:
9843         Implement a real GSource and use g_main_context_wakeup() to
9844         signal new messages instead of the socketpair.
9845
9846 2005-05-25  Wim Taymans  <wim@fluendo.com>
9847
9848         * gst/gstbin.c: (bin_element_is_sink), (has_ancestor),
9849         (bin_element_is_semi_sink), (append_child), (gst_bin_change_state):
9850         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
9851         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
9852         (gst_pad_send_event), (gst_pad_start_task):
9853         * gst/gstqueue.c: (gst_queue_init), (gst_queue_locked_flush),
9854         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
9855         (gst_queue_sink_activate), (gst_queue_src_activate),
9856         (gst_queue_change_state):
9857         * gst/gstqueue.h:
9858         Fix state changes for non sinks. We now change sinks, then elements
9859         with unconnected srcpads, then the rest.
9860         More efficient queue unlocking in flush and state changes.
9861         Set the pad activate mode even if it does not have an activate
9862         function.
9863
9864 2005-05-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9865
9866         * gst/base/gstbasesrc.c: (gst_basesrc_activate):
9867           Don't go in pull mode for non-seekable sources.
9868         * gst/elements/gsttypefindelement.h:
9869         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
9870         (gst_type_find_element_dispose), (gst_type_find_handle_src_query),
9871         (free_entry), (stop_typefinding),
9872         (gst_type_find_element_handle_event), (find_peek),
9873         (gst_type_find_element_chain), (do_pull_typefind),
9874         (gst_type_find_element_change_state):
9875           Allow typefinding (w/o seeking) in push-mode, simplified version
9876           of what was in 0.8.
9877         * gst/gstutils.c: (gst_buffer_join):
9878         * gst/gstutils.h:
9879           gst_buffer_join() from 0.8.
9880
9881 2005-05-25  Wim Taymans  <wim@fluendo.com>
9882
9883         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
9884         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
9885         (gst_pad_send_event), (gst_pad_start_task):
9886         Disable attempt at mode switching until it is figured out.
9887
9888 2005-05-25  Wim Taymans  <wim@fluendo.com>
9889
9890         * gst/base/gstadapter.c: (gst_adapter_peek), (gst_adapter_flush):
9891         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
9892         (gst_basesink_finish_preroll), (gst_basesink_chain),
9893         (gst_basesink_loop), (gst_basesink_activate),
9894         (gst_basesink_change_state):
9895         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek),
9896         (gst_basesrc_get_range), (gst_basesrc_loop),
9897         (gst_basesrc_activate):
9898         * gst/elements/gsttee.c: (gst_tee_sink_activate):
9899         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
9900         (gst_real_pad_init), (gst_real_pad_set_property),
9901         (gst_real_pad_get_property), (gst_pad_set_active),
9902         (gst_pad_is_active), (gst_pad_get_query_types), (gst_pad_unlink),
9903         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_real_parent),
9904         (gst_real_pad_get_caps_unlocked), (gst_pad_peer_get_caps),
9905         (gst_pad_accept_caps), (gst_pad_get_peer), (gst_pad_realize),
9906         (gst_pad_event_default_dispatch), (gst_pad_event_default),
9907         (gst_pad_dispatcher), (gst_pad_query), (gst_real_pad_dispose),
9908         (gst_pad_save_thyself), (handle_pad_block), (gst_pad_chain),
9909         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
9910         (gst_pad_send_event), (gst_pad_start_task), (gst_pad_pause_task),
9911         (gst_pad_stop_task):
9912         * gst/gstpad.h:
9913         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
9914         (gst_queue_loop), (gst_queue_src_activate):
9915         * gst/gsttask.c: (gst_task_init), (gst_task_set_lock),
9916         (gst_task_get_state):
9917         * gst/gsttask.h:
9918         * gst/schedulers/threadscheduler.c:
9919         (gst_thread_scheduler_task_start), (gst_thread_scheduler_func):
9920         Implement gst_pad_pause/start/stop_task(), take STREAM lock
9921         in task function.
9922         Remove ACTIVE pad flag, use FLUSHING everywhere
9923         Added _pad_chain(), _pad_get_range() to call chain/getrange 
9924         functions.
9925         Add locks around IS_FLUSHING when reading.
9926         Take STREAM lock in chain(), get_range() functions so plugins
9927         don't need to take it anymore.
9928         
9929
9930
9931 2005-05-25  Wim Taymans  <wim@fluendo.com>
9932
9933         * tools/gst-launch.c: (event_loop):
9934         Unref message after using its contents instead of
9935         before.
9936
9937 2005-05-24  Wim Taymans  <wim@fluendo.com>
9938
9939         * docs/design/draft-ghostpads.txt:
9940         * docs/design/draft-push-pull.txt:
9941         * docs/design/draft-query.txt:
9942         * docs/design/part-overview.txt:
9943         Docs updates, added general overview doc.
9944
9945 2005-05-21  David Schleef  <ds@schleef.org>
9946
9947         * docs/gst/tmpl/old/GstBin.sgml:
9948         * docs/gst/tmpl/old/GstBuffer.sgml:
9949         * docs/gst/tmpl/old/GstCaps.sgml:
9950         * docs/gst/tmpl/old/GstClock.sgml:
9951         * docs/gst/tmpl/old/GstCompat.sgml:
9952         * docs/gst/tmpl/old/GstData.sgml:
9953         * docs/gst/tmpl/old/GstElement.sgml:
9954         * docs/gst/tmpl/old/GstEvent.sgml:
9955         * docs/gst/tmpl/old/GstIndex.sgml:
9956         * docs/gst/tmpl/old/GstStructure.sgml:
9957         * docs/gst/tmpl/old/GstTag.sgml:
9958         * docs/gst/tmpl/old/cothreads.sgml:
9959         * docs/gst/tmpl/old/cothreads_compat.sgml:
9960         * docs/gst/tmpl/old/gettext.sgml:
9961         * docs/gst/tmpl/old/gobject2gtk.sgml:
9962         * docs/gst/tmpl/old/grammar.tab.sgml:
9963         * docs/gst/tmpl/old/gst-i18n-app.sgml:
9964         * docs/gst/tmpl/old/gst-i18n-lib.sgml:
9965         * docs/gst/tmpl/old/gst_private.sgml:
9966         * docs/gst/tmpl/old/gstaggregator.sgml:
9967         * docs/gst/tmpl/old/gstarch.sgml:
9968         * docs/gst/tmpl/old/gstatomic_impl.sgml:
9969         * docs/gst/tmpl/old/gstbufferstore.sgml:
9970         * docs/gst/tmpl/old/gstdata_private.sgml:
9971         * docs/gst/tmpl/old/gstdisksink.sgml:
9972         * docs/gst/tmpl/old/gstdisksrc.sgml:
9973         * docs/gst/tmpl/old/gstelementfactory.sgml:
9974         * docs/gst/tmpl/old/gstextratypes.sgml:
9975         * docs/gst/tmpl/old/gstfakesink.sgml:
9976         * docs/gst/tmpl/old/gstfakesrc.sgml:
9977         * docs/gst/tmpl/old/gstfdsink.sgml:
9978         * docs/gst/tmpl/old/gstfdsrc.sgml:
9979         * docs/gst/tmpl/old/gstfilesink.sgml:
9980         * docs/gst/tmpl/old/gstfilesrc.sgml:
9981         * docs/gst/tmpl/old/gsthttpsrc.sgml:
9982         * docs/gst/tmpl/old/gstidentity.sgml:
9983         * docs/gst/tmpl/old/gstindexfactory.sgml:
9984         * docs/gst/tmpl/old/gstmarshal.sgml:
9985         * docs/gst/tmpl/old/gstmd5sink.sgml:
9986         * docs/gst/tmpl/old/gstmultidisksrc.sgml:
9987         * docs/gst/tmpl/old/gstmultifilesrc.sgml:
9988         * docs/gst/tmpl/old/gstpadtemplate.sgml:
9989         * docs/gst/tmpl/old/gstpipefilter.sgml:
9990         * docs/gst/tmpl/old/gstschedulerfactory.sgml:
9991         * docs/gst/tmpl/old/gstsearchfuncs.sgml:
9992         * docs/gst/tmpl/old/gstshaper.sgml:
9993         * docs/gst/tmpl/old/gstspider.sgml:
9994         * docs/gst/tmpl/old/gstspideridentity.sgml:
9995         * docs/gst/tmpl/old/gststatistics.sgml:
9996         * docs/gst/tmpl/old/gsttee.sgml:
9997         * docs/gst/tmpl/old/gsttimecache.sgml:
9998         * docs/gst/tmpl/old/gsttypefindfactory.sgml:
9999         * docs/gst/tmpl/old/gstxmlregistry.sgml:
10000         * docs/gst/tmpl/old/gthread-cothreads.sgml:
10001         * docs/gst/tmpl/old/types.sgml:
10002           I didn't intend to add these or check them in.
10003
10004 2005-05-19  David Schleef  <ds@schleef.org>
10005
10006         * configure.ac: Use -no-common everywhere.  In a sane world, it
10007           would be the default in libtool, because without it, you can't
10008           build DLLs on Windows.
10009         * docs/gst/gstreamer-docs.sgml: Remove GstCpu, GstData, GstThread
10010         * docs/gst/gstreamer-sections.txt:
10011         * docs/gst/tmpl/gstcpu.sgml:
10012         * docs/gst/tmpl/gstdata.sgml:
10013         * docs/gst/tmpl/gstthread.sgml:
10014
10015 2005-05-19  David Schleef  <ds@schleef.org>
10016
10017         * gst/gstminiobject.c: (gst_value_set_mini_object),
10018         (gst_value_take_mini_object), (gst_value_get_mini_object):
10019         * gst/gstminiobject.h: Add GValue set/get functions.
10020
10021 2005-05-19  Wim Taymans  <wim@fluendo.com>
10022
10023         * gst/gstbuffer.c: (gst_buffer_init), (gst_subbuffer_get_type),
10024         (gst_subbuffer_class_init), (gst_subbuffer_finalize),
10025         (gst_subbuffer_init), (gst_buffer_is_span_fast):
10026         * gst/gstbuffer.h:
10027         * gst/gstbus.c: (gst_bus_post):
10028         * gst/gstelement.c: (gst_element_get_random_pad):
10029         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize):
10030         Make subbufer unref the parent in finalize.
10031         some more debugging info.
10032
10033
10034 2005-05-19  Wim Taymans  <wim@fluendo.com>
10035
10036         * gst/base/gstbasesink.c: (gst_basesink_class_init),
10037         (gst_basesink_init), (gst_basesink_finalize),
10038         (gst_basesink_activate), (gst_basesink_change_state):
10039         Don't free preroll queue too early.
10040
10041 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10042
10043         * gst/Makefile.am:
10044         * gst/ROADMAP:
10045           Hi, I'm outdated. Please shoot me.
10046
10047 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10048
10049         * gst/gstpipeline.c: (gst_pipeline_send_event):
10050           Do not access variables after they have been deleted.
10051
10052 2005-05-19  Wim Taymans  <wim@fluendo.com>
10053
10054         * tools/gst-inspect.c: (print_plugin_features):
10055         A plugin feature does unfortunatly not use the
10056         object name yet...
10057
10058 2005-05-18  Wim Taymans  <wim@fluendo.com>
10059
10060         * gst/gstbuffer.c: (gst_buffer_is_span_fast), (gst_buffer_span):
10061         Port _span() functions to new subbuffers.
10062
10063 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10064
10065         * gst/gstbin.c: (gst_bin_add_func):
10066           Fix clock settery in bins when adding kids after the clock has
10067           been selected.
10068
10069 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10070
10071         * gst/elements/gstidentity.c: (gst_identity_class_init):
10072           Workaround until signals support GstMiniObject.
10073
10074 2005-05-18  Jan Schmidt  <thaytan@mad.scientist.com>
10075
10076         * gst/gstbuffer.c:
10077         Oops, fix a typo GST_TYPE_BUFFER -> GST_TYPE_SUBBUFFER.
10078
10079 2005-05-18  Wim Taymans  <wim@fluendo.com>
10080
10081         * gst/base/Makefile.am:
10082         * gst/base/gstadapter.c: (gst_adapter_base_init),
10083         (gst_adapter_class_init), (gst_adapter_init),
10084         (gst_adapter_dispose), (gst_adapter_finalize), (gst_adapter_new),
10085         (gst_adapter_clear), (gst_adapter_push), (gst_adapter_peek),
10086         (gst_adapter_flush), (gst_adapter_available),
10087         (gst_adapter_available_fast):
10088         * gst/base/gstadapter.h:
10089         Ported and added adapter to the base classes.
10090
10091 2005-05-17  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
10092
10093         * gst/gst.c:
10094         * gst/gstmessage.c:
10095           Make sure the class is reffed/unreffed once before threads can be
10096           used.  Fixes #304551.
10097
10098 2005-05-17  Wim Taymans  <wim@fluendo.com>
10099
10100         * gst/base/gstbasesink.c: (gst_basesink_finish_preroll),
10101         (gst_basesink_chain_unlocked), (gst_basesink_activate):
10102         * gst/gstminiobject.c: (gst_mini_object_get_type),
10103         (gst_mini_object_free):
10104         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query),
10105         (gst_pad_push), (gst_pad_push_event):
10106         * gst/gstqueue.c: (gst_queue_change_state):
10107         Don't queue buffers in basesink when we are flushing.
10108         Unref buffer when flushing in basesink.
10109         Flush queue when going to READY
10110         Unref buffer when _push() returns an error.
10111         Don't free MiniObject instance when refcount is incremented
10112         in _finalize() so that we can recover objects.
10113
10114 2005-05-17  Thomas Vander Stichele  <thomas at apestaart dot org>
10115
10116         * docs/manual/advanced-schedulers.xml:
10117         * docs/manual/appendix-checklist.xml:
10118         * docs/pwg/advanced-clock.xml:
10119         * docs/pwg/advanced-interfaces.xml:
10120         * docs/pwg/advanced-request.xml:
10121         * docs/pwg/advanced-types.xml:
10122         * docs/pwg/intro-preface.xml:
10123         * examples/plugins/example.c: (gst_example_get_type),
10124         (gst_example_class_init), (gst_example_chain),
10125         (gst_example_set_property), (gst_example_get_property),
10126         (gst_example_change_state), (plugin_init):
10127         * examples/plugins/example.h:
10128           small doc fixes
10129
10130 2005-05-17  Wim Taymans  <wim@fluendo.com>
10131
10132         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps),
10133         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_push):
10134         * gst/gstqueue.c: (gst_queue_change_state):
10135         Clear queue when going to READY.
10136         Remove IN_SETCAPS flag too.
10137
10138 2005-05-17  Tim-Philipp Müller  <tim at centricular dot net>
10139
10140         * gst/base/gstbasesrc.c: (gst_basesrc_change_state):
10141           Remove implicit cast from gboolean to GstElementStateReturn;
10142           make sure we still return failure in paused => ready case if
10143           the parent class fails to change state and our own stop 
10144           vfunc succeeds.
10145
10146 2005-05-17  Wim Taymans  <wim@fluendo.com>
10147
10148         * tools/gst-launch.c: (event_loop):
10149         Message was unreffed too soon.
10150
10151 2005-05-16  Andy Wingo  <wingo@pobox.com>
10152
10153         * gst/gstbin.c (sink_iterator_filter): Err... um...
10154
10155         * check/gst/gstbin.c (test_ghost_pads): New test for the
10156         ghosting-if-elements-not-in-same-bin behavior.
10157
10158 2005-05-16  David Schleef  <ds@schleef.org>
10159
10160         * gst/gstminiobject.c: Use g_atomic_int_get() instead of
10161         accessing refcount directly.
10162
10163 2005-05-15  David Schleef  <ds@schleef.org>
10164
10165         * check/Makefile.am: remove GstData checks
10166         * check/gst-libs/gdp.c: (START_TEST): fix for API changes
10167         * gst/Makefile.am: add miniobject, remove data
10168         * gst/gst.h: add miniobject, remove data
10169         * gst/gstdata.c: remove
10170         * gst/gstdata.h: remove
10171         * gst/gstdata_private.h: remove
10172         * gst/gsttypes.h: remove GstEvent and GstMessage
10173         * gst/gstelement.c: (gst_element_post_message): fix for API changes
10174         * gst/gstmarshal.list: change BOXED -> OBJECT
10175
10176         Implement GstMiniObject.
10177         * gst/gstminiobject.c:
10178         * gst/gstminiobject.h:
10179
10180         Modify to be subclasses of GstMiniObject.
10181         * gst/gstbuffer.c: (_gst_buffer_initialize), (gst_buffer_get_type),
10182         (gst_buffer_class_init), (gst_buffer_finalize), (_gst_buffer_copy),
10183         (gst_buffer_init), (gst_buffer_new), (gst_buffer_new_and_alloc),
10184         (gst_subbuffer_get_type), (gst_subbuffer_init),
10185         (gst_buffer_create_sub), (gst_buffer_is_span_fast),
10186         (gst_buffer_span):
10187         * gst/gstbuffer.h:
10188         * gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type),
10189         (gst_event_class_init), (gst_event_init), (gst_event_finalize),
10190         (_gst_event_copy), (gst_event_new):
10191         * gst/gstevent.h:
10192         * gst/gstmessage.c: (_gst_message_initialize),
10193         (gst_message_get_type), (gst_message_class_init),
10194         (gst_message_init), (gst_message_finalize), (_gst_message_copy),
10195         (gst_message_new), (gst_message_new_error),
10196         (gst_message_new_warning), (gst_message_new_tag),
10197         (gst_message_new_state_changed), (gst_message_new_application):
10198         * gst/gstmessage.h:
10199         * gst/gstprobe.c: (gst_probe_perform),
10200         (gst_probe_dispatcher_dispatch):
10201         * gst/gstprobe.h:
10202         * gst/gstquery.c: (_gst_query_initialize), (gst_query_get_type),
10203         (gst_query_class_init), (gst_query_finalize), (gst_query_init),
10204         (_gst_query_copy), (gst_query_new):
10205
10206         Update elements for GstData -> GstMiniObject changes
10207         * gst/gstquery.h:
10208         * gst/gstqueue.c: (gst_queue_finalize), (gst_queue_locked_flush),
10209         (gst_queue_chain), (gst_queue_loop):
10210         * gst/elements/gstbufferstore.c:
10211         (gst_buffer_store_add_buffer_func),
10212         (gst_buffer_store_cleared_func), (gst_buffer_store_get_buffer):
10213         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
10214         (gst_fakesink_render):
10215         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
10216         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_get_type),
10217         (gst_mmap_buffer_class_init), (gst_mmap_buffer_init),
10218         (gst_mmap_buffer_finalize), (gst_filesrc_map_region),
10219         (gst_filesrc_create_read):
10220         * gst/elements/gstidentity.c: (gst_identity_class_init):
10221         * gst/elements/gsttypefindelement.c:
10222         (gst_type_find_element_src_event), (free_entry_buffers),
10223         (gst_type_find_element_handle_event):
10224         * libs/gst/dataprotocol/dataprotocol.c:
10225         (gst_dp_header_from_buffer):
10226         * libs/gst/dataprotocol/dataprotocol.h:
10227         * libs/gst/dataprotocol/dp-private.h:
10228
10229 2005-05-15  David Schleef  <ds@schleef.org>
10230
10231         * gst/elements/gstelements.c: Don't include headers that were
10232         just removed.
10233
10234 2005-05-15  David Schleef  <ds@schleef.org>
10235
10236         * gst/elements/Makefile.am: Remove some elements that don't
10237         need to be in the core (or even exist at all).
10238         * gst/elements/gstaggregator.c:
10239         * gst/elements/gstaggregator.h:
10240         * gst/elements/gstmd5sink.c:
10241         * gst/elements/gstmd5sink.h:
10242         * gst/elements/gstmultifilesrc.c:
10243         * gst/elements/gstmultifilesrc.h:
10244         * gst/elements/gstpipefilter.c:
10245         * gst/elements/gstpipefilter.h:
10246         * gst/elements/gstshaper.c:
10247         * gst/elements/gstshaper.h:
10248         * gst/elements/gststatistics.c:
10249         * gst/elements/gststatistics.h:
10250         * po/POTFILES.in: Remove above files.
10251
10252 2005-05-14  Andy Wingo  <wingo@pobox.com>
10253
10254         * gst/gstbin.c (gst_bin_iterate_sinks): Use sink_iterator_filter
10255         so as to get the refs right.
10256         (sink_iterator_filter): New function, wraps bin_element_is_sink,
10257         unreffing objects that don't pass the filter.
10258
10259         * gst/gstpipeline.c (gst_pipeline_init): Drop ref on bus after
10260         gst_element_set_bus.
10261         (gst_pipeline_dispose): Set the bus on the pipeline to NULL. In
10262         normal cases, this will destroy the bus.
10263
10264         * gst/gstutils.c (prepare_link_maybe_ghosting): Drop ref on root
10265         object.
10266
10267         * gst/gstbin.c (gst_bin_change_state): Fix state changes if a bin
10268         has no sinks.
10269
10270 2005-05-13  Andy Wingo  <wingo@pobox.com>
10271
10272         * gst/gstutils.c (gst_element_link_pads): Instead of calling
10273         gst_pad_link, call pad_link_maybe_ghosting,
10274         (pad_link_maybe_ghosting): Links pads, making sure that the
10275         elements being linked are in the same bin.
10276         (find_common_root, object_has_ancestor, ghost_up, remove_pad):
10277         Helpers for pad_link_maybe_ghosting.
10278
10279 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
10280
10281         * configure.ac:
10282           Require GLib >= 2.4.0 (for the g_atomic_* funcs)
10283
10284 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
10285
10286         * docs/design/part-element-source.txt:
10287           Mention GstPushSrc
10288
10289 2005-05-12  Wim Taymans  <wim@fluendo.com>
10290
10291         * gst/base/gstbasesink.c: (gst_basesink_init),
10292         (gst_basesink_activate):
10293         * gst/base/gstbasesrc.c: (gst_basesrc_unlock),
10294         (gst_basesrc_is_seekable):
10295         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
10296         (bin_element_is_sink), (gst_bin_change_state):
10297         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
10298         * gst/gstelement.h:
10299         Identify sinks by their flag to avoid overly complicated
10300         checks (fow now).
10301         Do state changes even for elements not reachable from the
10302         sinks.
10303         BaseSink is a sink now :)
10304         Some more debugging info in the basesrc.
10305
10306
10307 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10308
10309         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_query):
10310           Implement _query on a bin, similar to _send_event.
10311
10312 2005-05-12  Tim-Philipp Müller  <tim at centricular dot net>
10313
10314         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek):
10315           Discont event offset format should be GST_FORMAT_BYTES,
10316           not GST_FORMAT_TIME.
10317
10318 2005-05-12  Wim Taymans  <wim@fluendo.com>
10319
10320         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_get_state):
10321         Same fix as Ronald's but without the signal. 
10322
10323 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10324
10325         * gst/gstutils.c: (gst_element_query_position):
10326           No, an element is not a pad.
10327
10328 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10329
10330         * gst/gstbin.c: (gst_bin_add_func), (cb_parent_unset),
10331         (gst_bin_get_state):
10332           If a child is removed from a bin while we remove the child from
10333           the bin and while we're retrieving its state, signal this to the
10334           get_state function so we abort the wait (instead of waiting for
10335           a timeout) and can immediately re-iterate over all other elements.
10336
10337 2005-05-12  Wim Taymans  <wim@fluendo.com>
10338
10339         * gst/base/Makefile.am:
10340         * gst/base/gstbasesrc.c: (gst_basesrc_is_seekable),
10341         (gst_basesrc_start):
10342         * gst/base/gstbasesrc.h:
10343         * gst/base/gstpushsrc.c: (gst_pushsrc_get_type),
10344         (gst_pushsrc_base_init), (gst_pushsrc_class_init),
10345         (gst_pushsrc_init), (gst_pushsrc_create):
10346         * gst/base/gstpushsrc.h:
10347         Added is_seekable to BaseSrc
10348         Added simple PushSrc.
10349
10350 2005-05-11  Wim Taymans  <wim@fluendo.com>
10351
10352         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
10353         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
10354         (gst_element_link_pads), (gst_element_query_position),
10355         (gst_element_query_convert), (intersect_caps_func),
10356         (gst_pad_query_position), (gst_pad_query_convert):
10357         Fix refcounting in utils function.
10358         No point in trying to activate a pad when it's added, it could
10359         be added from the state change function and then we deadlock, the
10360         element has to decide what to do.
10361
10362 2005-05-10  Andy Wingo  <wingo@pobox.com>
10363
10364         * gst/elements/gstfakesink.c (gst_fakesink_render): Er, emit with
10365         *all* the arguments.
10366
10367         * gst/base/gstbasetransform.c (gst_base_transform_event): Grab the
10368         stream lock if it's a FLUSH_DONE; normal flushes don't get the
10369         lock (according to the docs -- if this is wrong change the docs).
10370
10371         * gst/gstpipeline.c (gst_pipeline_change_state): Set the bus to
10372         flush messages in the NULL state.
10373
10374         * gst/gstbus.c (gst_bus_post): If a bus is flushing, unref the
10375         message immediately and return.
10376         (gst_bus_set_flushing): New function. If a bus is flushing, it
10377         flushes out any queued messages and immediately unrefs new
10378         messages. This is so when an element goes to NULL, all of the
10379         unhandled messages coming from it can be freed, and their
10380         references to the element dropped. In other words: message source
10381         ref considered harmful :P
10382
10383         * gst/gstbin.c (gst_bin_change_state): Unref peer element when
10384         we're finished with it.
10385
10386         * gst/gstmessage.c (gst_message_new_state_changed): 
10387
10388 2005-05-10  Wim Taymans  <wim@fluendo.com>
10389
10390         * gst/gstvalue.c: (gst_value_compare_flags),
10391         (gst_value_serialize_flags), (gst_value_deserialize_flags),
10392         (_gst_value_initialize):
10393         Added flags serialize/deserialize/compare code.
10394
10395 2005-05-09  Andy Wingo  <wingo@pobox.com>
10396
10397         * gst/base/gstbasetransform.c (gst_base_transform_proxy_getcaps):
10398         Intersect the peer's caps with our caps.
10399
10400 2005-05-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10401
10402         * gst/base/gsttypefindhelper.c: (helper_find_peek):
10403         * gst/elements/gsttypefindelement.c: (find_peek):
10404           Handle negative offsets better. Fixes decodebin.
10405
10406 2005-05-09  Wim Taymans  <wim@fluendo.com>
10407
10408         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps),
10409         (gst_base_transform_event):
10410         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query):
10411         Implement accept_caps.
10412         Fix silly lock/unlock mismatch in base class.
10413
10414 2005-05-09  Wim Taymans  <wim@fluendo.com>
10415
10416         * docs/design/draft-push-pull.txt:
10417         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_query):
10418         * gst/elements/gstfilesink.c: (gst_filesink_init),
10419         (gst_filesink_query):
10420         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
10421         (gst_type_find_handle_src_query), (find_element_get_length):
10422         * gst/gstelement.c: (gst_element_seek), (gst_element_query):
10423         * gst/gstelement.h:
10424         * gst/gstmessage.c:
10425         * gst/gstmessage.h:
10426         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_get_query_types),
10427         (gst_real_pad_get_caps_unlocked),
10428         (gst_pad_get_internal_links_default), (gst_pad_get_internal_links),
10429         (gst_pad_event_default_dispatch), (gst_pad_event_default),
10430         (gst_pad_dispatcher), (gst_pad_query), (gst_pad_query_default),
10431         (gst_real_pad_dispose), (gst_real_pad_finalize),
10432         (gst_pad_load_and_link), (gst_pad_save_thyself),
10433         (gst_ghost_pad_save_thyself), (handle_pad_block), (gst_pad_push),
10434         (gst_pad_check_pull_range), (gst_pad_pull_range),
10435         (gst_pad_template_get_type), (gst_pad_template_class_init),
10436         (gst_pad_template_init), (gst_pad_template_dispose),
10437         (name_is_valid), (gst_static_pad_template_get),
10438         (gst_pad_template_new), (gst_static_pad_template_get_caps),
10439         (gst_pad_template_get_caps), (gst_pad_set_element_private),
10440         (gst_pad_get_element_private), (gst_pad_start_task),
10441         (gst_pad_pause_task), (gst_pad_stop_task),
10442         (gst_ghost_pad_get_type), (gst_ghost_pad_class_init),
10443         (gst_ghost_pad_init), (gst_ghost_pad_dispose),
10444         (gst_ghost_pad_set_property), (gst_ghost_pad_get_property),
10445         (gst_ghost_pad_new):
10446         * gst/gstpad.h:
10447         * gst/gstquery.c: (_gst_query_initialize), (gst_query_new),
10448         (gst_query_new_position), (gst_query_set_position),
10449         (gst_query_parse_position), (gst_query_new_convert),
10450         (gst_query_set_convert), (gst_query_parse_convert):
10451         * gst/gstquery.h:
10452         * gst/gstqueryutils.c:
10453         * gst/gstqueryutils.h:
10454         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
10455         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
10456         (gst_queue_handle_src_query):
10457         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
10458         (gst_element_query_position), (gst_element_query_convert),
10459         (intersect_caps_func), (gst_pad_query_position),
10460         (gst_pad_query_convert):
10461         * gst/gstutils.h:
10462         * tools/gst-inspect.c: (print_pad_info):
10463         * tools/gst-xmlinspect.c: (print_element_info):
10464         Remove old query functions. Ported old code.
10465         Added position/convert helper functions to gstutils.
10466         Reordered gstpad.c code, grouping relevant things.
10467         Remove gst_message_new(), always need to speficy a specific
10468         message.
10469
10470
10471 2005-05-09  Andy Wingo  <wingo@pobox.com>
10472
10473         * gst/gstiterator.h: Add some includes.
10474
10475         * gst/gstqueryutils.h: Include more headers.
10476
10477         * gst/gstpad.h:
10478         * gst/gstpad.c (gst_pad_query_position): New routine, replaces
10479         some uses of gst_pad_query.
10480
10481         * gst/gstqueryutils.c: Build fixes. Make parse functions ignore
10482         NULL out parameters.
10483         (gst_query_new_position): New proc, allocates a new position
10484         query.
10485
10486         * gst/Makefile.am (libgstreamer_@GST_MAJORMINOR@_la_SOURCES): Add
10487         gstqueryutils.c to the build.
10488
10489         * gst/gststructure.c (gst_structure_set_valist): Implement with
10490         the generic G_VALUE_COLLECT.
10491         
10492 2005-05-08  Edward Hervey  <bilboed@bilboed.com>
10493
10494         * gst/Makefile.am: (gst_headers):
10495         Added gstqueryutils.h to the list of headers to install, that was
10496         a 'nachty' move wingo :)
10497
10498 2005-05-06  Andy Wingo  <wingo@pobox.com>
10499
10500         * gst/gstquery.h
10501         * gst/gstquery.c (_gst_query_initialize): Extend GstQuery from
10502         GstData, init a memchunk.
10503         (standard_definitions): Add a few query types, deprecate a few.
10504         (gst_query_get_type): New proc.
10505         (_gst_query_copy, _gst_query_free, gst_query_new): GstData
10506         implementation.
10507         (gst_query_new_application, gst_query_get_structure): New public
10508         procs.
10509
10510         * docs/design/draft-query.txt: Removed LINKS from the query types,
10511         because all the rest can be dispatched to other pads -- seemed
10512         ugly to have a query that couldn't be dispatched. internal_links
10513         is fine as a pad method.
10514
10515         * gst/gstpad.h: Add query2 as a pad method, add the new functions
10516         in gstpad.c, but maintain binary compatibility for the moment.
10517         Will fix before 0.9 is out.
10518
10519         * gst/gstqueryutils.c: 
10520         * gst/gstqueryutils.h: New files, implement 3 methods for each
10521         query type: parse_query, parse_response, and set. Probably need an
10522         allocator as well.
10523
10524         * gst/gst.h: Add gstquery.h and gstqueryutils.h to the list.
10525
10526         * gst/elements/gstfilesink.c (gst_filesink_query2):
10527         * gst/base/gstbasesrc.c (gst_basesrc_query2): Replace old query,
10528         query_types, and formats methods.
10529
10530         * gst/gstpad.c (gst_pad_query2, gst_pad_query2_default)
10531         (gst_pad_set_query2_function): New functions.
10532         (gst_real_pad_init): Set query2_default as the default query2
10533         function. Basically just dispatches to internally linked pads.
10534
10535         Needs review!
10536         
10537         * gst/gstdata_private.h (_GST_DATA_INIT): Set data->refcount to 1
10538         without using the atomic operations. Only one thread can possibly
10539         be accessing the data at this point. Changed so as to avoid
10540         gst_atomic operations.
10541
10542 2005-05-06  Wim Taymans  <wim@fluendo.com>
10543
10544         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push):
10545         Also set caps if we use the fallback buffer alloc.
10546
10547 2005-05-06  Tim-Philipp Müller  <tim at centricular dot net>
10548
10549         * docs/gst/Makefile.am:
10550         * docs/gst/gstreamer-docs.sgml:
10551         * docs/gst/gstreamer-sections.txt:
10552         * docs/gst/tmpl/gstatomic.sgml:
10553         * docs/gst/tmpl/gstmemchunk.sgml:
10554         * testsuite/elements/struct_i386.h:
10555         * win32/GStreamer.vcproj:
10556         * win32/Makefile:
10557           Purge GstAtomic stuff from docs and win32 makefiles as well
10558
10559 2005-05-06  Wim Taymans  <wim@fluendo.com>
10560
10561         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps):
10562         * gst/elements/gstcapsfilter.c: (gst_capsfilter_getcaps):
10563         * gst/gstpad.c: (gst_pad_peer_get_caps):
10564         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
10565         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
10566         (gst_queue_src_activate), (gst_queue_change_state):
10567         * gst/gstqueue.h:
10568         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
10569         (intersect_caps_func):
10570         Fix gst_pad_peer_get_caps(), make it return NULL if no peer.
10571         Always take QUEUE_LOCK after STREAM_LOCK or we might deadlock.
10572         Some fixes for the peer_get_caps() change.
10573
10574 2005-05-06  Wim Taymans  <wim@fluendo.com>
10575
10576         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
10577         (gst_basesink_handle_buffer), (gst_basesink_chain_unlocked),
10578         (gst_basesink_activate):
10579         Actually do something with error codes returned from the push
10580         functions.
10581
10582 2005-05-06  Wim Taymans  <wim@fluendo.com>
10583
10584         * docs/design/part-element-sink.txt:
10585         * docs/design/part-element-source.txt:
10586         * gst/base/gstbasesink.c: (gst_basesink_class_init),
10587         (gst_basesink_event), (gst_basesink_activate):
10588         * gst/base/gstbasesink.h:
10589         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_unlock),
10590         (gst_basesrc_activate):
10591         * gst/base/gstbasesrc.h:
10592         * gst/gstelement.c: (gst_element_pads_activate):
10593         Some more documentation.
10594         Fixed scheduling decision in _pads_activate().
10595
10596 2005-05-05  Andy Wingo  <wingo@pobox.com>
10597
10598         * check/pipelines/simple_launch_lines.c (test_2_elements): "Fix"
10599         the test suite.
10600
10601 2005-05-05  Wim Taymans  <wim@fluendo.com>
10602
10603         * gst/base/Makefile.am:
10604         * gst/base/gstbasesink.h:
10605         * gst/base/gstbasesrc.c: (gst_basesrc_init),
10606         (gst_basesrc_set_dataflow_funcs), (gst_basesrc_query):
10607         * gst/base/gstcollectpads.c: (gst_collectpads_get_type),
10608         (gst_collectpads_class_init), (gst_collectpads_init),
10609         (gst_collectpads_finalize), (gst_collectpads_new),
10610         (gst_collectpads_set_function), (gst_collectpads_add_pad),
10611         (find_pad), (gst_collectpads_remove_pad),
10612         (gst_collectpads_is_active), (gst_collectpads_collect),
10613         (gst_collectpads_collect_range), (gst_collectpads_start),
10614         (gst_collectpads_stop), (gst_collectpads_peek),
10615         (gst_collectpads_pop), (gst_collectpads_available),
10616         (gst_collectpads_read), (gst_collectpads_flush),
10617         (gst_collectpads_chain):
10618         * gst/base/gstcollectpads.h:
10619         * gst/elements/Makefile.am:
10620         * gst/elements/gstelements.c:
10621         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
10622         (gst_fakesink_get_times), (gst_fakesink_event),
10623         (gst_fakesink_preroll), (gst_fakesink_render):
10624         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
10625         (gst_filesink_init), (gst_filesink_set_location),
10626         (gst_filesink_open_file), (gst_filesink_close_file),
10627         (gst_filesink_pad_query), (gst_filesink_event),
10628         (gst_filesink_render), (gst_filesink_change_state):
10629         * gst/elements/gstfilesink.h:
10630         Added object to help in making collect pad based elements.
10631         Ported filesink.
10632         Make event function in sink baseclass return gboolean.
10633
10634 2005-05-05  Wim Taymans  <wim@fluendo.com>
10635
10636         * gst/gstbin.c: (gst_bin_send_event), (compare_name),
10637         (gst_bin_get_by_name):
10638         * gst/gstbuffer.h:
10639         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_class_init),
10640         (gst_clock_finalize):
10641         * gst/gstdata.c: (gst_data_replace):
10642         * gst/gstdata.h:
10643         * gst/gstelement.c: (gst_element_request_pad),
10644         (gst_element_pads_activate):
10645         * gst/gstobject.c: (gst_object_init), (gst_object_ref),
10646         (gst_object_unref):
10647         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10648         (gst_pad_set_checkgetrange_function),
10649         (gst_pad_link_check_compatible_unlocked), (gst_pad_set_caps),
10650         (gst_pad_check_pull_range), (gst_pad_pull_range),
10651         (gst_static_pad_template_get_caps), (gst_pad_start_task),
10652         (gst_pad_pause_task), (gst_pad_stop_task):
10653         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
10654         (gst_element_request_pad), (gst_pad_proxy_getcaps):
10655         Fix name lookup in GstBin.
10656         Added _data_replace() function and _buffer_replace()
10657         Use finalize method to clean up clock.
10658         Fix refcounting on request pads.
10659         Fix pad schedule mode error.
10660         Some more object refcounting debug info,
10661
10662
10663 2005-05-04  Andy Wingo <wingo@pobox.com>
10664
10665         * check/Makefile.am:
10666         * docs/gst/tmpl/gstatomic.sgml:
10667         * docs/gst/tmpl/gstplugin.sgml:
10668         * gst/base/gstbasesink.c: (gst_basesink_activate):
10669         * gst/base/gstbasesrc.c: (gst_basesrc_class_init),
10670         (gst_basesrc_init), (gst_basesrc_set_dataflow_funcs),
10671         (gst_basesrc_query), (gst_basesrc_set_property),
10672         (gst_basesrc_get_property), (gst_basesrc_check_get_range),
10673         (gst_basesrc_activate):
10674         * gst/base/gstbasesrc.h:
10675         * gst/base/gstbasetransform.c: (gst_base_transform_sink_activate),
10676         (gst_base_transform_src_activate):
10677         * gst/elements/gstelements.c:
10678         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
10679         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
10680         * gst/elements/gsttee.c: (gst_tee_sink_activate):
10681         * gst/elements/gsttypefindelement.c: (find_element_get_length),
10682         (gst_type_find_element_checkgetrange),
10683         (gst_type_find_element_activate):
10684         * gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
10685         * gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
10686         (gst_caps_load_thyself):
10687         * gst/gstelement.c: (gst_element_pads_activate),
10688         (gst_element_save_thyself), (gst_element_restore_thyself):
10689         * gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
10690         (gst_ghost_pad_save_thyself), (gst_pad_check_pull_range):
10691         * gst/gstpad.h:
10692         * gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
10693         (gst_xml_parse_file), (gst_xml_parse_memory),
10694         (gst_xml_get_element), (gst_xml_make_element):
10695         * gst/indexers/gstfileindex.c: (gst_file_index_load),
10696         (_file_index_id_save_xml), (gst_file_index_commit):
10697         * gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
10698         (read_enum), (load_pad_template), (load_feature), (load_plugin),
10699         (load_paths):
10700         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
10701         (gst_dp_packet_from_event), (gst_dp_caps_from_packet):
10702         * tools/gst-complete.c: (main):
10703         * tools/gst-compprep.c: (main):
10704         * tools/gst-inspect.c: (print_element_properties_info):
10705         * tools/gst-launch.c: (xmllaunch_parse_cmdline):
10706         * tools/gst-xmlinspect.c: (print_element_properties):
10707         GCC 4 fixen.
10708         
10709 2005-05-03  Thomas Vander Stichele  <thomas at apestaart dot org>
10710
10711         * gst/gstplugin.c: (gst_plugin_check_module),
10712         (gst_plugin_check_file), (gst_plugin_load_file):
10713             apply patch from #172526 to make register work on MacOSX
10714
10715 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
10716
10717         * docs/gst/tmpl/gstconfig.sgml:
10718         * gst/gstconfig.h.in:
10719           move documentation for some symbols.  Add doc for GST_PTR_FORMAT
10720         * testsuite/debug/printf_extension.c: (main):
10721           Do not use GST_PTR_FORMAT on pointers to types with
10722           sizeof < sizeof(gpointer).  Fixes test on 64-bit
10723         * testsuite/elements/property.h:
10724           use correct printf format
10725
10726 2005-05-02  Wim Taymans  <wim@fluendo.com>
10727
10728         * docs/design/draft-push-pull.txt:
10729         * docs/design/draft-query.txt:
10730         * gst/base/gstbasesrc.c: (gst_basesrc_get_range_unlocked),
10731         (gst_basesrc_start):
10732         Added draft for new query API.
10733         Added draft for better selecting scheduling methods.
10734         Make basesrc ignore length if the subclass does not support
10735         it.
10736
10737 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
10738
10739         * gst/Makefile.am:
10740           possible fixes for automake-1.5 - _LIBADD is reserved
10741
10742 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
10743
10744         * docs/faq/Makefile.am:
10745         * docs/manual/Makefile.am:
10746         * docs/manuals.mak:
10747         * docs/pwg/Makefile.am:
10748         * gst/Makefile.am:
10749           possible fixes for automake-1.5
10750
10751 2005-04-28  Wim Taymans  <wim@fluendo.com>
10752
10753         * gst/base/gstbasesink.c: (gst_basesink_base_init),
10754         (gst_basesink_pad_getcaps), (gst_basesink_init),
10755         (gst_basesink_do_sync):
10756         * gst/gstclock.c: (gst_clock_entry_new):
10757         * gst/gstevent.c: (gst_event_discont_get_value):
10758         * gst/gstpipeline.c: (pipeline_bus_handler),
10759         (gst_pipeline_change_state):
10760         * gst/gstsystemclock.c: (gst_system_clock_id_wait_unlocked):
10761         Better debugging of clocking info.
10762         Allow NULL values when getting discont values.
10763
10764 2005-04-27  Wim Taymans  <wim@fluendo.com>
10765
10766         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
10767         * check/gst/gstpad.c: (gst_pad_suite):
10768         Increase timeout for checks.
10769
10770 2005-04-27  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
10771
10772         * check/Makefile.am:
10773           fix the broken rule for cleanup.  Apparently this rule is
10774           only needed on FC2, so maybe this warrants further autotool
10775           inspection.
10776
10777 2005-04-26  Wim Taymans  <wim@fluendo.com>
10778
10779         * gst/gsttrashstack.h:
10780         Ooohh. a nasty one! After having a failed pop() from the stack,
10781         it's possible that the stack is empty. In that case, don't
10782         follow the NULL pointer.
10783
10784 2005-04-25  Wim Taymans  <wim@fluendo.com>
10785
10786         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10787         (gst_pad_set_checkgetrange_function),
10788         (gst_pad_link_check_compatible_unlocked), (gst_pad_link_prepare),
10789         (gst_pad_check_pull_range), (gst_pad_pull_range),
10790         (gst_static_pad_template_get_caps), (gst_pad_start_task),
10791         (gst_pad_pause_task), (gst_pad_stop_task):
10792         * gst/gstplugin.c: (gst_plugin_load):
10793         * gst/gstplugin.h:
10794         Remove gst_library_load as it does more harm than good with
10795         the new g_module flags.
10796         Revert bogus caps template check in pad linking, pad caps
10797         are important when linking not the template, which is more
10798         general than the current caps.
10799
10800 2005-04-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10801
10802         * gst/autoplug/.cvsignore:
10803         * gst/autoplug/Makefile.am:
10804         * gst/autoplug/gstsearchfuncs.c:
10805         * gst/autoplug/gstsearchfuncs.h:
10806         * gst/autoplug/gstspider.c:
10807         * gst/autoplug/gstspider.h:
10808         * gst/autoplug/gstspideridentity.c:
10809         * gst/autoplug/gstspideridentity.h:
10810         * gst/autoplug/spidertest.c:
10811           Die, spider, die.
10812
10813 2005-04-25  Wim Taymans  <wim@fluendo.com>
10814
10815         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10816         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
10817         (gst_pad_pull_range), (gst_static_pad_template_get_caps),
10818         (gst_pad_start_task), (gst_pad_pause_task), (gst_pad_stop_task):
10819         * gst/gstpad.h:
10820         Added stubs for unimplemented functions. 
10821
10822 2005-04-24  David Schleef  <ds@schleef.org>
10823
10824         * gst/gstpad.h: Disable some unimplemented functions.  Wim,
10825         please fix.
10826
10827 2005-04-24  David Schleef  <ds@schleef.org>
10828
10829         Convert everything from GstAtomicInt to g_atomic_int_*, and
10830         remove gstatomic.
10831         * gst/Makefile.am:
10832         * gst/gstatomic.c:
10833         * gst/gstatomic.h:
10834         * gst/gstatomic_impl.h:
10835         * gst/gstbuffer.c:
10836         * gst/gstcaps.c:
10837         * gst/gstcaps.h:
10838         * gst/gstclock.c:
10839         * gst/gstclock.h:
10840         * gst/gstdata.c:
10841         * gst/gstdata.h:
10842         * gst/gstdata_private.h:
10843         * gst/gstevent.c:
10844         * gst/gstinfo.c:
10845         * gst/gstinfo.h:
10846         * gst/gstmessage.c:
10847         * gst/gstobject.c:
10848         * gst/gstobject.h:
10849         * gst/gststructure.c:
10850         * gst/gststructure.h:
10851         * gst/gstutils.c: Add gst_atomic_int_set() compaitibility function.
10852         * gst/gstutils.h:
10853
10854 2005-04-24  David Schleef  <ds@schleef.org>
10855
10856         * check/gst/gstpad.c: (START_TEST): Oh yeah, it's always nice to
10857         make the regressions tests work.  Remove some code that is no
10858         longer true.
10859         * gst/gstpad.c: (gst_pad_link_check_templates_compatible_unlocked):
10860         Disable warning for pads without templates.
10861
10862 2005-04-24  David Schleef  <ds@schleef.org>
10863
10864         * gst/gstpad.c: Remove handling of filtered caps.  Fix/merge
10865         functions that handle filtered links.
10866         * gst/gstpad.h: Remove 'appfilter' field and prototypes of
10867         removed functions.
10868         * gst/gstutils.c: Fix/remove utility functions that handle
10869         filtered caps.
10870         * gst/gstutils.h:
10871         * gst/gstvalue.c: Add serialization/deserialization of caps
10872         * gst/parse/grammar.y: Ignore filtered caps when linking.  This
10873         requires fixing so that the filter caps notation creates
10874         a capsfilter element and sets the filter_caps property.  I
10875         think everyone probably wants to keep the shorthand notation.
10876         * docs/gst/tmpl/gstelement.sgml: updates for API changes.
10877         * docs/gst/tmpl/gstpad.sgml:
10878
10879         * gst/elements/gstelements.c: Register capsfilter element.
10880         * gst/Makefile.am: fix spacing
10881         * docs/random/ds/0.9-suggested-changes: random
10882
10883 2005-04-23  David Schleef  <ds@schleef.org>
10884
10885         * gst/elements/Makefile.am:
10886         * gst/elements/gstcapsfilter.c: New element that acts like an
10887         identity, but filters caps.  Will eventually replace filtered
10888         caps in pad linking.
10889         * gst/gstutils.c: (gst_element_create_all_pads): New function
10890         to create all the ALWAYS pads that are registered with an
10891         element class.  This functionality should eventually be
10892         merged in with GstElement initialization.
10893         * gst/gstutils.h:
10894         * testsuite/trigger/README: part of trigger test code that should
10895         have been checked in a long time ago.
10896
10897 2005-04-23  David Schleef  <ds@schleef.org>
10898
10899         * gst/Makefile.am: Remove as-libtool stuff.  It's likely not
10900         needed with new versions of libtool (nobody will confirm this),
10901         and hard to carry around.
10902         * gst/autoplug/Makefile.am:
10903         * gst/base/Makefile.am:
10904         * gst/elements/Makefile.am:
10905         * gst/indexers/Makefile.am:
10906         * gst/schedulers/Makefile.am:
10907         * libs/gst/bytestream/Makefile.am:
10908         * libs/gst/control/Makefile.am:
10909         * libs/gst/dataprotocol/Makefile.am:
10910         * libs/gst/getbits/Makefile.am:
10911
10912 2005-04-21  Wim Taymans  <wim@fluendo.com>
10913
10914         * docs/design/draft-push-pull.txt:
10915         * docs/design/part-MT-refcounting.txt:
10916         * docs/design/part-TODO.txt:
10917         * docs/design/part-caps.txt:
10918         * docs/design/part-events.txt:
10919         * docs/design/part-gstbus.txt:
10920         * docs/design/part-gstpipeline.txt:
10921         * docs/design/part-messages.txt:
10922         * docs/design/part-push-pull.txt:
10923         * docs/design/part-query.txt:
10924         Some more docs.
10925
10926 2005-04-21  Wim Taymans  <wim@fluendo.com>
10927
10928         * gst/gstmessage.c: (_gst_message_copy), (_gst_message_free),
10929         (gst_message_new), (gst_message_new_error),
10930         (gst_message_new_warning), (gst_message_new_tag),
10931         (gst_message_new_state_changed), (gst_message_new_application),
10932         (gst_message_get_structure):
10933         * gst/gstmessage.h:
10934         * gst/gststructure.c: (gst_structure_set_parent_refcount),
10935         (gst_structure_copy_conditional):
10936         Use parent refcount in GstMessage to ensure GstStructure
10937         consistency.
10938         Cleaned up headers a bit.
10939         
10940
10941 2005-04-20  Wim Taymans  <wim@fluendo.com>
10942
10943         * gst/base/gstbasesink.c: (gst_basesink_base_init),
10944         (gst_basesink_pad_getcaps), (gst_basesink_init),
10945         (gst_basesink_chain_unlocked):
10946         * gst/base/gsttypefindhelper.c: (helper_find_suggest),
10947         (gst_type_find_helper):
10948         * gst/elements/gsttypefindelement.c:
10949         (gst_type_find_element_have_type), (gst_type_find_element_init),
10950         (stop_typefinding), (gst_type_find_element_handle_event),
10951         (find_suggest), (gst_type_find_element_chain),
10952         (gst_type_find_element_checkgetrange),
10953         (gst_type_find_element_getrange), (do_typefind),
10954         (gst_type_find_element_activate):
10955         * gst/gstbuffer.c: (_gst_buffer_sub_free),
10956         (gst_buffer_default_free), (gst_buffer_default_copy),
10957         (gst_buffer_set_caps):
10958         * gst/gstcaps.c: (gst_caps_ref), (gst_caps_unref),
10959         (gst_caps_replace):
10960         * gst/gstmessage.c: (gst_message_new),
10961         (gst_message_new_state_changed):
10962         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10963         (gst_pad_set_checkgetrange_function),
10964         (gst_pad_link_prepare_filtered), (gst_pad_relink_filtered),
10965         (gst_pad_set_caps), (gst_pad_check_pull_range),
10966         (gst_pad_pull_range), (gst_static_pad_template_get_caps):
10967         * gst/gstpad.h:
10968         * gst/gsttypefind.c: (gst_type_find_register):
10969         Make gst_caps_replace() work like other _replace() functions.
10970         Use _caps_replace() where possible.
10971         Make sure _message_new() initialises its field.
10972         Add gst_static_pad_template_get_caps()
10973
10974
10975 2005-04-18  Andy Wingo  <wingo@pobox.com>
10976
10977         * gst/gstelement.c (gst_element_pads_activate): Check pull_range
10978         on the peer, not the pad. I think that was a typo. Pass an extra
10979         arg to see if random access is possible. Activate the pads as
10980         PULL_RANGE if possible.
10981
10982         * gst/elements/gstfakesrc.c: s/ARG_/PROP_/.
10983
10984         * gst/base/gstbasesrc.c (gst_basesrc_set_property) 
10985         (gst_basesrc_get_property): BLOCKSIZE is a ULONG. Rename ARG_...
10986         to PROP_....
10987
10988 2005-04-14  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10989
10990         * docs/faq/using.xml:
10991           Add note on gstreamer-properties (#154996).
10992
10993 2005-04-13  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10994
10995         * docs/random/bbb/optional-properties:
10996           Some analysis on optional properties.
10997
10998 2005-04-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10999
11000         * docs/gst/tmpl/gstelementfactory.sgml:
11001         * gst/gstelement.h:
11002         * gst/gstelementfactory.c: (gst_element_factory_init),
11003         (gst_element_factory_cleanup), (gst_element_register),
11004         (__gst_element_factory_add_static_pad_template),
11005         (gst_element_factory_get_static_pad_templates),
11006         (gst_element_factory_can_src_caps),
11007         (gst_element_factory_can_sink_caps):
11008         * gst/registries/Makefile.am:
11009         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_get_type),
11010         (gst_xml_registry_class_init), (gst_xml_registry_init),
11011         (gst_xml_registry_new), (gst_xml_registry_set_property),
11012         (gst_xml_registry_get_property), (get_time), (make_dir),
11013         (gst_xml_registry_get_perms_func),
11014         (plugin_times_older_than_recurse), (plugin_times_older_than),
11015         (gst_xml_registry_open_func), (gst_xml_registry_load_func),
11016         (gst_xml_registry_save_func), (gst_xml_registry_close_func),
11017         (add_to_char_array), (read_string), (read_uint), (read_enum),
11018         (load_pad_template), (load_feature), (load_plugin), (load_paths),
11019         (gst_xml_registry_load), (gst_xml_registry_load_plugin),
11020         (gst_xml_registry_save_caps), (gst_xml_registry_save_pad_template),
11021         (gst_xml_registry_save_feature), (gst_xml_registry_save_plugin),
11022         (gst_xml_registry_save), (gst_xml_registry_rebuild_recurse),
11023         (gst_xml_registry_rebuild):
11024         * gst/registries/gstlibxmlregistry.h:
11025         * tools/gst-compprep.c: (main):
11026         * tools/gst-inspect.c: (print_pad_templates_info):
11027         * tools/gst-xmlinspect.c: (print_element_info):
11028           Use libxml2 for registry parsing, use staticpadtemplates in
11029           elementfactories. Makes gst_init() +/- 10x faster.
11030
11031 2005-04-12  Wim Taymans  <wim@fluendo.com>
11032
11033         * gst/base/Makefile.am:
11034         * gst/base/gstbasesink.c: (gst_basesink_base_init),
11035         (gst_basesink_pad_getcaps), (gst_basesink_init),
11036         (gst_basesink_event), (gst_basesink_change_state):
11037         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
11038         (gst_basesrc_init), (gst_basesrc_query),
11039         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
11040         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
11041         (gst_basesrc_check_get_range), (gst_basesrc_loop),
11042         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
11043         (gst_basesrc_stop), (gst_basesrc_activate),
11044         (gst_basesrc_change_state):
11045         * gst/base/gsttypefindhelper.c: (helper_find_peek),
11046         (helper_find_suggest), (gst_type_find_helper):
11047         * gst/base/gsttypefindhelper.h:
11048         * gst/elements/Makefile.am:
11049         * gst/elements/gstelements.c:
11050         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
11051         (gst_fakesink_get_times), (gst_fakesink_event),
11052         (gst_fakesink_preroll), (gst_fakesink_render):
11053         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
11054         (gst_fakesrc_init), (gst_fakesrc_event_handler),
11055         (gst_fakesrc_get_property), (gst_fakesrc_create),
11056         (gst_fakesrc_start), (gst_fakesrc_stop):
11057         * gst/elements/gstfakesrc.h:
11058         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init),
11059         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
11060         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
11061         (gst_filesrc_create_read), (gst_filesrc_create),
11062         (gst_filesrc_is_seekable), (gst_filesrc_get_size),
11063         (gst_filesrc_start):
11064         * gst/elements/gsttypefindelement.c:
11065         (gst_type_find_element_have_type), (gst_type_find_element_init),
11066         (start_typefinding), (stop_typefinding), (push_buffer_store),
11067         (gst_type_find_element_handle_event),
11068         (gst_type_find_element_chain),
11069         (gst_type_find_element_checkgetrange),
11070         (gst_type_find_element_getrange), (do_typefind),
11071         (gst_type_find_element_activate),
11072         (gst_type_find_element_change_state):
11073         * gst/elements/gsttypefindelement.h:
11074         * gst/gstpipeline.c: (pipeline_bus_handler):
11075         Added typefind helper.
11076         Small preroll fix in the base sink.
11077         Disable typefind code in basesrc.
11078         Crude port of typefindelement.
11079         Fakesrc cleanups.
11080
11081
11082 2005-04-11  Wim Taymans  <wim@fluendo.com>
11083
11084         * check/gst/gstbus.c: (gstbus_suite):
11085         * check/gst/gstdata.c: (thread_ref), (gst_data_suite):
11086         * check/gstcheck.h:
11087           Fix up the timeout so that the test does not fail.
11088
11089 2005-04-06  Wim Taymans  <wim@fluendo.com>
11090
11091         * gst/base/README:
11092         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
11093         (gst_basesrc_init), (gst_basesrc_get_formats), (gst_basesrc_query),
11094         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
11095         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
11096         (gst_basesrc_check_get_range), (gst_basesrc_loop),
11097         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
11098         (gst_basesrc_stop), (gst_basesrc_activate),
11099         (gst_basesrc_change_state), (basesrc_find_peek),
11100         (basesrc_find_suggest), (gst_basesrc_type_find):
11101         * gst/base/gstbasesrc.h:
11102         * gst/elements/gstfilesrc.c: (gst_filesrc_base_init),
11103         (gst_filesrc_class_init), (gst_filesrc_init),
11104         (gst_filesrc_finalize), (gst_filesrc_set_location),
11105         (gst_filesrc_set_property), (gst_filesrc_get_property),
11106         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
11107         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
11108         (gst_filesrc_create_read), (gst_filesrc_create),
11109         (gst_filesrc_get_size), (gst_filesrc_start), (gst_filesrc_stop):
11110         * gst/elements/gstfilesrc.h:
11111         * gst/gstelement.c: (gst_element_get_state_func),
11112         (gst_element_lost_state), (gst_element_pads_activate):
11113         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
11114         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
11115         (gst_pad_pull_range):
11116         * gst/gstpad.h:
11117         More work on the generic source base class, implement seeking,
11118         query.
11119         Make filesrc extend the base source class.
11120         Added gst_pad_set_checkgetrange_function to GstPad.
11121
11122 2005-04-06  Andy Wingo  <wingo@pobox.com>
11123
11124         * pkgconfig/gstreamer-base.pc.in:
11125         * pkgconfig/gstreamer-base-uninstalled.pc.in: New files.
11126
11127         * pkgconfig/Makefile.am:
11128         * configure.ac (AC_OUTPUT): Add gstreamer-base pkgconfig files.
11129
11130 2005-04-04  Wim Taymans  <wim@fluendo.com>
11131
11132         * gst/base/Makefile.am:
11133         * gst/base/README:
11134         * gst/base/gstbasesink.c: (gst_basesink_base_init),
11135         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
11136         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
11137         (gst_basesink_do_sync), (gst_basesink_chain_unlocked):
11138         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
11139         (gst_basesrc_base_init), (gst_basesrc_class_init),
11140         (gst_basesrc_init), (gst_basesrc_get_formats),
11141         (gst_basesrc_get_query_types), (gst_basesrc_query),
11142         (gst_basesrc_get_event_mask), (gst_basesrc_event_handler),
11143         (gst_basesrc_set_property), (gst_basesrc_get_property),
11144         (gst_basesrc_get_range_unlocked), (gst_basesrc_get_range),
11145         (gst_basesrc_loop), (gst_basesrc_activate),
11146         (gst_basesrc_change_state):
11147         * gst/base/gstbasesrc.h:
11148         * gst/elements/gstfakesrc.c: (gst_fakesrc_base_init),
11149         (gst_fakesrc_class_init), (gst_fakesrc_init),
11150         (gst_fakesrc_event_handler), (gst_fakesrc_set_property),
11151         (gst_fakesrc_get_property), (gst_fakesrc_create):
11152         * gst/elements/gstfakesrc.h:
11153         * gst/elements/gstfilesrc.c: (gst_filesrc_getrange),
11154         (gst_filesrc_open_file), (gst_filesrc_loop),
11155         (gst_filesrc_activate), (filesrc_find_peek),
11156         (gst_filesrc_type_find):
11157         Made base source class, make fakesrc extend it.
11158         Add comments to basesink class.
11159         Some filesrc cleanup.
11160
11161 2005-03-31  David Schleef  <ds@schleef.org>
11162
11163         * gst/gstplugin.c: (gst_plugin_check_file), (gst_plugin_load_file):
11164         Switch to using G_MODULE_BIND_LOCAL, which means plugins are now
11165         expected to link against libgstreamer.
11166         * gst/base/Makefile.am: link against libgstreamer
11167         * gst/elements/Makefile.am: same
11168
11169 2005-03-31  Andy Wingo  <wingo@pobox.com>
11170
11171         * tests/instantiate/Makefile.am:
11172         * tests/instantiate/caps.c: Add test to test speed of caps copy
11173         and free.
11174
11175         * tests/memchunk/gmemchunktest.c (main): Use alloc only on the
11176         GMemChunk to be fair.
11177
11178         * gst/gsttrashstack.h: Remove warning about using the fallback
11179         trash stack implementation, it's still faster than malloc.
11180
11181 2005-03-30  Andy Wingo  <wingo@pobox.com>
11182
11183         * tests/complexity.c: Add a copyright.
11184
11185 2005-03-31  Wim Taymans  <wim@fluendo.com>
11186
11187         * gst/base/gstbasetransform.c: (gst_base_transform_base_init),
11188         (gst_base_transform_class_init), (gst_base_transform_init),
11189         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
11190         (gst_base_transform_get_property),
11191         (gst_base_transform_sink_activate),
11192         (gst_base_transform_src_activate),
11193         (gst_base_transform_change_state):
11194         * gst/base/gstbasetransform.h:
11195         * gst/elements/gstidentity.c: (gst_identity_class_init),
11196         (gst_identity_event), (gst_identity_check_perfect),
11197         (gst_identity_transform), (gst_identity_start),
11198         (gst_identity_stop):
11199         Added start/stop methods to transform base class so subclasses 
11200         don't need to deal with state changes even.
11201
11202 2005-03-31  Wim Taymans  <wim@fluendo.com>
11203
11204         * gst/gstevent.c: (gst_event_new_discontinuous_valist),
11205         (gst_event_new_discontinuous), (gst_event_discont_get_value):
11206         * gst/gstevent.h:
11207         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
11208         (gst_pad_pull_range):
11209         Added rate to the discont event to prepare for variable speed
11210         and reverse playback.
11211
11212 2005-03-29  David Schleef  <ds@schleef.org>
11213
11214         * configure.ac:
11215         * testsuite/trigger/Makefile.am:
11216         * testsuite/trigger/trigger.c: A little example program to show
11217         how trigger-based elements can work.
11218
11219 2005-03-29  Wim Taymans  <wim@fluendo.com>
11220
11221         * gst/base/Makefile.am:
11222         * gst/base/README:
11223         * gst/base/gstbasesink.c: (gst_basesink_get_type),
11224         (gst_basesink_base_init), (gst_basesink_class_init),
11225         (gst_basesink_pad_getcaps), (gst_basesink_init),
11226         (gst_basesink_activate), (gst_basesink_change_state):
11227         * gst/base/gstbasesink.h:
11228         * gst/base/gstbasetransform.c: (gst_base_transform_get_type),
11229         (gst_base_transform_base_init), (gst_base_transform_finalize),
11230         (gst_base_transform_class_init), (gst_base_transform_init),
11231         (gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
11232         (gst_base_transform_event), (gst_base_transform_getrange),
11233         (gst_base_transform_chain), (gst_base_transform_handle_buffer),
11234         (gst_base_transform_set_property),
11235         (gst_base_transform_get_property),
11236         (gst_base_transform_sink_activate),
11237         (gst_base_transform_src_activate),
11238         (gst_base_transform_change_state):
11239         * gst/base/gstbasetransform.h:
11240         * gst/elements/gstidentity.c: (gst_identity_finalize),
11241         (gst_identity_class_init), (gst_identity_init),
11242         (gst_identity_event), (gst_identity_check_perfect),
11243         (gst_identity_transform), (gst_identity_set_property),
11244         (gst_identity_get_property), (gst_identity_change_state):
11245         * gst/elements/gstidentity.h:
11246         * gst/gstelement.c: (gst_element_get_state_func),
11247         (gst_element_lost_state), (gst_element_pads_activate):
11248         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
11249         (gst_pad_check_pull_range), (gst_pad_pull_range):
11250         * gst/gstpad.h:
11251         Simplify pad activation.
11252         Added function to check if pull_range can be performed.
11253         Error out when pulling inactive or flushing pads.
11254         Removed const from refcounted types as it does not make sense.
11255         Simplify pad templates in basesink
11256         Added base class for simple 1-to-1 transforms.
11257         Make identity subclass the base transform.
11258
11259 2005-03-29  Andy Wingo  <wingo@pobox.com>
11260
11261         * docs/libs/gstreamer-libs-overrides.txt: 
11262         * docs/gst/gstreamer-overrides.txt: Add these files to CVS. Now I
11263         really don't understand what's going on, but like whatever. I want
11264         green buildbot!
11265
11266         * docs/gst/Makefile.am:
11267         * docs/libs/Makefile.am: Dist the overrides files.
11268
11269         * check/Makefile.am (clean-local): Remove .libs directories.
11270
11271         * gst/elements/Makefile.am (EXTRA_DIST): Add all the attic
11272         elements to EXTRA_DIST, so po/ files are happy.
11273
11274         * po/POTFILES.in: Er, remove it here.
11275
11276         * po/POTFILES: Remove gstspider.c.
11277
11278         * configure.ac (AC_OUTPUT): Add missing testsuite makefiles.
11279
11280         * docs/libs/gstreamer-libs-docs.sgml: 
11281         * docs/libs/gstreamer-libs-sections.txt: Remove the section on
11282         bytestream.
11283
11284         * tests/complexity.c (main): Set the length of the preroll queue
11285         on the sinks to prevent a lockup.
11286
11287         * libs/gst/dataprotocol/Makefile.am: 
11288         * libs/gst/dataprotocol/dataprotocol-test.c: Remove test, it's
11289         the same as the one in check/gst-libs/gdp.c.
11290
11291         * po/, docs/gst/: Commit automatic changes to docs and po files.
11292
11293         * gst/elements/Makefile.am (libgstelements_la_LDFLAGS): Link to
11294         the versioned libgstbase.
11295
11296         * check/Makefile.am: Depend on an unversioned gst-register, seems
11297         to make autoconf happier.
11298
11299         * gst/base/Makefile.am: Make libgstbase a versioned lib.
11300
11301 2005-03-28  Wim Taymans  <wim@fluendo.com>
11302
11303         * configure.ac:
11304         * docs/design/part-gstelement.txt:
11305         * docs/design/part-negotiation.txt:
11306         * docs/design/part-preroll.txt:
11307         * docs/design/part-scheduling.txt:
11308         * docs/design/part-states.txt:
11309         * gst/Makefile.am:
11310         * gst/base/Makefile.am:
11311         * gst/base/README:
11312         * gst/base/gstbasesink.c: (gst_basesink_get_template),
11313         (gst_basesink_base_init), (gst_basesink_class_init),
11314         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
11315         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
11316         (gst_basesink_set_pad_functions),
11317         (gst_basesink_set_all_pad_functions), (gst_basesink_set_clock),
11318         (gst_basesink_set_property), (gst_basesink_get_property),
11319         (gst_base_sink_get_template), (gst_base_sink_get_caps),
11320         (gst_base_sink_set_caps), (gst_base_sink_buffer_alloc),
11321         (gst_basesink_preroll_queue_push),
11322         (gst_basesink_preroll_queue_empty),
11323         (gst_basesink_preroll_queue_flush), (gst_basesink_finish_preroll),
11324         (gst_basesink_event), (gst_basesink_get_times),
11325         (gst_basesink_do_sync), (gst_basesink_handle_buffer),
11326         (gst_basesink_chain_unlocked), (gst_basesink_chain),
11327         (gst_basesink_loop), (gst_basesink_activate),
11328         (gst_basesink_change_state):
11329         * gst/base/gstbasesink.h:
11330         * gst/elements/Makefile.am:
11331         * gst/elements/gstfakesink.c: (gst_fakesink_base_init),
11332         (gst_fakesink_class_init), (gst_fakesink_init),
11333         (gst_fakesink_set_property), (gst_fakesink_get_property),
11334         (gst_fakesink_get_times), (gst_fakesink_event),
11335         (gst_fakesink_preroll), (gst_fakesink_render),
11336         (gst_fakesink_change_state):
11337         * gst/elements/gstfakesink.h:
11338         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
11339         (gst_bin_get_state), (gst_bin_change_state), (gst_bin_send_event):
11340         * gst/gstelement.c: (gst_element_add_pad),
11341         (gst_element_get_state_func), (gst_element_abort_state),
11342         (gst_element_commit_state), (gst_element_lost_state),
11343         (gst_element_set_state), (gst_element_pads_activate):
11344         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_event_default):
11345         * gst/gstpipeline.c: (gst_pipeline_send_event),
11346         (gst_pipeline_change_state):
11347         Added state change code.
11348         Added/updated docs.
11349         Added sink base class, make fakesink extend the base class.
11350         Small cleanups in GstPipeline.
11351
11352 2005-03-26  David Schleef  <ds@schleef.org>
11353
11354         * gst/Makefile.am: remove gstcpu.[ch].  The gst_cpu functionality
11355         is broken and should be implemented in a different library.
11356         * gst/gst.c: (init_post): don't call _gst_cpu_initialize()
11357         * gst/gst.h: remove gstcpu.h
11358         * gst/gstcpu.c: remove
11359         * gst/gstcpu.h: remove
11360         * gst/Makefile.am.future: Remove this file.  It's ancient.
11361
11362 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
11363
11364         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
11365         (gst_bin_send_event):
11366           Add default event/set_manager handlers. The set_manager handler
11367           takes care that the manager is distributed over kids that were
11368           already in the bin before the manager was set. The event handler
11369           is a utility virtual function that sends the event over all sinks,
11370           so that gst_element_send_event (bin, event); has the expected
11371           behaviour.
11372         * gst/gstpad.c: (gst_pad_event_default):
11373           Re-install default event handling for discontinuities, so that
11374           seeking works without requiring hacks in applications or extra
11375           code in sinks.
11376         * gst/gstpipeline.c: (gst_pipeline_class_init),
11377         (gst_pipeline_send_event):
11378           Half hack, half utility: set a pipeline to PAUSED for seek events,
11379           since that is the only way we can guarantee a/v sync. Means that
11380           you can do gst_element_seek (pipeline, method, pos); on a pipeline
11381           and it "just works".
11382
11383 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
11384
11385         * gst/gstpipeline.c: (gst_pipeline_use_clock):
11386           Lock/unlock mismatch.
11387
11388 2005-03-25  Thomas Vander Stichele  <thomas at apestaart dot org>
11389
11390         * docs/faq/gst-uninstalled:
11391           add gst-plugins-base
11392         * docs/gst/Makefile.am:
11393           don't error out until docs are fixed
11394         * docs/gst/gstreamer.types:
11395           remove thread
11396
11397 2005-03-22  Wim Taymans  <wim@fluendo.com>
11398
11399         * check/Makefile.am:
11400         * check/gst/gstmessage.c: (START_TEST), (gst_data_suite), (main):
11401         * gst/gststructure.c: (gst_structure_set_valist),
11402         (gst_structure_copy_conditional):
11403         Activated more tests.
11404         Added message test.
11405         Added G_TYPE_POINTER to GstStructure.
11406         
11407
11408 2005-03-22  Wim Taymans  <wim@fluendo.com>
11409
11410         * docs/design/part-TODO.txt:
11411         * docs/design/part-events.txt:
11412         * docs/design/part-gstbin.txt:
11413         * docs/design/part-gstbus.txt:
11414         * docs/design/part-gstpipeline.txt:
11415         * docs/design/part-messages.txt:
11416         * gst/gstbus.c:
11417         * gst/gstmessage.c:
11418         Docs updates
11419
11420 2005-03-21  Wim Taymans  <wim@fluendo.com>
11421
11422         * gst/gstbus.c: (gst_bus_post):
11423         Fix copy-and-paste error.
11424
11425 2005-03-21  Wim Taymans  <wim@fluendo.com>
11426
11427         * check/Makefile.am:
11428         * gst/Makefile.am:
11429         * gst/elements/Makefile.am:
11430         * gst/elements/gstelements.c:
11431         * gst/elements/gstfakesink.c: (gst_fakesink_init),
11432         (gst_fakesink_event), (gst_fakesink_chain):
11433         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
11434         (gst_fakesrc_init), (gst_fakesrc_get_event_mask),
11435         (gst_fakesrc_event_handler), (gst_fakesrc_set_pad_functions),
11436         (gst_fakesrc_set_all_pad_functions), (gst_fakesrc_request_new_pad),
11437         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
11438         (gst_fakesrc_get_range_unlocked), (gst_fakesrc_get_range),
11439         (gst_fakesrc_loop), (gst_fakesrc_activate),
11440         (gst_fakesrc_change_state):
11441         * gst/elements/gstfakesrc.h:
11442         * gst/elements/gstfilesrc.c: (gst_filesrc_init),
11443         (gst_filesrc_get_read), (gst_filesrc_getrange), (gst_filesrc_get),
11444         (gst_filesrc_open_file), (gst_filesrc_loop),
11445         (gst_filesrc_activate), (gst_filesrc_change_state),
11446         (filesrc_find_peek), (filesrc_find_suggest),
11447         (gst_filesrc_type_find):
11448         * gst/elements/gstidentity.c: (gst_identity_finalize),
11449         (gst_identity_class_init), (gst_identity_init),
11450         (gst_identity_proxy_getcaps), (identity_queue_push),
11451         (identity_queue_pop), (identity_queue_flush), (gst_identity_event),
11452         (gst_identity_getrange), (gst_identity_chain),
11453         (gst_identity_sink_loop), (gst_identity_src_loop),
11454         (gst_identity_handle_buffer), (gst_identity_set_dataflow_funcs),
11455         (gst_identity_set_property), (gst_identity_get_property),
11456         (gst_identity_change_state):
11457         * gst/elements/gstidentity.h:
11458         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_init),
11459         (gst_tee_update_pad_functions), (gst_tee_request_new_pad),
11460         (gst_tee_set_property), (gst_tee_get_property), (gst_tee_do_push),
11461         (gst_tee_handle_buffer), (gst_tee_chain), (gst_tee_loop),
11462         (gst_tee_sink_activate):
11463         * gst/elements/gsttee.h:
11464         * gst/gst.c: (gst_register_core_elements), (init_post):
11465         * gst/gst.h:
11466         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_bus),
11467         (gst_bin_set_scheduler), (gst_bin_add_func), (gst_bin_add),
11468         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_get_state),
11469         (gst_bin_change_state):
11470         * gst/gstbin.h:
11471         * gst/gstbus.c: (gst_bus_get_type), (gst_bus_class_init),
11472         (gst_bus_init), (gst_bus_dispose), (gst_bus_set_property),
11473         (gst_bus_get_property), (gst_bus_new), (gst_bus_post),
11474         (gst_bus_have_pending), (gst_bus_pop), (gst_bus_peek),
11475         (gst_bus_set_sync_handler), (gst_bus_create_watch),
11476         (bus_watch_callback), (bus_watch_destroy),
11477         (gst_bus_add_watch_full), (gst_bus_add_watch), (poll_handler),
11478         (poll_timeout), (gst_bus_poll):
11479         * gst/gstbus.h:
11480         * gst/gstcaps.h:
11481         * gst/gstdata.h:
11482         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
11483         (gst_element_post_message), (gst_element_message_full),
11484         (gst_element_get_state_func), (gst_element_get_state),
11485         (gst_element_abort_state), (gst_element_commit_state),
11486         (gst_element_lost_state), (gst_element_set_state),
11487         (gst_element_pads_activate), (gst_element_change_state),
11488         (gst_element_dispose), (gst_element_set_manager_func),
11489         (gst_element_set_bus_func), (gst_element_set_scheduler_func),
11490         (gst_element_set_manager), (gst_element_get_manager),
11491         (gst_element_set_bus), (gst_element_get_bus),
11492         (gst_element_set_scheduler), (gst_element_get_scheduler):
11493         * gst/gstelement.h:
11494         * gst/gstevent.c: (gst_event_new_segment_seek),
11495         (gst_event_new_flush):
11496         * gst/gstevent.h:
11497         * gst/gstmessage.c: (_gst_message_initialize), (_gst_message_copy),
11498         (_gst_message_free), (gst_message_get_type), (gst_message_new),
11499         (gst_message_new_eos), (gst_message_new_error),
11500         (gst_message_new_warning), (gst_message_new_tag),
11501         (gst_message_new_state_changed), (gst_message_new_application),
11502         (gst_message_get_structure), (gst_message_parse_tag),
11503         (gst_message_parse_state_changed), (gst_message_parse_error),
11504         (gst_message_parse_warning):
11505         * gst/gstmessage.h:
11506         * gst/gstpad.c: (gst_real_pad_class_init), (gst_real_pad_init),
11507         (gst_real_pad_set_property), (gst_pad_set_active),
11508         (gst_pad_is_active), (gst_pad_set_blocked_async),
11509         (gst_pad_set_blocked), (gst_pad_is_blocked),
11510         (gst_pad_set_activate_function), (gst_pad_set_loop_function),
11511         (gst_pad_set_getrange_function), (gst_pad_set_acceptcaps_function),
11512         (gst_pad_set_fixatecaps_function), (gst_pad_set_setcaps_function),
11513         (gst_pad_unlink), (gst_pad_link_prepare_filtered),
11514         (gst_pad_link_filtered), (gst_pad_relink_filtered),
11515         (gst_real_pad_get_caps_unlocked), (gst_pad_get_caps),
11516         (gst_pad_peer_get_caps), (gst_pad_fixate_caps),
11517         (gst_pad_accept_caps), (gst_pad_peer_accept_caps),
11518         (gst_pad_set_caps), (gst_pad_configure_sink),
11519         (gst_pad_configure_src), (gst_pad_get_negotiated_caps),
11520         (gst_pad_get_filter_caps), (gst_pad_alloc_buffer),
11521         (gst_real_pad_dispose), (gst_real_pad_finalize),
11522         (handle_pad_block), (gst_pad_push), (gst_pad_pull_range),
11523         (gst_pad_event_default_dispatch), (gst_pad_event_default),
11524         (gst_pad_push_event), (gst_pad_send_event), (gst_pad_get_formats):
11525         * gst/gstpad.h:
11526         * gst/gstpipeline.c: (gst_pipeline_init), (is_eos),
11527         (pipeline_bus_handler), (gst_pipeline_change_state),
11528         (gst_pipeline_get_scheduler), (gst_pipeline_get_bus):
11529         * gst/gstpipeline.h:
11530         * gst/gstprobe.h:
11531         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_init),
11532         (gst_queue_finalize), (gst_queue_getcaps), (gst_queue_link_sink),
11533         (gst_queue_link_src), (gst_queue_bufferalloc),
11534         (gst_queue_locked_flush), (gst_queue_handle_sink_event),
11535         (gst_queue_is_empty), (gst_queue_is_filled), (gst_queue_chain),
11536         (gst_queue_loop), (gst_queue_handle_src_event),
11537         (gst_queue_handle_src_query), (gst_queue_src_activate),
11538         (gst_queue_change_state):
11539         * gst/gstqueue.h:
11540         * gst/gstscheduler.c: (gst_scheduler_init),
11541         (gst_scheduler_dispose), (gst_scheduler_create_task),
11542         (gst_scheduler_factory_create):
11543         * gst/gstscheduler.h:
11544         * gst/gststructure.c: (gst_structure_get_type),
11545         (gst_structure_copy_conditional):
11546         * gst/gststructure.h:
11547         * gst/gsttaginterface.h:
11548         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
11549         (gst_task_init), (gst_task_dispose), (gst_task_create),
11550         (gst_task_get_state), (gst_task_start), (gst_task_stop),
11551         (gst_task_pause):
11552         * gst/gsttask.h:
11553         * gst/gstthread.c:
11554         * gst/gstthread.h:
11555         * gst/gsttypes.h:
11556         * gst/schedulers/Makefile.am:
11557         * gst/schedulers/cothreads_compat.h:
11558         * gst/schedulers/entryscheduler.c:
11559         * gst/schedulers/faircothreads.c:
11560         * gst/schedulers/faircothreads.h:
11561         * gst/schedulers/fairscheduler.c:
11562         * gst/schedulers/gstbasicscheduler.c:
11563         * gst/schedulers/gstoptimalscheduler.c:
11564         * gst/schedulers/gthread-cothreads.h:
11565         * gst/schedulers/threadscheduler.c:
11566         (gst_thread_scheduler_task_get_type),
11567         (gst_thread_scheduler_task_class_init),
11568         (gst_thread_scheduler_task_init),
11569         (gst_thread_scheduler_task_start),
11570         (gst_thread_scheduler_task_stop),
11571         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_get_type),
11572         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
11573         (gst_thread_scheduler_init), (gst_thread_scheduler_create_task),
11574         (gst_thread_scheduler_setup), (gst_thread_scheduler_reset),
11575         (plugin_init):
11576         * libs/gst/Makefile.am:
11577         * libs/gst/bytestream/bytestream.c: (gst_bytestream_get_next_buf):
11578         * libs/gst/bytestream/filepad.c: (gst_file_pad_init),
11579         (gst_file_pad_parent_set):
11580         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
11581         (gst_dp_event_from_packet):
11582         * tests/complexity.c: (main):
11583         * tests/mass_elements.c: (main):
11584         * testsuite/states/locked.c: (message_received), (main):
11585         * testsuite/states/parent.c: (main):
11586         * tools/gst-inspect.c: (print_element_flag_info),
11587         (print_implementation_info), (print_pad_info):
11588         * tools/gst-launch.c: (check_intr), (play_handler), (event_loop),
11589         (main):
11590         * tools/gst-md5sum.c: (event_loop), (main):
11591         * tools/gst-typefind.c: (main):
11592         * tools/gst-xmlinspect.c: (print_element_info):
11593         Next big merge.
11594         Added GstBus for mainloop integration.
11595         Added GstMessage for sending notifications on the bus.
11596         Added GstTask as an abstraction for pipeline entry points.
11597         Removed GstThread.
11598         Removed Schedulers.
11599         Simplified GstQueue for multithreaded core.
11600         Made _link threadsafe, removed old capsnego.
11601         Added STREAM_LOCK and PREROLL_LOCK in GstPad.
11602         Added pad blocking functions.
11603         Reworked scheduling functions in GstPad to prepare for
11604         scheduling updates soon.
11605         Moved events out of data stream.
11606         Simplified GstEvent types.
11607         Added return values to push/pull.
11608         Removed clocking from GstElement.
11609         Added prototypes for state change function for next merge.
11610         Removed iterate from bins and state change management.
11611         Fixed some elements, disabled others for now.
11612         Fixed -inspect and -launch.
11613         Added check for GstBus.
11614
11615 2005-03-10  Wim Taymans  <wim@fluendo.com>
11616
11617         * docs/design/part-MT-refcounting.txt:
11618         * docs/design/part-clocks.txt:
11619         * docs/design/part-gstelement.txt:
11620         * docs/design/part-gstobject.txt:
11621         * docs/design/part-standards.txt:
11622         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
11623         (gst_bin_remove_func), (gst_bin_remove):
11624         * gst/gstbin.h:
11625         * gst/gstbuffer.c:
11626         * gst/gstcaps.h:
11627         * testsuite/clock/clock1.c: (main):
11628         * testsuite/clock/clock2.c: (gst_clock_debug), (element_wait),
11629         (main):
11630         * testsuite/dlopen/loadgst.c: (do_test):
11631         * testsuite/refcounting/bin.c: (add_remove_test1),
11632         (add_remove_test2), (main):
11633         * testsuite/refcounting/element.c: (main):
11634         * testsuite/refcounting/element_pad.c: (main):
11635         * testsuite/refcounting/pad.c: (main):
11636         * tools/gst-launch.c: (sigint_handler_sighandler):
11637         * tools/gst-typefind.c: (main):
11638         Doc updates.
11639         Added doc about clock.
11640         removed gst_bin_iterate_recurse_up(), marked methods
11641         for removal.
11642         Fix more testsuites.
11643
11644 2005-03-09  Wim Taymans  <wim@fluendo.com>
11645
11646         * gst/gstpad.c: (gst_pad_get_direction),
11647         (_gst_pad_default_fixate_foreach), (gst_pad_collectv),
11648         (gst_pad_collect_valist):
11649         * testsuite/bins/interface.c: (main):
11650         * testsuite/caps/audioscale.c: (test_caps):
11651         * testsuite/caps/caps.c: (test1), (test2), (test3):
11652         * testsuite/caps/deserialize.c: (main):
11653         * testsuite/caps/enumcaps.c: (main):
11654         * testsuite/caps/filtercaps.c: (main):
11655         * testsuite/caps/intersect2.c: (main):
11656         * testsuite/caps/random.c: (main):
11657         * testsuite/caps/renegotiate.c: (my_fixate), (main):
11658         * testsuite/caps/sets.c: (check_caps):
11659         * testsuite/caps/simplify.c: (check_caps), (main):
11660         * testsuite/caps/subtract.c: (check_caps):
11661         Fix _pad_get_direction wrt ghostpads.
11662         Fix caps testsuite.
11663
11664 2005-03-09  Wim Taymans  <wim@fluendo.com>
11665
11666         * check/Makefile.am:
11667         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite), (main):
11668         * check/gst/gstsystemclock.c: (START_TEST), (gst_clock_debug),
11669         (ok_callback), (error_callback), (gst_systemclock_suite), (main):
11670         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_index_func),
11671         (gst_bin_set_clock_func), (gst_bin_get_clock_func),
11672         (gst_bin_add_func), (gst_bin_add), (gst_bin_remove_func),
11673         (gst_bin_remove), (gst_bin_iterate_recurse_up),
11674         (bin_element_is_sink), (gst_bin_iterate_sinks),
11675         (gst_bin_iterate_all_by_interface):
11676         * gst/gstbin.h:
11677         * gst/gstelement.c: (gst_element_init), (gst_element_error_full),
11678         (gst_element_change_state), (gst_element_dispose),
11679         (gst_element_finalize), (gst_element_set_loop_function):
11680         * gst/gstelement.h:
11681         * gst/gstiterator.c: (find_custom_fold_func):
11682         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
11683         (gst_pad_collectv), (gst_pad_collect_valist),
11684         (gst_pad_template_new):
11685         * gst/gstpipeline.c: (gst_pipeline_class_init),
11686         (gst_pipeline_dispose), (gst_pipeline_set_property),
11687         (gst_pipeline_get_property), (gst_pipeline_get_clock_func),
11688         (gst_pipeline_get_clock), (gst_pipeline_use_clock),
11689         (gst_pipeline_set_clock), (gst_pipeline_auto_clock):
11690         * gst/gstutils.h:
11691         * gst/schedulers/entryscheduler.c:
11692         * gst/schedulers/gstbasicscheduler.c:
11693         (gst_basic_scheduler_cothreaded_chain),
11694         (gst_basic_scheduler_chain_add_element):
11695         * testsuite/bins/interface.c: (main):
11696         Added GstBin test.
11697         Added GstSystemClock test.
11698         Implemented clock distribution code in GstBin.
11699         Implemented iterate sinks method for future use.
11700         Rearranged gstelement.h
11701         Fix GstIterator comparison bug.
11702         Moved some code to GstPipeline, mostly clocking related.
11703
11704 2005-03-09  Wim Taymans  <wim@fluendo.com>
11705
11706         * configure.ac:
11707         * gst/gst_private.h:
11708         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
11709         (gst_bin_remove_func), (gst_bin_remove),
11710         (gst_bin_get_by_name_recurse_up):
11711         * gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
11712         (gst_clock_id_compare_func), (gst_clock_id_wait),
11713         (gst_clock_id_wait_async), (gst_clock_init),
11714         (gst_clock_adjust_unlocked), (gst_clock_get_time):
11715         * gst/gstelement.h:
11716         * gst/gstinfo.c: (_gst_debug_init):
11717         * gst/gstobject.h:
11718         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
11719         (gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
11720         * gst/gstpad.h:
11721         Bump version number, we're now 0.9.0
11722         Add future debugging category.
11723         Fix NULL _unref() in _get_by_name_recurse_up
11724         Rearrange gstpad.h.
11725         Update some docs.
11726
11727 2005-03-08  Wim Taymans  <wim@fluendo.com>
11728
11729         * gst/elements/gstaggregator.c: (gst_aggregator_class_init):
11730         * gst/elements/gstfakesink.c: (gst_fakesink_class_init):
11731         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
11732         * gst/elements/gstfdsink.c: (gst_fdsink_class_init):
11733         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init):
11734         * gst/elements/gstfilesink.c: (gst_filesink_class_init):
11735         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init):
11736         * gst/elements/gstidentity.c: (gst_identity_class_init):
11737         * gst/elements/gstmd5sink.c: (gst_md5sink_class_init):
11738         * gst/elements/gstmultifilesrc.c: (gst_multifilesrc_class_init):
11739         * gst/elements/gstshaper.c: (gst_shaper_class_init):
11740         * gst/elements/gststatistics.c: (gst_statistics_class_init):
11741         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_getcaps),
11742         (gst_tee_link):
11743         * gst/gstelement.c: (gst_element_class_init),
11744         (gst_element_base_class_init), (gst_element_init),
11745         (gst_element_get_random_pad), (gst_element_wait_state_change),
11746         (gst_element_change_state), (gst_element_dispose),
11747         (gst_element_finalize), (gst_element_set_loop_function):
11748         * gst/gstelement.h:
11749         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_link_src):
11750         * gst/gstthread.c: (gst_thread_class_init),
11751         (gst_thread_release_children_locks), (gst_thread_change_state):
11752         * gst/schedulers/gstbasicscheduler.c:
11753         (gst_basic_scheduler_loopfunc_wrapper),
11754         (gst_basic_scheduler_chain_wrapper),
11755         (gst_basic_scheduler_src_wrapper),
11756         (gst_basic_scheduler_remove_element):
11757         * gst/schedulers/gstoptimalscheduler.c: (schedule_group):
11758         Remove threadsafe properties. Fix elements because GObject
11759         complains when installing a property before declaring a
11760         set/get_property handler.
11761         Rearrange gstelement.h file, use STATE macros for state locks.
11762         Free mutexes in the finalize method instead of dispose.
11763
11764 2005-03-08  Wim Taymans  <wim@fluendo.com>
11765
11766         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
11767         * gst/gstthread.c: (gst_thread_release_children_locks):
11768         Added parentage check.
11769         Fix build og GstThread again.
11770
11771 2005-03-08  Wim Taymans  <wim@fluendo.com>
11772
11773         * docs/design/part-MT-refcounting.txt:
11774         * docs/design/part-conventions.txt:
11775         * docs/design/part-gstobject.txt:
11776         * docs/design/part-relations.txt:
11777         * docs/design/part-standards.txt:
11778         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
11779         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_iterate_recurse),
11780         (gst_bin_get_by_name), (gst_bin_get_by_interface),
11781         (gst_bin_iterate_all_by_interface):
11782         * gst/gstbuffer.h:
11783         * gst/gstclock.h:
11784         * gst/gstelement.c: (gst_element_class_init),
11785         (gst_element_change_state), (gst_element_set_loop_function):
11786         * gst/gstelement.h:
11787         * gst/gstiterator.c:
11788         * gst/gstobject.c: (gst_object_class_init), (gst_object_ref),
11789         (gst_object_unref), (gst_object_sink), (gst_object_dispose),
11790         (gst_object_dispatch_properties_changed), (gst_object_set_name),
11791         (gst_object_set_parent), (gst_object_unparent),
11792         (gst_object_check_uniqueness):
11793         * gst/gstobject.h:
11794         Docs updates, clean up some headers.
11795
11796 2005-03-07  Wim Taymans  <wim@fluendo.com>
11797
11798         * check/.cvsignore:
11799         * check/Makefile.am:
11800         * check/gst-libs/.cvsignore:
11801         * check/gst-libs/gdp.c: (START_TEST), (gst_object_suite), (main):
11802         * check/gst/.cvsignore:
11803         * check/gst/gstbus.c: (pound_bus_with_messages), (pull_messages),
11804         (START_TEST), (gstbus_suite), (main):
11805         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite), (main):
11806         * check/gst/gstdata.c: (START_TEST), (thread_ref), (thread_unref),
11807         (gst_data_suite), (main):
11808         * check/gst/gstiterator.c: (make_list_of_ints), (START_TEST),
11809         (add_fold_func), (gstiterator_suite), (main):
11810         * check/gst/gstobject.c: (gst_fake_object_get_type), (START_TEST),
11811         (thread_name_object), (thread_name_object_default),
11812         (gst_object_name_compare), (gst_object_suite), (main):
11813         * check/gst/gstpad.c: (START_TEST), (thread_link_unlink),
11814         (gst_pad_suite), (main):
11815         * check/gstcheck.c: (gst_check_log_message_func),
11816         (gst_check_log_critical_func), (gst_check_init):
11817         * check/gstcheck.h:
11818         * check/pipelines/simple_launch_lines.c: (setup_pipeline),
11819         (run_pipeline), (START_TEST), (simple_launch_lines_suite), (main):
11820         Added checks.
11821
11822 2005-03-07  Wim Taymans  <wim@fluendo.com>
11823
11824         * gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
11825         (gst_list_iterator_next), (gst_list_iterator_resync),
11826         (gst_list_iterator_free), (gst_iterator_new_list),
11827         (gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
11828         (gst_iterator_free), (gst_iterator_push), (filter_next),
11829         (filter_resync), (filter_uninit), (filter_free),
11830         (gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
11831         (gst_iterator_foreach), (find_custom_fold_func),
11832         (gst_iterator_find_custom):
11833         * gst/gstiterator.h:
11834         Added missing files.
11835
11836 2005-03-07  Wim Taymans  <wim@fluendo.com>
11837
11838         * Makefile.am:
11839         * configure.ac:
11840         * docs/design/part-MT-refcounting.txt:
11841         * docs/design/part-conventions.txt:
11842         * docs/design/part-gstobject.txt:
11843         * docs/design/part-relations.txt:
11844         * examples/mixer/mixer.c: (main):
11845         * examples/thread/thread.c: (eos), (main):
11846         * gst/Makefile.am:
11847         * gst/autoplug/gstsearchfuncs.c: (gst_autoplug_caps_intersect):
11848         * gst/autoplug/gstspider.c: (gst_spider_identity_plug),
11849         (gst_spider_plug_from_srcpad):
11850         * gst/autoplug/gstspideridentity.c: (gst_spider_identity_getcaps),
11851         (gst_spider_identity_change_state),
11852         (gst_spider_identity_sink_loop_type_finding):
11853         * gst/elements/gstfakesrc.c: (gst_fakesrc_loop):
11854         * gst/elements/gstidentity.c: (gst_identity_init):
11855         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_getcaps),
11856         (gst_tee_link), (gst_tee_request_new_pad), (gst_tee_chain):
11857         * gst/elements/gsttypefindelement.c: (free_entry):
11858         * gst/gst.c:
11859         * gst/gst.h:
11860         * gst/gstbin.c: (gst_bin_init), (gst_bin_get_clock_func),
11861         (gst_bin_set_clock_func), (gst_bin_auto_clock),
11862         (gst_bin_set_index), (gst_bin_set_element_sched),
11863         (gst_bin_unset_element_sched), (gst_bin_add_func), (gst_bin_add),
11864         (gst_bin_remove_func), (gst_bin_remove), (iterate_child),
11865         (gst_bin_iterate_elements), (iterate_child_recurse),
11866         (gst_bin_iterate_recurse), (gst_bin_dispose), (compare_name),
11867         (gst_bin_get_by_name), (gst_bin_get_by_name_recurse_up),
11868         (compare_interface), (gst_bin_get_by_interface),
11869         (gst_bin_iterate_all_by_interface), (gst_bin_iterate_func):
11870         * gst/gstbin.h:
11871         * gst/gstbuffer.c: (gst_buffer_get_type), (_gst_buffer_sub_free),
11872         (gst_buffer_default_free), (gst_buffer_default_copy),
11873         (gst_buffer_new), (gst_buffer_get_caps), (gst_buffer_set_caps),
11874         (gst_buffer_create_sub):
11875         * gst/gstbuffer.h:
11876         * gst/gstcaps.c: (gst_caps_get_type), (gst_caps_new_empty),
11877         (_gst_caps_free), (gst_caps_make_writable), (gst_caps_ref),
11878         (gst_caps_unref), (gst_static_caps_get),
11879         (gst_caps_remove_and_get_structure), (gst_caps_append),
11880         (gst_caps_append_structure), (gst_caps_remove_structure),
11881         (gst_caps_copy_nth), (gst_caps_set_simple),
11882         (gst_caps_set_simple_valist), (gst_caps_is_fixed_foreach),
11883         (gst_structure_is_equal_foreach), (gst_caps_is_subset),
11884         (gst_caps_structure_intersect_field), (gst_caps_intersect),
11885         (gst_caps_structure_subtract_field), (gst_caps_subtract),
11886         (gst_caps_normalize_foreach), (gst_caps_compare_structures),
11887         (gst_caps_structure_figure_out_union),
11888         (gst_caps_switch_structures), (gst_caps_do_simplify),
11889         (gst_caps_replace), (gst_caps_from_string),
11890         (gst_caps_copy_conditional):
11891         * gst/gstcaps.h:
11892         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_id_ref),
11893         (_gst_clock_id_free), (gst_clock_id_unref),
11894         (gst_clock_id_compare_func), (gst_clock_id_wait),
11895         (gst_clock_id_wait_async), (gst_clock_class_init),
11896         (gst_clock_init), (gst_clock_dispose), (gst_clock_adjust_unlocked),
11897         (gst_clock_get_time), (gst_clock_set_time_adjust),
11898         (gst_clock_set_property), (gst_clock_get_property):
11899         * gst/gstclock.h:
11900         * gst/gstcompat.h:
11901         * gst/gstcpu.c: (_gst_cpu_initialize_i386), (gst_cpu_get_flags):
11902         * gst/gstdata.c: (gst_data_is_writable), (gst_data_copy_on_write):
11903         * gst/gstdata.h:
11904         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
11905         (gst_element_requires_clock), (gst_element_provides_clock),
11906         (gst_element_set_clock), (gst_element_clock_wait),
11907         (gst_element_wait), (gst_element_set_time_delay),
11908         (gst_element_is_indexable), (gst_element_add_pad),
11909         (gst_element_add_ghost_pad), (gst_element_remove_pad),
11910         (pad_compare_name), (gst_element_get_static_pad),
11911         (gst_element_request_pad), (gst_element_get_request_pad),
11912         (gst_element_get_pad), (iterate_pad), (gst_element_iterate_pads),
11913         (gst_element_class_get_pad_template_list),
11914         (gst_element_class_get_pad_template), (gst_element_error_func),
11915         (gst_element_get_random_pad), (gst_element_get_event_masks),
11916         (gst_element_send_event), (gst_element_seek),
11917         (gst_element_get_query_types), (gst_element_query),
11918         (gst_element_get_formats), (gst_element_convert),
11919         (gst_element_is_locked_state), (gst_element_set_locked_state),
11920         (gst_element_sync_state_with_parent), (gst_element_change_state),
11921         (gst_element_finalize), (gst_element_yield),
11922         (gst_element_interrupt), (gst_element_set_scheduler),
11923         (gst_element_get_scheduler), (gst_element_set_loop_function):
11924         * gst/gstelement.h:
11925         * gst/gstevent.h:
11926         * gst/gstformat.c: (_gst_format_initialize), (gst_format_register),
11927         (gst_format_get_by_nick), (gst_format_get_details),
11928         (gst_format_iterate_definitions):
11929         * gst/gstformat.h:
11930         * gst/gstindex.c: (gst_index_gtype_resolver):
11931         * gst/gstinfo.c:
11932         * gst/gstinfo.h:
11933         * gst/gstmemchunk.c: (gst_mem_chunk_alloc), (gst_mem_chunk_alloc0),
11934         (gst_mem_chunk_free):
11935         * gst/gstobject.c: (gst_object_class_init), (gst_object_init),
11936         (gst_object_ref), (gst_object_unref), (gst_object_sink),
11937         (gst_object_replace), (gst_object_dispose), (gst_object_finalize),
11938         (gst_object_dispatch_properties_changed),
11939         (gst_object_set_name_default), (gst_object_set_name),
11940         (gst_object_get_name), (gst_object_set_name_prefix),
11941         (gst_object_get_name_prefix), (gst_object_set_parent),
11942         (gst_object_get_parent), (gst_object_unparent),
11943         (gst_object_check_uniqueness), (gst_object_save_thyself),
11944         (gst_object_restore_thyself), (gst_object_real_restore_thyself),
11945         (gst_object_set_property), (gst_object_get_property),
11946         (gst_object_get_path_string):
11947         * gst/gstobject.h:
11948         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
11949         (gst_real_pad_init), (gst_real_pad_get_property),
11950         (gst_pad_custom_new), (gst_pad_get_direction),
11951         (gst_pad_set_active), (gst_pad_is_active),
11952         (gst_pad_set_event_function), (gst_pad_is_linked),
11953         (gst_pad_link_free), (gst_pad_link_intersect),
11954         (gst_pad_link_fixate), (gst_pad_set_caps),
11955         (gst_pad_try_set_caps_nonfixed), (gst_pad_set_pad_template),
11956         (gst_pad_get_real_parent), (gst_pad_add_ghost_pad),
11957         (gst_pad_remove_ghost_pad), (_gst_pad_default_fixate_foreach),
11958         (gst_pad_link_unnegotiate), (gst_pad_proxy_fixate),
11959         (gst_pad_get_caps), (gst_pad_peer_get_caps),
11960         (gst_pad_get_pad_template_caps), (gst_pad_get_peer),
11961         (gst_pad_realize), (gst_pad_get_allowed_caps),
11962         (gst_real_pad_dispose), (gst_real_pad_finalize),
11963         (gst_pad_collectv), (gst_pad_collect_valist),
11964         (gst_pad_template_dispose), (gst_pad_template_new),
11965         (gst_pad_get_internal_links):
11966         * gst/gstpad.h:
11967         * gst/gstpipeline.c: (gst_pipeline_dispose),
11968         (gst_pipeline_change_state):
11969         * gst/gstpipeline.h:
11970         * gst/gstplugin.c:
11971         * gst/gstpluginfeature.c: (gst_plugin_feature_get_name),
11972         (gst_plugin_feature_set_rank), (gst_plugin_feature_get_rank):
11973         * gst/gstpluginfeature.h:
11974         * gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
11975         * gst/gstquery.c: (_gst_query_type_initialize),
11976         (gst_query_type_register), (gst_query_type_get_by_nick),
11977         (gst_query_type_get_details), (gst_query_type_iterate_definitions):
11978         * gst/gstquery.h:
11979         * gst/gstqueue.c: (gst_queue_link_sink), (gst_queue_link_src):
11980         * gst/gstscheduler.c: (gst_scheduler_add_element),
11981         (gst_scheduler_factory_create):
11982         * gst/gststructure.c: (gst_structure_set_parent_refcount),
11983         (gst_structure_free), (gst_structure_set_name),
11984         (gst_structure_id_set_value), (gst_structure_set_value),
11985         (gst_structure_set_valist), (gst_structure_remove_field),
11986         (gst_structure_remove_fields),
11987         (gst_structure_remove_fields_valist),
11988         (gst_structure_remove_all_fields), (gst_structure_foreach),
11989         (gst_structure_map_in_place),
11990         (gst_caps_structure_fixate_field_nearest_int),
11991         (gst_caps_structure_fixate_field_nearest_double):
11992         * gst/gststructure.h:
11993         * gst/gstsystemclock.c: (gst_system_clock_class_init),
11994         (gst_system_clock_init), (gst_system_clock_dispose),
11995         (gst_system_clock_async_thread),
11996         (gst_system_clock_id_wait_unlocked), (gst_system_clock_id_wait),
11997         (gst_system_clock_id_wait_async), (gst_system_clock_id_unschedule):
11998         * gst/gstsystemclock.h:
11999         * gst/gsttag.c: (gst_tag_list_add_value_internal),
12000         (gst_tag_list_copy_foreach), (structure_foreach_wrapper):
12001         * gst/gsttaginterface.c:
12002         * gst/gstthread.c: (gst_thread_dispose),
12003         (gst_thread_release_children_locks), (gst_thread_change_state),
12004         (gst_thread_main_loop):
12005         * gst/gsttrashstack.h:
12006         * gst/gsttypefind.c: (gst_type_find_factory_dispose):
12007         * gst/gsttypes.h:
12008         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
12009         (gst_element_request_pad), (gst_element_get_pad_from_template),
12010         (gst_element_request_compatible_pad),
12011         (gst_element_get_compatible_pad_filtered),
12012         (gst_element_get_compatible_pad), (gst_element_state_get_name),
12013         (gst_element_link_pads_filtered), (gst_element_link_filtered),
12014         (gst_element_link_many), (gst_element_link),
12015         (gst_element_link_pads), (gst_element_unlink_pads),
12016         (gst_element_unlink_many), (gst_element_unlink),
12017         (gst_pad_can_link_filtered), (gst_pad_can_link),
12018         (gst_pad_use_fixed_caps), (gst_pad_get_fixed_caps_func),
12019         (gst_object_default_error), (gst_bin_add_many),
12020         (gst_bin_remove_many), (gst_element_populate_std_props),
12021         (gst_element_class_install_std_props), (gst_buffer_merge),
12022         (gst_buffer_stamp), (intersect_caps_func), (gst_pad_proxy_getcaps),
12023         (link_fold_func), (gst_pad_proxy_setcaps):
12024         * gst/gstutils.h:
12025         * gst/gstvalue.c: (gst_value_deserialize_string):
12026         * gst/parse/grammar.y:
12027         * gst/schedulers/gstbasicscheduler.c:
12028         (gst_basic_scheduler_cothreaded_chain),
12029         (gst_basic_scheduler_chain_recursive_add),
12030         (gst_basic_scheduler_pad_link):
12031         * gst/schedulers/gstoptimalscheduler.c:
12032         (get_group_schedule_function),
12033         (gst_opt_scheduler_state_transition),
12034         (gst_opt_scheduler_add_element), (element_get_reachables_func):
12035         * libs/gst/bytestream/bytestream.c:
12036         * libs/gst/dataprotocol/dataprotocol.c:
12037         (gst_dp_header_from_buffer):
12038         * po/nb.po:
12039         * po/ru.po:
12040         * tests/threadstate/threadstate2.c: (eos):
12041         * tools/gst-compprep.c: (main):
12042         * tools/gst-inspect.c: (print_field), (print_element_flag_info),
12043         (print_pad_info), (print_children_info):
12044         * tools/gst-launch.c: (idle_func), (main):
12045         * tools/gst-md5sum.c: (idle_func), (main):
12046         * tools/gst-xmlinspect.c: (print_element_info):
12047         First THREADED backport attempt, focusing on adding locks and
12048         making sure the API is threadsafe. Needs more work. More docs
12049         follow this week.
12050
12051 2005-02-24  Andy Wingo  <wingo@pobox.com>
12052
12053         * tests/bench-complexity.scm:
12054         * tests/complexity.gnuplot: New files, good for running complexity
12055         benchmarks.
12056
12057         * tests/Makefile.am:
12058         * tests/complexity.c: New test, sets up N elements, at each level
12059         teeing into M streams per element. Eeeenteresting.
12060
12061         * tests/mass_elements.gnuplot: gnuplot file for the mass_elements
12062         benchmark. Run as gnuplot mass_elements.gnuplot > foo.ps, after
12063         running bench-mass_elements.scm.
12064
12065         * tests/bench-mass_elements.scm: New script, runs mass_elements
12066         for various numbers of identities, outputting the results to a
12067         file. Requires guile 1.6. Just for testing.
12068
12069 2005-02-23  Thomas Vander Stichele  <thomas at apestaart dot org>
12070
12071         * gst/schedulers/fairscheduler.c:
12072           compile with debug disabled
12073
12074 2005-02-22  Thomas Vander Stichele  <thomas at apestaart dot org>
12075
12076         * configure.ac:
12077           hunting season on 0.9 is now OPEN