gst/elements/gstfilesink.c: Don't use NULL pointers.
[platform/upstream/gstreamer.git] / ChangeLog
1 2005-10-06  Wim Taymans  <wim@fluendo.com>
2
3         * gst/elements/gstfilesink.c: (gst_file_sink_close_file):
4         Don't use NULL pointers.
5
6 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
7
8         * gst/gst_private.h:
9         * gst/gstbus.c:
10         * gst/gstelement.c:
11         * gst/gstinfo.c:
12         * gst/gstpluginfeature.c:
13           widen the debug category in output to fit the biggest one we have
14           add a bus category and use it
15           play with the colors
16           fix up some categories
17
18 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
19
20         * gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
21           add push activation of sink ghost pads.
22           Andye, please verify
23
24 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
25
26         * gst/gstutils.c: (gst_element_link_pads):
27           fix a bug in the case where neither element has a pad
28         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
29           add a test for that case
30
31 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
32
33         * gst/gstpad.c: (gst_pad_push), (gst_pad_push_event):
34           emit have-data before checking for peers.  This allows
35           for probe handlers to connect elements.  This helps autopluggers.
36         * check/gst/gstpad.c: (GST_START_TEST), (_probe_handler),
37         (gst_pad_suite):
38           add six checks, linked/unlinked with no/true/false probe
39
40 2005-10-04  Wim Taymans  <wim@fluendo.com>
41
42         * gst/elements/gstfakesink.c: (gst_fake_sink_get_property),
43         (gst_fake_sink_event), (gst_fake_sink_preroll),
44         (gst_fake_sink_render), (gst_fake_sink_change_state):
45         * gst/elements/gstfakesrc.c: (gst_fake_src_event_handler),
46         (gst_fake_src_get_property), (gst_fake_src_create),
47         (gst_fake_src_stop):
48         * gst/elements/gstidentity.c: (gst_identity_stop):
49         Protect last_message with lock.
50
51 2005-10-04  Edward Hervey  <edward@fluendo.com>
52
53         * gst/gstformat.h: 
54         Added precision in the comments for GST_FORMAT_DEFAULT
55
56 2005-10-04  Tim-Philipp Müller  <tim at centricular dot net>
57
58         * tools/gst-launch.c: (main):
59           Don't try to run erroneous pipelines.
60
61 2005-10-04  Julien MOUTTE  <julien@moutte.net>
62
63         * gst/gstbus.c: We don't need this header.
64
65 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
66
67         * configure.ac:
68           back to development
69
70 === release 0.9.3 ===
71
72 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
73
74         * README:
75         * configure.ac:
76           Releasing 0.9.3, "Unregistered"
77
78 2005-10-03  Andy Wingo  <wingo@pobox.com>
79
80         * gst/gstpad.c (gst_pad_activate_push): There is a race condition
81         whereby calling a pad's activatepush() function can start a thread
82         that starts to push or pull before the pad gets the FLUSHING flag
83         unset. Hack around it by holding the stream lock until the flag is
84         set. Need to replace this with a proper solution. Together with
85         the ghost pad fixes, this fixes mp3 playing/tagreading.
86
87         * docs/design/part-gstghostpad.txt: Add a note about activation of
88         proxy pads outside of ghost pads.
89
90         * gst/gstghostpad.c: Implement the ghost pad activation design.
91
92 2005-10-02  Andy Wingo  <wingo@pobox.com>
93
94         * gst/gstobject.h (GST_OBJECT_REFCOUNT_VALUE): Just use the int.
95         It is volatile, after all.
96
97         * docs/design/part-gstghostpad.txt: Flesh out activation with
98         ghost pads.
99
100         * gst/base/gstbasesrc.c (gst_base_src_init): Use
101         GST_DEBUG_FUNCPTR.
102
103 2005-10-02  Tim-Philipp Müller  <tim at centricular dot net>
104
105         * configure.ac:
106           Fix (unused) AM_CONDITIONAL tests.
107
108 2005-10-01  Alessandro Decina  <alessandro at nnva dot org>
109
110         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
111
112         * gst/gstutils.c: (gst_pad_query_convert):
113           Add assertion that makes sure src_val is >=0, just like
114           gst_query_new_convert() has. (#315895)
115
116 2005-09-30  Edward Hervey  <edward@fluendo.com>
117
118         * gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer):
119         Let's not iterate pads we're not interested in, it avoids getting 
120         sky-high refcounts on sinkpad.
121
122 2005-09-30  Wim Taymans  <wim@fluendo.com>
123
124         * gst/gstelement.c: (gst_element_set_state),
125         (gst_element_change_state):
126         Small tweak, element in ASYNC remains ASYNC.
127
128 2005-09-30  Wim Taymans  <wim@fluendo.com>
129
130         * gst/base/gstbasesink.c: (gst_base_sink_change_state):
131         Only error is an error.
132
133         * gst/gstbin.c: (gst_bin_change_state):
134         Better debugging.
135
136         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_chain):
137         Also call pad_block in pad alloc.
138
139         * gst/gstutils.c: (gst_flow_get_name):
140         Better debugging.
141
142 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
143
144         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
145         (gst_base_src_get_range):
146           Fix documentation typos. Add some more debug info.
147
148 2005-09-29  David Schleef  <ds@schleef.org>
149
150         * gst/gstplugin.c: (gst_plugin_load_file): Make some error messages
151           more end-user friendly.
152         * tools/gst-inspect.c: (main): Check if command-line argument is
153           a file and attempt to load that file as a plugin.
154
155 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
156
157         * check/gst/gstbin.c:
158         * check/states/sinks.c:
159           fix tests for the new warning
160         * check/gst/gstpipeline.c:
161           add a test for pipeline and bus interaction
162         * gst/gstelement.c:
163           elements should be NULL if they get disposed; add a warning if not
164
165 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
166
167         * gst/gstobject.c:
168           for 2.6 refcounting, make debug log more correct by printing
169           the actual refcounts at the time of swap (Wim)
170
171 2005-09-29  Andy Wingo  <wingo@pobox.com>
172
173         * gst/gstbus.c (gst_bus_remove_signal_watch): New function,
174         removes signal watches previously added via
175         gst_bus_add_signal_watch.
176         (gst_bus_add_signal_watch): Don't return the source id, just store
177         it on the bus if there wasn't an id already.
178
179         * gst/gstbus.h (GstBus): Add a couple new fields. API changes for
180         add_signal_watch and remove_signal_watch.
181
182 2005-09-29  Edward Hervey  <edward@fluendo.com>
183
184         * libs/gst/controller/gstcontroller.c: (gst_controller_new_list): 
185         Better if we actually iterate the list :)
186
187 2005-09-29  Wim Taymans  <wim@fluendo.com>
188
189         * check/gst/gstbin.c: (GST_START_TEST):
190         Change for new bus API.
191
192         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
193         (send_messages), (GST_START_TEST), (gstbus_suite):
194         Change for new bus signal API.
195
196         * gst/gstbus.c: (gst_bus_class_init), (gst_bus_have_pending),
197         (gst_bus_source_prepare), (gst_bus_source_check),
198         (gst_bus_create_watch), (gst_bus_add_watch_full),
199         (gst_bus_add_watch), (gst_bus_poll), (gst_bus_async_signal_func),
200         (gst_bus_sync_signal_handler), (gst_bus_add_signal_watch):
201         * gst/gstbus.h:
202         Remove support for multiple GSources operating on different
203         message types as it is too complex and unneeded when using
204         signals.
205         Added support for receiving signals from the bus.
206
207 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
208
209         * docs/libs/tmpl/gstdataprotocol.sgml:
210         * docs/manual/advanced-dataaccess.xml:
211         * gst/elements/gstcapsfilter.c:
212         * gst/gstutils.c:
213           rename filter-caps to caps property
214
215 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
216
217         * gst/gstvalue.c: (gst_value_deserialize_fraction):
218           More robust fraction string parsing.
219
220         * docs/pwg/appendix-porting.xml:
221           Mention gst_pad_use_explicit_caps() => gst_pad_use_fixed_caps()
222
223 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
224
225         * gst/gstcaps.c: (gst_caps_do_simplify):
226           Thou shalt not free a structure and then continue using it
227           in the next loop iteration.
228
229         * check/gst/gstcaps.c: (check_fourcc_list), (test_simplify),
230         (gst_caps_suite):
231           Add test case for caps simplification.
232
233 2005-09-29  Wim Taymans  <wim@fluendo.com>
234
235         * check/gst/gstbin.c: (GST_START_TEST):
236         Oops.
237
238 2005-09-29  Wim Taymans  <wim@fluendo.com>
239
240         * check/gst/gstbin.c: (GST_START_TEST):
241         Add bus to bin.
242
243         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init),
244         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
245         (find_element), (gst_bin_sort_iterator_next),
246         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
247         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
248         (gst_bin_change_state), (gst_bin_dispose):
249         A bin does not have a bus, it gets the bus from the parent.
250
251         * gst/gstelement.c: (gst_element_requires_clock),
252         (gst_element_provides_clock), (gst_element_is_indexable),
253         (gst_element_is_locked_state), (gst_element_change_state),
254         (gst_element_set_bus_func):
255         Small cleanups.
256
257         * gst/gstpipeline.c: (gst_pipeline_class_init),
258         (gst_pipeline_init), (gst_pipeline_provide_clock_func):
259         The pipeline provides a bus.
260
261 2005-09-28  Johan Dahlin  <johan@gnome.org>
262
263         * gst/gstmessage.c (gst_message_parse_state_changed): Use
264         gst_structure_get_enum instead of gst_structure_get_int
265
266         * gst/gststructure.c (gst_structure_get_enum): Impl.
267
268         * gst/gststructure.h (gst_structure_get_enum): Add
269
270         * docs/gst/gstreamer-sections.txt: Ditto
271
272         * gst/gstmessage.c (gst_message_new_state_changed): Use
273         GST_TYPE_STATE instead of G_TYPE_INT, mainly for language bindings
274         which does introspection.
275         Reviewed by Christian Schaller
276
277 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
278
279         * gst/gstinfo.c: (gst_debug_log_default):
280           don't do dummy g_strdup()s
281         * libs/gst/controller/gstcontroller.c:
282         (on_object_controlled_property_changed),
283         (gst_controlled_property_new), (gst_controller_new_valist),
284         (gst_controller_new_list),
285         (gst_controller_remove_properties_valist), (gst_controller_set),
286         (gst_controller_get), (gst_controller_sync_values),
287         (gst_controller_get_value_array), (_gst_controller_class_init),
288         (gst_controller_get_type):
289         * libs/gst/controller/gstcontroller.h:
290         * libs/gst/controller/gstinterpolation.c:
291         (gst_controlled_property_find_timed_value_node):
292           convert // to /**/ comments
293
294 2005-09-28  Wim Taymans  <wim@fluendo.com>
295
296         * gst/gstbus.c: (marshal_VOID__MINIOBJECT), (gst_bus_class_init),
297         (gst_bus_post), (poll_func), (gst_bus_async_signal_func),
298         (gst_bus_sync_signal_handler):
299         * gst/gstbus.h:
300         Added async-message and sync-message signals to the bus.
301         Added helper BusFunc to emit signals for all posted messages.
302
303         * gst/gstmessage.c: (gst_message_type_get_name),
304         (gst_message_type_to_quark), (gst_message_get_type):
305         * gst/gstmessage.h:
306         Register quarks for message names.
307
308 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
309
310         * docs/libs/gstreamer-libs-sections.txt:
311         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist),
312         (gst_controller_new_list):
313         * libs/gst/controller/gstcontroller.h:
314           added another constructor for language bindings
315
316 2005-09-28  Thomas Vander Stichele  <thomas at apestaart dot org>
317
318         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
319           add another check
320         * gst/gstbus.c:
321           add some doc
322         * gst/gstinfo.c: (_gst_debug_init):
323           slightly more readable color for refcount debugging
324
325 2005-09-28  Wim Taymans  <wim@fluendo.com>
326
327         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_provide_clock_func),
328         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
329         (find_element), (gst_bin_sort_iterator_next),
330         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
331         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
332         (gst_bin_change_state), (gst_bin_dispose):
333         Small doc fixes. get_clock -> provide_clock.
334
335         * gst/gstelement.c: (gst_element_class_init),
336         (gst_element_provides_clock), (gst_element_provide_clock),
337         (gst_element_get_clock), (gst_element_commit_state),
338         (gst_element_lost_state):
339         * gst/gstelement.h:
340         Make get/set_clock() symetric. Add provide_clock vmethod since
341         that is actually what this function does.
342
343         * gst/gstpipeline.c: (gst_pipeline_class_init),
344         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func),
345         (gst_pipeline_get_clock):
346         get_clock -> provide_clock.
347
348 2005-09-28  Andy Wingo  <wingo@pobox.com>
349
350         * gst/base/gstbasesrc.c (gst_base_src_unlock): Comment a bit in
351         lieu of real docs...
352
353         * gst/elements/gstfdsrc.c: Cleaned up a bit.
354
355 2005-09-28  Tim-Philipp Müller  <tim at centricular dot net>
356
357         * gst/elements/gstcapsfilter.c:
358         * gst/elements/gstfakesink.c:
359         * gst/elements/gstfakesrc.c:
360         * gst/elements/gstfdsink.c:
361         * gst/elements/gstfdsrc.c:
362         * gst/elements/gstfilesink.c:
363         * gst/elements/gstfilesrc.c:
364         * gst/elements/gstidentity.c:
365         * gst/elements/gsttee.c:
366         * gst/elements/gsttypefindelement.c:
367           Make element details static.
368
369 2005-09-28  Wim Taymans  <wim@fluendo.com>
370
371         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
372         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
373         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
374         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
375         (gst_bin_change_state), (gst_bin_dispose):
376         Some documentation updates.
377         Clean up dispose handlers.
378
379         * gst/gstobject.c: (gst_object_ref), (gst_object_unref):
380         * gst/gstpad.c: (gst_pad_dispose):
381         Clean up dispose handler.
382
383         * gst/gstpipeline.c: (gst_pipeline_change_state):
384         Removed spurious UNLOCK.
385
386 2005-09-27  Stefan Kost  <ensonic@users.sf.net>
387
388         * docs/gst/gstreamer-sections.txt:
389         * gst/base/gstbasesrc.h:
390         * gst/gstelement.h:
391         * gst/gstevent.h:
392         * gst/gstobject.h:
393         * gst/gstpad.h:
394         * gst/gstpipeline.c:
395         * gst/gstpipeline.h:
396         * gst/gstutils.h:
397         * gst/gstxml.h:
398           added two new functions to the docs
399                 documents all undocumented GstXXXFlags
400                 completed some incomplete docs 
401
402 2005-09-27  Thomas Vander Stichele  <thomas at apestaart dot org>
403
404         * gst/gstbin.c: (gst_bin_dispose):
405         * gst/gstelement.c: (gst_element_dispose):
406           remove now useless and leaky resurrection code in dispose
407         * gst/base/gstbasesrc.c: (gst_base_src_init):
408         * gst/gstelementfactory.c: (gst_element_factory_create):
409         * gst/gstobject.c: (gst_object_set_parent):
410           add some debugging
411
412 2005-09-27  Wim Taymans  <wim@fluendo.com>
413
414         * docs/design/part-TODO.txt:
415         Update TODO.
416
417         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
418         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
419         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
420         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
421         (gst_bin_change_state):
422         * gst/gstelement.h:
423         Remove element variable, we keep element info in the iterator now.
424
425 2005-09-27  Andy Wingo  <wingo@pobox.com>
426
427         * libs/gst/dataprotocol/dataprotocol.c: Fix error-checking return
428         values.
429
430 2005-09-27  Wim Taymans  <wim@fluendo.com>
431
432         * check/gst/gstbin.c: (GST_START_TEST):
433         Enable check that works now.
434
435         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
436         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
437         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
438         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
439         (gst_bin_change_state):
440         * gst/gstbin.h:
441         Redid the state change algorithm using a topological sort algo.
442         Handles all cases correctly.
443         Exposed iterator for state change order.
444
445         * gst/gstelement.h:
446         Temp storage for state changes. Need to get rid of this soon.
447
448 2005-09-27  Wim Taymans  <wim@fluendo.com>
449
450         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_do_push):
451         * gst/gstutils.c: (intersect_caps_func), (gst_pad_proxy_getcaps),
452         (link_fold_func), (gst_pad_proxy_setcaps):
453         Leak fixes, the fold functions need to unref the passed object and
454         _get_parent_*() returns ref to parent.
455
456 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
457
458         * check/gst/gstbuffer.c: (test_make_writable):
459           Plug leak in test case and fix 'make check-valgrind'
460
461 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
462
463         * gst/gstbuffer.c: (gst_subbuffer_init):
464           Set READONLY flag on subbuffers, so that gst_buffer_make_writable()
465           works correctly in all circumstances (we could have just copied
466           the parent buffer's readonly flag, but conceptually it seems
467           cleaner to mark all subbuffers as read-only). (based on patch
468           by Alessandro Decina, #314710).
469         
470         * check/gst/gstbuffer.c: (create_read_only_buffer),
471         (test_make_writable), (test_subbuffer_make_writable),
472         (gst_test_suite):
473           Add some tests for gst_buffer_make_writable().
474
475 2005-09-27  Wim Taymans  <wim@fluendo.com>
476
477         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_change_state):
478         use gst_object_has_ancestor().
479
480         * gst/gstobject.c: (gst_object_has_ancestor):
481         * gst/gstobject.h:
482         gst_object_has_ancestor() copied from gstbin.c as it is a
483         usefull function.
484
485         * tests/instantiate/create.c: (create_all_elements):
486         * tests/lat.c: (handoff_src), (handoff_sink):
487         * tests/sched/runxml.c: (main):
488         * tests/seeking/seeking1.c: (main):
489         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
490         (main):
491         Fix compilation of some tests.
492
493 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
494
495         * gst/gsterror.h:
496           Remove comment. GST_TYPE_G_ERROR is here to stay,
497           G_TYPE_ERROR has been WONTFIX'ed by the GLib folks
498           (#316961, #300610).
499
500 2005-09-26  Wim Taymans  <wim@fluendo.com>
501
502         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
503         Added check that shows error in state change order.
504
505 2005-09-26  Wim Taymans  <wim@fluendo.com>
506
507         * gst/gstbin.c: (gst_bin_change_state):
508         Make state change function use 3 queues again, we were
509         adding elements in the wrong order.
510
511         * gst/gstghostpad.c: (gst_ghost_pad_do_unlink):
512         Some debug info,
513
514         * gst/gstpad.c: (gst_pad_dispose):
515         Added some debug info first.
516
517 2005-09-26  Tim-Philipp Müller  <tim at centricular dot net>
518
519         * docs/design/draft-push-pull.txt:
520         * docs/design/part-events.txt:
521         * docs/design/part-overview.txt:
522         * docs/design/part-scheduling.txt:
523           Replace all _pull_region() with _pull_range()
524           
525 2005-09-26  Andy Wingo  <wingo@pobox.com>
526
527         * gst/gstvalue.c (_gst_value_initialize): Better fakeout.
528
529         * check/gst-libs/controller.c: Update for controller api change.
530
531         * configure.ac: 
532         * tests/Makefile.am:
533         * tests/memchunk: Remove memchunk benchmark stuff, this is taken
534         over by GLib bug 118439.
535         
536         * gst/base/gstbasesink.c (gst_base_sink_wait): Factor out the wait
537         routines to a function.
538
539         * docs/libs/gstreamer-libs-sections.txt: I am a good person today.
540
541         * libs/gst/controller/gsthelper.c:
542         * libs/gst/controller/gstcontroller.h (gst_controller_sync_values)
543         (gst_object_sync_values): Renamed from sink_values. Ugh.
544
545         * libs/gst/controller/gsthelper.c: Update for __gst_controller_key.
546
547         * libs/gst/controller/gstcontroller.c (__gst_controller_key):
548         Renamed from controller_key, as it is exported.
549
550         * gst/gstvalue.c (_gst_value_initialize): Fake out the compiler.
551
552 2005-09-26  Thomas Vander Stichele  <thomas at apestaart dot org>
553
554         * gst/Makefile.am:
555         * gst/gst.h:
556         * gst/gstpad.h:
557         * gst/gstpadtemplate.h:
558         * gst/gstquery.c:
559         * gst/gstquery.h:
560         * gst/gstqueryutils.c:
561         * gst/gstqueryutils.h:
562           remove queryutils headers after moving the two used functions
563           to gstquery.  also fixes build problem for gstsiddec
564
565 2005-09-26  Michael Smith <msmith@fluendo.com>
566
567         * tools/gst-launch.1.in:
568         Correct documentation in manpage of debug syntax
569
570 2005-09-26  Wim Taymans  <wim@fluendo.com>
571
572         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
573         (gst_base_src_is_seekable), (gst_base_src_change_state):
574         Some more debugging info.
575
576 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
577
578         * docs/gst/gstreamer-sections.txt:
579         * gst/base/gstbasetransform.h:
580         * gst/gstindex.h:
581           added more docs
582
583 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
584
585         * docs/gst/.cvsignore:
586         * docs/gst/tmpl/.cvsignore:
587         * docs/gst/tmpl/gstpipeline.sgml:
588         * docs/gst/tmpl/gstplugin.sgml:
589         * gst/gstpipeline.c:
590         * gst/gstplugin.c:
591         * gst/gstplugin.h:
592           inlined the last two docs files
593           removed the tmpl directory from cvs (no more conflicts here!)
594
595 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
596
597         * docs/gst/gstreamer-sections.txt:
598         * docs/gst/tmpl/.cvsignore:
599         * docs/gst/tmpl/gstpad.sgml:
600         * docs/gst/tmpl/gstpadtemplate.sgml:
601         * gst/Makefile.am:
602         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
603         (gst_pad_finalize), (gst_pad_set_pad_template):
604         * gst/gstpad.h:
605         * gst/gstpadtemplate.c: (gst_pad_template_get_type),
606         (gst_pad_template_class_init), (gst_pad_template_init),
607         (gst_pad_template_dispose), (name_is_valid),
608         (gst_static_pad_template_get), (gst_pad_template_new),
609         (gst_static_pad_template_get_caps), (gst_pad_template_get_caps),
610         (gst_pad_template_pad_created):
611         * gst/gstpadtemplate.h:
612           inlined two more docs
613           factored gstpadtemplate out of gstpad
614
615 2005-09-24  Tim-Philipp Müller  <tim at centricular dot net>
616
617         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
618         (test_children_state_change_order_semi_sink):
619           Fix test case: we can't rely on a fixed state change order when
620           going from READY => PAUSED because the sink might commit its 
621           new state first when the first buffer created by the source 
622           reaches the sink before the source has finished its change state.
623           (Test case still fails at times, see #316856, comment 5 onwards)
624
625 2005-09-24  Wim Taymans  <wim@fluendo.com>
626
627         * docs/design/part-events.txt:
628         * docs/design/part-gstbus.txt:
629         * docs/design/part-gstpipeline.txt:
630         * docs/design/part-messages.txt:
631         * docs/design/part-overview.txt:
632         * docs/design/part-segments.txt:
633         * gst/gstbin.c:
634         * gst/gstbuffer.c:
635         * gst/gstclock.c:
636         * gst/gstelement.c:
637         * gst/gstevent.c:
638         * gst/gstfilter.c:
639         * gst/gstiterator.c:
640         Various documentation updates.
641
642 2005-09-24  Thomas Vander Stichele  <thomas at apestaart dot org>
643
644         * gst/gstclock.h:
645           Well, that's embarassing.  Luckily we weren't using
646           GST_CLOCK_DIFF anywhere.
647
648 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
649
650         * common/gtk-doc.mak:
651           don't fail on building XML, FC4 slave shows a bunch of doc
652           missing bits that I don't get
653         * gst/gstpad.c:
654         * gst/gstpipeline.c:
655         * gst/gststructure.c:
656           some doc updates
657
658 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
659
660         * docs/design/part-gstbin.txt:
661         * docs/design/part-gstbus.txt:
662         * gst/gstbus.c:
663           Add blurb about how the bus goes into flushing mode and
664           drops all messages when its bin goes from READY into NULL 
665           state.
666
667 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
668
669         * docs/gst/gstreamer-sections.txt:
670         * gst/gststructure.c: (gst_structure_get_clock_time):
671         * gst/gststructure.h:
672           add a method to get a GstClockTime out of a structure
673
674 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
675
676         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
677         (test_children_state_change_order_semi_sink), (gst_bin_suite):
678           Added test to check state change order in bins (can still be made
679           to fail here under heavy disk load; bails out with 'Push on pad
680           fakesink:sink0, but it was not activated in push mode').
681
682         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_change_state):
683           Fix state change order when there is only a semi sink (#316856)
684
685         * gst/gstbus.c: (gst_bus_class_init):
686           Use _class_peek_parent(), not _class_ref(); fix docs to say
687           'default main context' instead of 'mainloop' where that is
688           what's meant.
689
690         * gst/gstelement.c: (gst_element_commit_state),
691         (gst_element_set_state):
692           Fix typos in debug messages
693
694 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
695
696         * docs/README:
697         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_chain):
698         * gst/gstpluginfeature.c:
699         * gst/gstutils.c:
700           various doc updates
701         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
702           change an assert into an error until it gets fixed properly
703
704 2005-09-23  Stefan Kost  <ensonic@users.sf.net>
705
706         * docs/gst/gstreamer-sections.txt:
707         * docs/gst/tmpl/.cvsignore:
708         * docs/gst/tmpl/gstelement.sgml:
709         * docs/gst/tmpl/gstinfo.sgml:
710         * docs/gst/tmpl/gstobject.sgml:
711         * gst/gstelement.c:
712         * gst/gstelement.h:
713         * gst/gstinfo.c:
714         * gst/gstinfo.h:
715         * gst/gstobject.c: (gst_object_class_init):
716         * gst/gstobject.h:
717           inlined 3 more biiiig doc files and added some missing docs on the fly
718
719 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
720
721         * check/gst/.cvsignore:
722         * check/gst/gstplugin.c: (GST_START_TEST), (gst_plugin_suite):
723         * gst/gstregistryxml.c: (load_plugin),
724         (gst_registry_xml_save_plugin):
725           put back source in registry.  add checks for find_plugin.
726         * testsuite/states/bin.c: (assert_state), (empty_bin),
727         (test_adding_one_element), (main):
728         * testsuite/states/locked.c: (main):
729           some compile/run fixes
730
731 2005-09-22  Thomas Vander Stichele  <thomas at apestaart dot org>
732
733         * check/gst/gstvalue.c: (GST_START_TEST):
734           fix leaks in the test itself
735
736 2005-09-22  Wim Taymans  <wim@fluendo.com>
737
738         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
739         (gst_base_sink_send_event), (gst_base_sink_peer_query),
740         (gst_base_sink_query):
741         Prepare for more accurate position reporting and query
742         handling.
743
744         * gst/gstelement.c: (gst_element_send_event),
745         (gst_element_set_state):
746         Add some comment.
747
748 2005-09-22  Wim Taymans  <wim@fluendo.com>
749
750         * gst/gstquery.c: (gst_query_new_segment), (gst_query_set_segment),
751         (gst_query_parse_segment):
752         * gst/gstquery.h:
753         More documentation.
754         Add segment query for future use.
755
756 2005-09-22  Wim Taymans  <wim@fluendo.com>
757
758         * gst/gstbin.c: (gst_bin_add_func):
759         Some more debug info.
760
761         * gst/gstelement.c: (gst_element_send_event):
762         Simplify send_event
763
764         * gst/gstelement.h:
765         Don't know how flags got broken.
766
767         * gst/gstquery.h:
768         Added new query.
769
770 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
771
772         * check/gst/gstvalue.c: (test_date), (gst_value_suite):
773           Add simplistic test suite for GST_TYPE_DATE serialisation and
774           deserialisation.
775
776 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
777
778         * docs/gst/gstreamer-sections.txt:
779         * gst/gststructure.c: (gst_structure_set_valist),
780         (gst_structure_get_date):
781         * gst/gststructure.h:
782         * gst/gstvalue.c: (gst_value_set_date), (gst_value_get_date),
783         (gst_date_copy), (gst_value_compare_date),
784         (gst_value_serialize_date), (gst_value_deserialize_date),
785         (gst_value_transform_date_string),
786         (gst_value_transform_string_date), (_gst_value_initialize):
787         * gst/gstvalue.h:
788           Add GST_TYPE_DATE, a boxed type that wraps GDate, and the usual
789           bunch of utility functions along with a hack that checks that
790           developers don't accidentally use G_TYPE_DATE where GST_TYPE_DATE
791           is required. Part of the grand scheme in #170777.
792
793 2005-09-22  Andy Wingo  <wingo@pobox.com>
794
795         * gst/gstconfig.h.in: Psych out gtk-doc.
796
797         * docs/gst/gstreamer-sections.txt: Add GST_HAVE_GLIB_2_8.
798
799         * check/Makefile.am (check_PROGRAMS): Add gstplugin to the tests.
800
801         * tools/gst-inspect.c (print_element_list): Plug some
802         inconsequential leaks.
803
804         * gst/gstregistry.c (gst_registry_get_default): Doc.
805
806         * check/gst/gstplugin.c: 
807         * gst/gsttypefindfactory.c (gst_type_find_factory_call_function):
808         * gst/gstelementfactory.c (gst_element_factory_create): 
809         * gst/gstindexfactory.c (gst_index_factory_create): Update for
810         refcount changes.
811
812         * gst/gstpluginfeature.c (gst_plugin_feature_list_free): Doc.
813         (gst_plugin_feature_load): Doc, don't eat refs.
814
815         * gst/gstplugin.c (gst_plugin_load): Doc, don't eat refs.
816         (gst_plugin_list_free): Doc.
817         (gst_plugin_load_file): Doc updates.
818
819         * gst/gstbuffer.c (gst_buffer_get_caps): Like all our _get
820         accessors returning refcounted objects, return a ref.
821
822         * check/gst/gstbuffer.c (GST_START_TEST): Use refcount-idempotent
823         accessor for caps. IDEMPOTENCE. Oh yes.
824
825 2005-09-21  Francis Labonte  <francis_labonte at hotmail dot com>
826
827         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
828
829         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
830         (_gst_debug_register_funcptr):
831           Add mutex to serialise access to the hash table with
832           the function pointer => function name string mapping;
833           make that hash table static scope (#316809).
834
835         * gst/registries/.cvsignore:
836           Remove left-over file.
837
838 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
839
840         * docs/pwg/appendix-porting.xml:
841           And something about newsegment events and caps-on-buffers to
842           the porting guide (feel free to improve).
843
844 2005-09-21  Andy Wingo  <wingo@pobox.com>
845
846         * check/gst/gstutils.c (test_buffer_probe_n_times): Add tests for
847         data and event probes on the same pad.
848         (test_buffer_probe_once): Test that removing probes from within
849         the probe functions works.
850
851 2005-09-21  Andy Wingo  <wingo@pobox.com>
852
853         * check/gst/gstutils.c: New file.
854         (test_buffer_probe_n_times): A simple buffer probe test. More to
855         come, foolios.
856
857         * gst/gstutils.c (gst_pad_add_buffer_probe): Connect to
858         have-data::buffer, not have-data.
859         (gst_pad_add_event_probe): Likewise for have-data::event.
860         (gst_pad_add_data_probe): More docs. The part about 'resolving the
861         peer' isn't quite right yet though.
862         (gst_pad_remove_buffer_probe, gst_pad_remove_event_probe) 
863         (gst_pad_remove_data_probe): Change to take the guint handler_id
864         as their arg, not the function+data, which is more glib-like.
865
866         * gst/gstpad.c (gst_pad_emit_have_data_signal): Add a detail to
867         the signal emission to indicate if the data is a buffer or an
868         event.
869         (gst_pad_get_type): Initialize buffer and event quarks.
870         (gst_pad_class_init): have-data is now a detailed signal, yes it
871         is.
872
873 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
874
875         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
876         * gst/gstutils.c: (gst_util_set_value_from_string),
877         (gst_util_set_object_arg):
878           Don't put functional code in g_return_if_fail() or
879           g_return_val_if_fail() statements, otherwise things will 
880           break when G_DISABLE_CHECKS is defined during compilation.
881
882 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
883
884         * docs/gst/tmpl/.cvsignore:
885         * docs/gst/tmpl/gstvalue.sgml:
886         * gst/gstvalue.c:
887         * gst/gstvalue.h:
888           inlied another one and added  some obvious docs
889
890 2005-09-21  Wim Taymans  <wim@fluendo.com>
891
892         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init),
893         (gst_fdsrc_init), (gst_fdsrc_start), (gst_fdsrc_stop),
894         (gst_fdsrc_unlock), (gst_fdsrc_set_property),
895         (gst_fdsrc_get_property), (gst_fdsrc_create):
896         * gst/elements/gstfdsrc.h:
897         Properly implement fdsrc. Removed signal and timeout,
898         better implemented somewhere else.
899
900 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
901
902         * docs/gst/tmpl/.cvsignore:
903         * docs/gst/tmpl/gstimplementsinterface.sgml:
904         * gst/gstinterface.c:
905           inlined more docs
906
907 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
908
909         * docs/gst/gstreamer-sections.txt:
910         * docs/gst/tmpl/.cvsignore:
911         * docs/gst/tmpl/gstenumtypes.sgml:
912           remove obsolete doc file
913
914 2005-09-21  David Schleef  <ds@schleef.org>
915
916         * gst/gstelementfactory.c: (gst_element_factory_make): Drink a
917         little beer, fix a little leak.
918
919 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
920
921         * docs/gst/gstreamer-docs.sgml:
922         * docs/gst/gstreamer-sections.txt:
923         * docs/gst/tmpl/.cvsignore:
924         * gst/Makefile.am:
925         * gst/gst.h:
926         * gst/gstbin.c:
927         * gst/gstelement.h:
928         * gst/gstindex.c: (gst_index_class_init):
929         * gst/gstindex.h:
930         * gst/gstindexfactory.c: (gst_index_factory_get_type),
931         (gst_index_factory_class_init), (gst_index_factory_init),
932         (gst_index_factory_finalize), (gst_index_factory_new),
933         (gst_index_factory_destroy), (gst_index_factory_find),
934         (gst_index_factory_create), (gst_index_factory_make):
935         * gst/gstindexfactory.h:
936         * gst/gstpluginfeature.c:
937         * gst/gstpluginfeature.h:
938         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
939           more docs inlined, splitted gstindex.{c,h}
940
941 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
942
943         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
944           fix a leak
945
946 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
947
948         * gst/elements/gstfilesink.c: (gst_file_sink_init):
949           Set sync to FALSE by default.
950
951 2005-09-20  Wim Taymans  <wim@fluendo.com>
952
953         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
954         (gst_base_sink_init):
955         Make sync property settable from subclass.
956
957         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
958         (gst_fake_sink_change_state):
959         Set sync to FALSE by default.
960
961 2005-09-20  Wim Taymans  <wim@fluendo.com>
962
963         * gst/gstbus.c: (poll_func), (poll_timeout), (gst_bus_poll):
964         * tools/gst-launch.c: (main):
965         The timeout handler should have lower priority than the source
966         so we don't timeout before popping a message with 0 timeout.
967         Dump error messages after failed state change.
968
969 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
970
971         * tools/gst-inspect.c: (print_element_properties_info):
972           Fix two typos.
973
974 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
975
976         * check/gst/gstevent.c:
977         * gst/elements/gstfakesink.c:
978         * gst/elements/gstfakesink.h:
979           remove the sync property from fakesink.
980           has the side effect of setting sync TRUE
981           for fakesink, which is a change.  Anyone who knows how
982           to fix this nicely in a GObject-y way, feel free.
983
984 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
985
986         * docs/gst/gstreamer-docs.sgml:
987           remove probe refsection
988
989 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
990
991         * check/Makefile.am:
992           disable valgrinding the controller test again
993         * docs/gst/gstreamer-sections.txt:
994           update for api-changes
995
996 2005-09-20  Wim Taymans  <wim@fluendo.com>
997
998         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
999         (gst_base_sink_set_property), (gst_base_sink_get_property),
1000         (gst_base_sink_do_sync):
1001         * gst/base/gstbasesink.h:
1002         Added sync property to basesink to disable clock sync.
1003
1004 2005-09-20  Andy Wingo  <wingo@pobox.com>
1005
1006         * gst/gstelementfactory.c (gst_element_factory_create): Avoid
1007         eating the caller's refcount.
1008
1009         * gst/gstobject.h (GST_OBJECT_REFCOUNT) 
1010         (GST_OBJECT_REFCOUNT_VALUE): Conditionally fondle the right
1011         refcount.
1012
1013         * gst/gstconfig.h.in (GST_HAVE_GLIB_2_8):
1014         * configure.ac (GST_HAVE_GLIB_2_8_DEFINE): Make the availability
1015         of GLib 2.8 public, so we can know which refcount to check in
1016         tests.
1017
1018         * gst/gstobject.c: Use the GST_HAVE_GLIB_2_8 define.
1019         (gst_object_init): Only set the gst refcount if we're going ahead
1020         with the refcount hack.
1021
1022 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
1023
1024         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
1025         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
1026           more leaks plumbed, added more debug-logging
1027         * gst/gstmacros.h:
1028           whitespace fix
1029
1030 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
1031
1032         * gst/gstmessage.c:
1033           remove include of gstmemchunk.h
1034
1035 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
1036
1037         * gst/gstclock.c: (_gst_clock_id_free):
1038           Commit from the Political Party For More Atomic CVS Commits,
1039           so that people don't waste too much of their day fishing
1040           out obvious leaks out of massive commits.
1041           Oh, and fix a pretty damn obvious leak in the memchunk
1042           removal code.
1043
1044 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
1045
1046         * check/Makefile.am:
1047         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
1048           plug mem-leak, re-add to valgrindable tests
1049
1050 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
1051
1052         * gst/gstplugin.h:
1053           unbreak the build for those who have chronic arthritis
1054           and typing "make check" is just too taxing on the hands
1055
1056 2005-09-20  Andy Wingo  <wingo@pobox.com>
1057
1058         * gst/gst.h: Re-add marshal to gst.h's include list -- if we
1059         really want it out, you should fix plugins at the same time.
1060
1061 2005-09-19  Stefan Kost  <ensonic@users.sf.net>
1062
1063         * configure.ac:
1064         * docs/gst/gstreamer-sections.txt:
1065         * gst/gstobject.c:
1066           added missing symbols to api docs
1067           disable ref-count hack if we have glib >= 2.8
1068
1069 2005-09-19  David Schleef  <ds@schleef.org>
1070
1071         * docs/gst/Makefile.am: Ignore a few more internal headers
1072         * docs/gst/gstreamer-docs.sgml: Remove old sections
1073         * docs/gst/gstreamer-sections.txt: Remove old sections
1074         * docs/gst/tmpl/gstobject.sgml: update
1075         * docs/gst/tmpl/gstplugin.sgml: update
1076         * docs/gst/tmpl/gstpluginfeature.sgml: update
1077         * docs/random/ds/0.9-suggested-changes: update.
1078         * gst/Makefile.am: remove memchunk and trashstack, since they're
1079           not used.
1080         * gst/gst.c: (gst_deinit): rename gst_registry_deinit to _cleanup
1081         * gst/gst.h: don't include some headers
1082         * gst/gstchildproxy.c: add gstmarshal.h
1083         * gst/gstclock.c: Don't use memchunks
1084         * gst/gstminiobject.c: Add some docs
1085         * gst/gstobject.c: remove DESTROYED flag, since it's redundant
1086         * gst/gstobject.h: same
1087         * gst/gstplugin.c: include gstmacros.h
1088         * gst/gstplugin.h: don't include gstmacros.h, since it's private
1089         * gst/gstquery.c: don't use memchunks
1090         * gst/gstregistry.c: rename gst_registry_deinit()
1091         * gst/gstregistry.h: same
1092
1093 2005-09-19  David Schleef  <ds@schleef.org>
1094
1095         * docs/libs/gstreamer-libs-docs.sgml: Remove docs for getbits
1096         * docs/libs/gstreamer-libs-sections.txt:
1097         * docs/libs/tmpl/gstgetbits.sgml:
1098         * docs/libs/tmpl/gstputbits.sgml:
1099
1100 2005-09-19  Tim-Philipp Müller  <tim at centricular dot net>
1101
1102         * win32/gstenumtypes.c:
1103         * win32/gstenumtypes.h:
1104           Update.
1105
1106 2005-09-19  Wim Taymans  <wim@fluendo.com>
1107
1108         * gst/gstpipeline.c: (do_pipeline_seek), (gst_pipeline_send_event):
1109         Automatically PAUSE and RESUME a pipeline when a flushing seek
1110         is performed.
1111
1112 2005-09-19  Andy Wingo  <wingo@pobox.com>
1113
1114         * gst/gstregistry.h: Spacing fixen.
1115
1116 2005-09-19  Wim Taymans  <wim@fluendo.com>
1117
1118         * gst/base/gstbasesrc.c: (gst_base_src_change_state):
1119         Handle state change failure more correctly.
1120
1121 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
1122
1123         * check/Makefile.am:
1124         * check/pipelines/cleanup.c: (run_pipeline):
1125         * check/pipelines/simple_launch_lines.c: (run_pipeline),
1126         (GST_START_TEST):
1127           enable cleanup again after fixing the leak
1128         * docs/README:
1129           some more info on docs
1130
1131 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
1132
1133         * check/Makefile.am:
1134           re-enable tests now that leaks are plugged
1135         * check/gst/gst.c:
1136         * check/gst/gstbin.c:
1137         * check/gst/gstpipeline.c:
1138           add some more tests while fixing leaks
1139         * common/check.mak:
1140           make sure binaries are uptodate when valgrinding/gdbing
1141         * gst/gst.c:
1142         * gst/gstelementfactory.c:
1143           remove a ref too many, and add a FIXME for when we get
1144           round to disposing of classes
1145         * gst/gstplugin.c:
1146           fix the refcounting when loading a plugin from a file and
1147           the code pretends that the pointer is the same even though
1148           of course it can change
1149         * gst/gstpluginfeature.c:
1150           unref plugins marked cached (a bit confusing as a name)
1151           as the docs state should be done
1152           various doc additions to explain refcounting
1153         * gst/gstregistry.c:
1154         * gst/gstregistryxml.c:
1155           debugging
1156
1157 2005-09-19  Wim Taymans  <wim@fluendo.com>
1158
1159         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
1160         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
1161         (send_messages), (GST_START_TEST), (gstbus_suite):
1162         * check/gst/gstpipeline.c: (GST_START_TEST):
1163         * check/pipelines/cleanup.c: (run_pipeline):
1164         * check/pipelines/simple_launch_lines.c: (run_pipeline),
1165         (GST_START_TEST):
1166         * gst/gstbus.c: (gst_bus_have_pending), (gst_bus_source_prepare),
1167         (gst_bus_source_check), (gst_bus_source_dispatch),
1168         (gst_bus_create_watch), (gst_bus_add_watch_full),
1169         (gst_bus_add_watch), (poll_func), (poll_timeout), (gst_bus_poll):
1170         * gst/gstbus.h:
1171         * tools/gst-launch.c: (event_loop):
1172         * tools/gst-md5sum.c: (event_loop):
1173         GstBusHandler -> GstBusFunc, return value has the same meaning as
1174         any other GSource (FALSE == remove source).
1175         _add_watch() and _add_watch_full() now take a MessageType mask to
1176         only handle specific types of messages.
1177         _poll() returns the GstMessage instead of the message type to avoid
1178         race conditions.
1179         _have_pending() takes a MessageType mask now too.
1180         Added testsuite for multiple bus watches.
1181         Fix testsuites and applications for new bus API.
1182
1183 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
1184
1185         * check/Makefile.am:
1186           mark a bunch of the tests as to fix until we fix them
1187
1188 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1189
1190         * common/check.mak:
1191           use GST_PLUGIN settings for valgrind tests as well, so we're
1192           valgrinding the correct thing
1193         * gst/gst.c: (init_post):
1194           plug another leak
1195
1196 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1197
1198         * gst/gst.c: (init_post), (gst_deinit):
1199         * gst/gstelementfactory.c: (gst_element_factory_class_init),
1200         (gst_element_factory_finalize), (gst_element_factory_cleanup):
1201         * gst/gstindex.c: (gst_index_factory_class_init),
1202         (gst_index_factory_finalize):
1203         * gst/gstobject.c: (gst_object_dispose):
1204         * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_class_init),
1205         (gst_plugin_load_file), (gst_plugin_desc_free):
1206         * gst/gstpluginfeature.c: (gst_plugin_feature_class_init),
1207         (gst_plugin_feature_finalize):
1208         * gst/gstregistry.c: (gst_registry_class_init),
1209         (gst_registry_init), (gst_registry_finalize),
1210         (gst_registry_get_default), (gst_registry_deinit):
1211         * gst/gstregistry.h:
1212         * gst/gstregistryxml.c: (load_feature), (load_plugin):
1213           various cleanups and memleak plugging.  make valgrind is happy now.
1214
1215 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1216
1217         * common/check.mak:
1218           add a check-valgrind target
1219
1220 2005-09-18  David Schleef  <ds@schleef.org>
1221
1222         * tools/gst-inspect.c: Revert the GOption code.
1223
1224 2005-09-17  David Schleef  <ds@schleef.org>
1225
1226         * check/Makefile.am: Fix environment variables.
1227         * check/gst/gstplugin.c: Fix for API changes.
1228         * tools/gst-inspect.c: Fix for API changes.
1229         * tools/gst-xmlinspect.c: Fix for API changes.
1230         * gst/gstelementfactory.c:
1231         * gst/gstplugin.c:
1232         * gst/gstplugin.h:
1233         * gst/gstpluginfeature.c:
1234         * gst/gstpluginfeature.h:
1235         * gst/gstregistry.c:
1236         * gst/gstregistry.h:
1237         * gst/gstregistryxml.c:
1238         * gst/gsttypefind.c:
1239         * gst/gsttypefindfactory.c:
1240         * gst/indexers/gstfileindex.c:
1241         * gst/indexers/gstmemindex.c:
1242         * gst/schedulers/Makefile.am:
1243           Change registry to keep track of both plugins and features,
1244           removing the feature tracking from plugins themselves.
1245
1246 2005-09-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1247
1248         * check/Makefile.am:
1249         * tools/gst-register.1.in:
1250           remove gst-register
1251
1252 2005-09-15  David Schleef  <ds@schleef.org>
1253
1254         * check/gst/gstplugin.c:
1255         * gst/gstelementfactory.c:
1256         * gst/gstplugin.c:
1257         * gst/gstpluginfeature.c:
1258         * gst/gstregistry.c:
1259           Getting tired of debugging.  Disabled all the unreffing of
1260           plugins and features, which fixes the segfaults, but of
1261           course leaks like crazy.  At least playbin works.
1262
1263 2005-09-15  David Schleef  <ds@schleef.org>
1264
1265         * check/gst/gstplugin.c: (register_check_elements),
1266         (GST_START_TEST), (peek), (suggest), (gst_plugin_suite):
1267         More testing
1268         * gst/elements/gsttypefindelement.c: Fix refcounting.
1269         * gst/gsttypefind.c:
1270         * gst/gsttypefindfactory.c:
1271         * gst/gsttypefindfactory.h:
1272
1273 2005-09-15  David Schleef  <ds@schleef.org>
1274
1275         * gst/gstindex.c: get refcounting correct.
1276         * gst/gstregistry.c: Handle the case where a feature/plugin is
1277           not found.
1278
1279 2005-09-15  David Schleef  <ds@schleef.org>
1280
1281         * check/Makefile.am:
1282         * check/gst/gstplugin.c: Add test
1283         * gst/gstplugin.c: Fix problems noticed by testsuite
1284         * gst/gstplugin.h:
1285         * gst/gstregistry.c: 
1286         * gst/gstregistry.h:
1287
1288 2005-09-15  David Schleef  <ds@schleef.org>
1289
1290         * gst/gstplugin.c: Implement semi-decent recounting and locking
1291           in plugins and plugin features.
1292         * gst/gstplugin.h:
1293         * gst/gstpluginfeature.c:
1294         * gst/gstpluginfeature.h:
1295         * gst/gstregistry.c:
1296
1297 2005-09-15  Michael Smith <msmith@fluendo.com>
1298
1299         * gst/gstregistry.c: (gst_registry_get_feature_list):
1300           Implement this. Makes oggdemux work; decodebin still broken.
1301
1302 2005-09-14  David Schleef  <ds@schleef.org>
1303
1304         * configure.ac: Add -no-undefined to GST_PLUGIN_LDFLAGS (bug
1305           #316076)
1306         * gst/base/Makefile.am: Add -no-undefined to LDFLAGS for libs
1307         * gst/check/Makefile.am:
1308         * libs/gst/controller/Makefile.am:
1309         * libs/gst/dataprotocol/Makefile.am:
1310
1311 2005-09-14  David Schleef  <ds@schleef.org>
1312
1313         * configure.ac: Remove getbits library.  Nothing uses it, and
1314           it should be in something like liboil if someone did want
1315           to use it.
1316         * libs/gst/Makefile.am:
1317         * libs/gst/getbits/Makefile.am:
1318         * libs/gst/getbits/gbtest.c:
1319         * libs/gst/getbits/getbits.c:
1320         * libs/gst/getbits/getbits.h:
1321         * libs/gst/getbits/gstgetbits_generic.c:
1322         * libs/gst/getbits/gstgetbits_i386.s:
1323         * libs/gst/getbits/gstgetbits_inl.h:
1324
1325 2005-09-14  David Schleef  <ds@schleef.org>
1326
1327         * gst/Makefile.am: Dist glib-compat.h
1328
1329 2005-09-14  David Schleef  <ds@schleef.org>
1330
1331         * configure.ac: Remove gst/registries, since it's no longer used.
1332         * gst/registries/Makefile.am:
1333         * gst/registries/gstlibxmlregistry.c:
1334         * gst/registries/gstlibxmlregistry.h:
1335         * gst/registries/gstxmlregistry.c:
1336         * gst/registries/gstxmlregistry.h:
1337         * gst/registries/registrytest.c:
1338
1339 2005-09-14  David Schleef  <ds@schleef.org>
1340
1341         * gst/glib-compat.h:
1342         * gst/gstregistryxml.c:
1343           Convergence is near.  Seriously.
1344
1345 2005-09-14  David Schleef  <ds@schleef.org>
1346
1347         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
1348         * gst/glib-compat.h:
1349           Attempt #4 to appease the buildbots.
1350
1351 2005-09-14  David Schleef  <ds@schleef.org>
1352
1353         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
1354           Attempt #3.
1355
1356 2005-09-14  David Schleef  <ds@schleef.org>
1357
1358         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
1359         Attempt #2.
1360
1361 2005-09-14  David Schleef  <ds@schleef.org>
1362
1363         * gst/Makefile.am: Oh yeah, libgstreamer.so needs to contain
1364           the new functions.
1365
1366 2005-09-14  David Schleef  <ds@schleef.org>
1367
1368         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
1369         * gst/glib-compat.h: Add some functions that are in newer versions
1370           of glib than we care to require.
1371         * gst/gstregistryxml.c: Use them.
1372
1373 2005-09-14  David Schleef  <ds@schleef.org>
1374
1375         * po/POTFILES.in: remove gst-register.c
1376
1377 2005-09-14  David Schleef  <ds@schleef.org>
1378
1379         * docs/gst/gstreamer-docs.sgml:
1380         * docs/gst/gstreamer-sections.txt:
1381         * docs/gst/gstreamer.types:
1382         * docs/gst/tmpl/gstelement.sgml:
1383         * docs/gst/tmpl/gstplugin.sgml:
1384         * docs/gst/tmpl/gstpluginfeature.sgml:
1385           Documentation updates for registry changes.
1386
1387 2005-09-14  David Schleef  <ds@schleef.org>
1388
1389         * gst/gstregistryxml.c: Copy g_mkdir_with_parent() from glib,
1390           because we don't require glib-2.8.
1391
1392 2005-09-14  David Schleef  <ds@schleef.org>
1393
1394         * gst/gstregistryxml.c: Added.  Essentially moved out of the
1395           registries directory.
1396
1397 2005-09-14  David Schleef  <ds@schleef.org>
1398
1399         * check/Makefile.am:
1400         * check/generic/states.c:
1401         * gst/Makefile.am:
1402         * gst/gst.c:
1403         * gst/gst.h:
1404         * gst/gst_private.h:
1405         * gst/gstelementfactory.c:
1406         * gst/gstindex.c:
1407         * gst/gstinfo.c:
1408         * gst/gstplugin.c:
1409         * gst/gstplugin.h:
1410         * gst/gstpluginfeature.c:
1411         * gst/gstpluginfeature.h:
1412         * gst/gstregistry.c:
1413         * gst/gstregistry.h:
1414         * gst/gstregistrypool.c: remove
1415         * gst/gstregistrypool.h: remove
1416         * gst/gsttypefind.c:
1417         * gst/gsttypefindfactory.c:
1418         * gst/gsturi.c:
1419         * tools/Makefile.am:
1420         * tools/gst-compprep.c:
1421         * tools/gst-inspect.c:
1422         * tools/gst-register.c: remove
1423         * tools/gst-xmlinspect.c:
1424           Registry rewrite.  Changes registry from being a file created
1425           by a tool into a simple cache file created automatically by 
1426           libgstreamer.  Removed gst-register (because it's no longer
1427           needed).  Remove registry pools, because we only have one
1428           registry implementation (XML).  Fix up other subsystems as
1429           necessary.
1430
1431 2005-09-13  Michael Smith <msmith@fluendo.com>
1432
1433         * gst/gstconfig.h.in:
1434           Don't Use windows linking attributes for MinGW. Fixes #316157
1435
1436 2005-09-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1437
1438         * gst/gstutils.c: (set_state_async_thread_func),
1439         (gst_element_set_state_async):
1440           Apparently people think it's better if this function doesn't
1441           try to set the state to whatever state was asked for on the first
1442           call to this function for any object.  Seriously.
1443
1444 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1445
1446         * check/gst/gstpipeline.c: (GST_START_TEST):
1447         * docs/gst/gstreamer-sections.txt:
1448         * gst/gstutils.c: (set_state_async_thread_func),
1449         (gst_element_set_state_async):
1450         * gst/gstutils.h:
1451           add a "gst_element_set_state_async" method that
1452           sets the state and starts a thread to make sure the state
1453           change completes as best as it can
1454
1455 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1456
1457         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
1458           codify design+behaviour in testsuite after discussion
1459
1460 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1461
1462         * docs/gst/tmpl/gstelement.sgml:
1463         * docs/manual/appendix-quotes.xml:
1464           add a quote
1465         * gst/gstelement.c: (gst_element_set_state):
1466           add some debug
1467
1468 2005-09-12  Jan Schmidt  <thaytan@mad.scientist.com>
1469
1470         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
1471         (gst_base_transform_prepare_output_buf),
1472         (gst_base_transform_handle_buffer):
1473         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip),
1474         (gst_capsfilter_prepare_buf):
1475           Remove the requirement for sub-classes to call the parent
1476           implementation of prepare_output_buffer with a wrapper function.
1477           
1478         * gst/gsttaglist.h:
1479         * gst/gsttagsetter.h:
1480           Fix #define wrapper
1481
1482 2005-09-11  Stefan Kost  <ensonic@users.sf.net>
1483
1484         * docs/gst/gstreamer-sections.txt:
1485           more doc cleanups
1486
1487 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
1488
1489         * docs/gst/gstreamer-sections.txt:
1490         * docs/gst/tmpl/gstelement.sgml:
1491         * docs/gst/tmpl/gstplugin.sgml:
1492         * gst/gstminiobject.c:
1493         * gst/gstvalue.h:
1494           docs now stop throwing warnings
1495
1496 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
1497
1498         * docs/gst/gstreamer-sections.txt:
1499         * docs/gst/gstreamer.types:
1500         * docs/gst/tmpl/gstpad.sgml:
1501         * docs/gst/tmpl/gsttypes.sgml:
1502         * gst/base/gstadapter.h:
1503         * gst/base/gstbasesink.h:
1504         * gst/base/gstbasesrc.h:
1505         * gst/gstbin.h:
1506         * gst/gstbuffer.h:
1507         * gst/gstbus.h:
1508         * gst/gstcaps.h:
1509         * gst/gstclock.h:
1510         * gst/gstelement.h:
1511         * gst/gstevent.h:
1512         * gst/gstmessage.h:
1513         * gst/gstpad.h:
1514         * gst/gststructure.c:
1515         * gst/registries/gstlibxmlregistry.h:
1516           various documentation fixes
1517
1518 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
1519
1520         * docs/gst/gstreamer-sections.txt:
1521         * docs/gst/tmpl/gstvalue.sgml:
1522           rearrange gstvalue section
1523         * gst/gstutils.c: (gst_element_state_get_name):
1524           NONE -> VOID
1525         * gst/gstvalue.c: (_gst_value_initialize):
1526         * gst/gstvalue.h:
1527           doc updates
1528
1529 2005-09-10  Jan Schmidt  <thaytan@mad.scientist.com>
1530
1531         * check/gst-libs/controller.c:
1532           Header include fix.
1533         * gst/base/gstbasetransform.c:
1534         (gst_base_transform_default_prepare_buf),
1535         (gst_base_transform_handle_buffer):
1536         * gst/base/gstbasetransform.h:
1537           Some more basetransform changes and fixes to enable sub-classes
1538           that modify buffer metadata only.
1539         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
1540         (gst_capsfilter_init), (gst_capsfilter_transform_ip),
1541         (gst_capsfilter_prepare_buf):
1542           If the output pad has fixed allowed caps and input buffers 
1543           don't have any, set the fixed caps on outgoing buffers.
1544
1545 2005-09-09  Jan Schmidt  <thaytan@mad.scientist.com>
1546         * check/elements/identity.c: (GST_START_TEST):
1547           Make the error a little clearer when the test fails because
1548           identity made a copy of the buffer.
1549         * docs/gst/gstreamer-sections.txt:
1550           New symbols in gstbasetransform.h
1551         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
1552         (gst_base_transform_init), (gst_base_transform_transform_size),
1553         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
1554         (gst_base_transform_default_prepare_buf),
1555         (gst_base_transform_get_unit_size),
1556         (gst_base_transform_buffer_alloc),
1557         (gst_base_transform_handle_buffer), (gst_base_transform_chain),
1558         (gst_base_transform_change_state),
1559         (gst_base_transform_set_passthrough),
1560         (gst_base_transform_set_in_place),
1561         (gst_base_transform_is_in_place):
1562         * gst/base/gstbasetransform.h:
1563           Change BaseTransform to separate in_place operate from same_caps
1564           output. in_place implies that the element can perform the transform
1565           on incoming buffers in-place, even if the caps on the output are
1566           different.
1567           Sub-class elements can now implement special buffer allocation
1568           methods for outgoing buffers if they wish to.
1569           Big documentation addition.
1570         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip):
1571         * gst/elements/gstelements.c:
1572           Changes for basetransform modifications.
1573         * gst/elements/Makefile.am:
1574         * gst/elements/gstfdsrc.c: (gst_fdsrc_init), (gst_fdsrc_create):
1575           Compile fix. Extra debug output.
1576
1577 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
1578
1579         * check/gst/gstpad.c: (GST_START_TEST), (name_is_valid),
1580         (gst_pad_suite):
1581           add tests for valid pad naming
1582         * gst/check/gstcheck.c: (gst_check_log_message_func),
1583         (gst_check_log_critical_func):
1584           add ASSERT_WARNING
1585           remove printing of code, it is fragile when the code contains
1586           % and the line number is enough info
1587         * gst/check/gstcheck.h:
1588         * gst/gstpad.c: (gst_pad_template_new):
1589           fix memleaks
1590
1591 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
1592
1593         * configure.ac:
1594           say what CHECK flags we use
1595         * docs/libs/gstreamer-libs.types:
1596         * libs/gst/controller/Makefile.am:
1597         * libs/gst/controller/gst-controller.c:
1598         * libs/gst/controller/gst-controller.h:
1599         * libs/gst/controller/gst-helper.c:
1600         * libs/gst/controller/gst-interpolation.c:
1601         * libs/gst/controller/gstcontroller.c:
1602         * libs/gst/controller/gsthelper.c:
1603         * libs/gst/controller/gstinterpolation.c:
1604         * tools/gst-inspect.c: (print_plugin_info):
1605           we don't use dashes in header names
1606
1607 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
1608
1609         * check/Makefile.am:
1610         * check/gst/.cvsignore:
1611         * check/gst/gstpipeline.c: (pop_messages), (GST_START_TEST),
1612         (gst_pipeline_suite), (main):
1613           adding a test for pipelines and state changes
1614         * gst/gstutils.c: (get_state_func):
1615           add some debugging
1616         * gstreamer.spec.in:
1617           fix up spec file
1618
1619 2005-09-08  Michael Smith <msmith@fluendo.com>
1620
1621         * gst/elements/gstfilesrc.c: (gst_file_src_map_region),
1622         (gst_file_src_map_small_region), (gst_file_src_create_mmap),
1623         (gst_file_src_is_seekable), (gst_file_src_get_size),
1624         (gst_file_src_start):
1625         * gst/elements/gstfilesrc.h:
1626           Various fixes for unseekable, unmmapable, and non-normal files, so
1627           that fallback to read() rather than mmap() works.
1628         * gst/gstevent.c: (gst_event_new_newsegment):
1629           Allow newsegment events with segment_start == segment_end, as will
1630           correctly happen if you use filesrc on a zero-size file, for
1631           example.
1632
1633 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
1634
1635         * gst/gstplugin.c: (gst_plugin_load_file):
1636           Call g_module_close when we don't load the module
1637
1638         * gst/registries/gstlibxmlregistry.c:
1639         (gst_xml_registry_get_property):
1640           Port leak fix from 0.8
1641
1642 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
1643
1644         * docs/gst/gstreamer-docs.sgml:
1645         * docs/gst/tmpl/.cvsignore:
1646         * docs/gst/tmpl/gsttrace.sgml:
1647         * docs/gst/tmpl/gsttrashstack.sgml:
1648         * gst/Makefile.am:
1649         * gst/gst.h:
1650         * gst/gstelement.h:
1651         * gst/gstevent.h:
1652         * gst/gstmessage.c:
1653         * gst/gstmessage.h:
1654         * gst/gsttag.c:
1655         * gst/gsttag.h:
1656         * gst/gsttaginterface.c:
1657         * gst/gsttaginterface.h:
1658         * gst/gsttaglist.c:
1659         * gst/gsttaglist.h:
1660         * gst/gsttagsetter.c:
1661         * gst/gsttagsetter.h:
1662         * gst/gsttrace.c:
1663         * gst/gsttrace.h:
1664         * gst/gsttrashstack.c:
1665           renamed gsttag -> gsttaglist, gsttaginterface -> gsttagsetter
1666           inlined docs for gsttrace, gsttrashstack
1667
1668 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
1669
1670         * gst/Makefile.am:
1671         * gst/elements/gstbufferstore.h:
1672         * gst/elements/gsttypefindelement.c:
1673         * gst/elements/gsttypefindelement.h:
1674         * gst/gst.h:
1675         * gst/gsttypefind.c:
1676         * gst/gsttypefind.h:
1677         * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type),
1678         (gst_type_find_factory_class_init), (gst_type_find_factory_init),
1679         (gst_type_find_factory_dispose),
1680         (gst_type_find_factory_unload_thyself),
1681         (gst_type_find_load_plugin), (gst_type_find_factory_get_list),
1682         (gst_type_find_factory_get_caps),
1683         (gst_type_find_factory_get_extensions),
1684         (gst_type_find_factory_call_function):
1685         * gst/gsttypefindfactory.h:
1686         * gst/registries/gstlibxmlregistry.c:
1687         * gst/registries/gstxmlregistry.c:
1688           splitted gsttypefind into gsttypefind, gsttypefindfactory
1689
1690 2005-09-07  Andy Wingo  <wingo@pobox.com>
1691
1692         * gst/base/gstbasesink.c (gst_base_sink_activate_pull): Fix a race
1693         condition whereby the pad's task function is entered before the
1694         pad_mode variable was set.
1695
1696 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
1697
1698         * gst/gstpad.c: (gst_pad_alloc_buffer):
1699           Catch misbehaving pad_alloc functions that don't
1700           set up caps and do it for them.
1701
1702 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
1703
1704         * check/pipelines/simple_launch_lines.c: (run_pipeline):
1705           test for pipe!=NULL
1706         * docs/gst/tmpl/.cvsignore:
1707         * docs/gst/tmpl/gstmemchunk.sgml:
1708         * docs/gst/tmpl/gstparse.sgml:
1709         * docs/gst/tmpl/gsttaglist.sgml:
1710         * docs/gst/tmpl/gsttagsetter.sgml:
1711         * docs/gst/tmpl/gsttypefind.sgml:
1712         * docs/gst/tmpl/gsttypefindfactory.sgml:
1713         * gst/gstmemchunk.c:
1714         * gst/gstparse.c:
1715         * gst/gsttag.c:
1716         * gst/gsttaginterface.c:
1717         * gst/gsttypefind.c:
1718         * gst/gsttypefind.h:
1719           inlined more docs
1720
1721 === release 0.9.2 ===
1722
1723 2005-09-06  Thomas Vander Stichele  <thomas at apestaart dot org>
1724
1725         * NEWS:
1726         * RELEASE:
1727         * configure.ac:
1728           releasing 0.9.2, "South"
1729
1730 2005-09-05  Andy Wingo  <wingo@pobox.com>
1731
1732         * gst/registries/gstxmlregistry.h:
1733         * gst/registries/gstxmlregistry.c: Um... resurrect...
1734         
1735         * gst/registries/gstxmlregistry.h:
1736         * gst/registries/gstxmlregistry.c: and update to newer API.
1737         Incidentally they should be a bit faster now that they don't have
1738         to parse the caps.
1739         
1740 2005-09-05  Andy Wingo  <wingo@pobox.com>
1741
1742         * gst/registries/gstxmlregistry.h:
1743         * gst/registries/gstxmlregistry.c: Remove from CVS, they were
1744         replaced by the libxml registry a while back
1745
1746 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
1747
1748         * docs/gst/tmpl/gstplugin.sgml:
1749         * gst/elements/gstelements.c:
1750         * gst/gst.c:
1751         * gst/gstplugin.c: (gst_plugin_register_func),
1752         (gst_plugin_desc_copy), (gst_plugin_desc_free),
1753         (gst_plugin_get_source):
1754         * gst/gstplugin.h:
1755         * gst/registries/gstlibxmlregistry.c: (load_plugin),
1756         (gst_xml_registry_save_plugin):
1757         * gst/registries/gstxmlregistry.c: (gst_xml_registry_parse_plugin),
1758         (gst_xml_registry_save_plugin):
1759         * tools/gst-inspect.c: (print_plugin_info):
1760           add a "source" plugin description field, to represent the source
1761           module this plugin is a part of.  By default GST_PLUGIN_DEFINE
1762           will set it to PACKAGE, which is automake's idea of the name of
1763           the source project.
1764
1765 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
1766
1767         * Makefile.am:
1768         * autogen.sh:
1769         * configure.ac:
1770         * docs/Makefile.am:
1771         * docs/faq/Makefile.am:
1772         * docs/gst/tmpl/gstelement.sgml:
1773         * docs/gst/tmpl/gsttypes.sgml:
1774         * docs/htmlinstall.mak:
1775         * docs/manual/Makefile.am:
1776         * docs/pwg/Makefile.am:
1777           reorganize doc build a little
1778           split out docbook and gtk-doc stuff
1779           have two separate --enable's and enable them through autogen
1780           but disable by default in configure (to be similar to other
1781           projects)
1782         * gstreamer.spec.in:
1783           clean up docs install
1784         * po/af.po:
1785         * po/az.po:
1786         * po/ca.po:
1787         * po/cs.po:
1788         * po/de.po:
1789         * po/en_GB.po:
1790         * po/fr.po:
1791         * po/it.po:
1792         * po/nb.po:
1793         * po/nl.po:
1794         * po/ru.po:
1795         * po/sq.po:
1796         * po/sr.po:
1797         * po/sv.po:
1798         * po/tr.po:
1799         * po/uk.po:
1800         * po/vi.po:
1801           translation updates
1802
1803 2005-09-03  Tim-Philipp Müller  <tim at centricular dot net>
1804
1805         * gst/base/gstbasesink.c: (gst_base_sink_pad_buffer_alloc):
1806           Add comment.
1807           
1808         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
1809         (gst_fake_sink_change_state):
1810           Make state change function thread-safe.
1811           
1812         * gst/gstpad.c: (gst_pad_alloc_buffer):
1813           Set offset on generic buffer allocated by fallback.
1814
1815 2005-09-03  Stefan Kost  <ensonic@users.sf.net>
1816
1817         * docs/gst/gstreamer-sections.txt:
1818         * docs/gst/tmpl/gstelement.sgml:
1819         * gst/gstpad.c:
1820         * libs/gst/controller/gst-controller.c:
1821         (gst_controlled_property_set_interpolation_mode),
1822         (gst_controlled_property_new),
1823         (gst_controller_find_controlled_property):
1824          run the wingo-magic script against the docs
1825
1826 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
1827
1828         * docs/gst/gstreamer-docs.sgml:
1829         * docs/gst/gstreamer-sections.txt:
1830         * docs/gst/tmpl/.cvsignore:
1831         * docs/gst/tmpl/gstelementdetails.sgml:
1832         * docs/gst/tmpl/gstelementfactory.sgml:
1833         * gst/gst.c:
1834         * gst/gstbus.c:
1835         * gst/gstelementfactory.c:
1836         * gst/gstelementfactory.h:
1837           merged elementdetails docs into elementfactory docs
1838           inlined both
1839
1840 2005-09-02  Andy Wingo  <wingo@pobox.com>
1841
1842         * gst/gstelement.h: Add magical pixie dust to make glib-mkenums
1843         consider this enum an enum and not a flags.
1844
1845 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
1846
1847         * docs/gst/gstreamer-docs.sgml:
1848         * docs/gst/tmpl/.cvsignore:
1849         * docs/gst/tmpl/gstghostpad.sgml:
1850         * docs/gst/tmpl/gstiterator.sgml:
1851         * docs/gst/tmpl/gstmacros.sgml:
1852         * docs/gst/tmpl/gstrealpad.sgml:
1853         * docs/gst/tmpl/gstregistry.sgml:
1854         * docs/gst/tmpl/gstregistrypool.sgml:
1855         * docs/gst/tmpl/gststructure.sgml:
1856         * docs/gst/tmpl/gstsystemclock.sgml:
1857         * docs/gst/tmpl/gsttrace.sgml:
1858         * gst/gstghostpad.c:
1859         * gst/gstmacros.h:
1860         * gst/gstmemchunk.c:
1861         * gst/gstmemchunk.h:
1862         * gst/gstqueue.c:
1863         * gst/gstregistry.c:
1864         * gst/gstregistrypool.c:
1865         * gst/gststructure.c:
1866         * gst/gstsystemclock.c:
1867           more docs inlined
1868
1869 2005-09-02  Andy Wingo  <wingo@pobox.com>
1870
1871         * gst/gstelement.h (GstState): Renamed from GstElementState,
1872         changed to be a normal enum instead of flags.
1873         (GstStateChangeReturn): Renamed from GstElementStateReturn, names
1874         munged to be GST_STATE_CHANGE_*.
1875         (GST_STATE_CHANGE): Renamed from GST_STATE_TRANSITION, updated to
1876         work with the new state representation.
1877         (GstStateChange): New enumeration of possible state transitions.
1878         Replaces GST_STATE_FOO_TO_BAR with GST_STATE_CHANGE_FOO_TO_BAR.
1879         (GstElementClass::change_state): Pass the GstStateChange along as
1880         an argument. Helps language bindings, so they don't have to use
1881         tricky lock-needing macros like GST_STATE_CHANGE ().
1882
1883         * scripts/update-states (file): New script. Run it on a file to
1884         update it for state naming and API changes. Updates files in
1885         place.
1886
1887         * All files updated for the new API.
1888
1889 2005-09-02  Thomas Vander Stichele  <thomas at apestaart dot org>
1890
1891         * gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
1892         * gst/gstutils.c: (gst_util_set_value_from_string),
1893         (gst_util_set_object_arg):
1894           fix a bunch of unchecked return values
1895         * tools/gst-complete.c: (main):
1896         * gstreamer.spec.in:
1897           clean up a little
1898
1899 2005-09-01  Wim Taymans  <wim@fluendo.com>
1900
1901         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
1902         (gst_base_sink_event), (gst_base_sink_do_sync),
1903         (gst_base_sink_handle_event):
1904         * gst/base/gstbasesink.h:
1905         Handle newsegments more correctly.
1906
1907         * gst/gstbus.c:
1908         Fix docs.
1909
1910         * gst/gstevent.c: (gst_event_new_newsegment):
1911         A newsegment cannot have a start_time of -1
1912
1913 2005-09-01  Tim-Philipp Müller  <tim at centricular dot net>
1914
1915         * win32/gstenumtypes.c:
1916         * win32/gstenumtypes.h:
1917           Update
1918
1919 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
1920
1921         * libs/gst/controller/gst-controller.c:
1922         (gst_controlled_property_set_interpolation_mode),
1923         (gst_controlled_property_new):
1924          fixed boolean again
1925
1926 2005-08-31  Thomas Vander Stichele  <thomas at apestaart dot org>
1927
1928         * docs/faq/gst-uninstalled:
1929           add -good
1930         * gst/gstevent.c:
1931         * gst/gstevent.h:
1932           remove wrong docs
1933         * gst/gstutils.c: (gst_element_link_filtered):
1934         * gst/gstutils.h:
1935           add gst_element_link_filtered
1936
1937 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
1938
1939         * docs/gst/gstreamer-docs.sgml:
1940         * docs/gst/gstreamer-sections.txt:
1941         * docs/gst/tmpl/.cvsignore:
1942         * docs/gst/tmpl/gsterror.sgml:
1943         * docs/gst/tmpl/gstfilter.sgml:
1944         * docs/gst/tmpl/gsturihandler.sgml:
1945         * docs/gst/tmpl/gsturitype.sgml:
1946         * docs/gst/tmpl/gstutils.sgml:
1947         * docs/gst/tmpl/gstxml.sgml:
1948         * gst/gsterror.c:
1949         * gst/gsterror.h:
1950         * gst/gstfilter.c:
1951         * gst/gsturi.c:
1952         * gst/gsturitype.c:
1953         * gst/gstutils.c:
1954         * gst/gstxml.c:
1955           inlined more docs, fixed double id-ref
1956
1957 2005-08-31  Wim Taymans  <wim@fluendo.com>
1958
1959         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
1960         (gst_base_transform_handle_buffer):
1961         Passthrough elements don't need the caps as they don't care.
1962
1963 2005-08-31  Wim Taymans  <wim@fluendo.com>
1964
1965         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
1966         (gst_base_transform_handle_buffer), (gst_base_transform_chain):
1967         Don't leak refcounts on buffers.
1968
1969 2005-08-31  Wim Taymans  <wim@fluendo.com>
1970
1971         * gst/base/gstbasetransform.c: (gst_base_transform_configure_caps),
1972         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
1973         (gst_base_transform_chain), (gst_base_transform_change_state):
1974         * gst/base/gstbasetransform.h:
1975         Handle the case where we are not negotiated more gracefully.
1976
1977 2005-08-31  Tim-Philipp Müller  <tim at centricular dot net>
1978
1979         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_init),
1980         (gst_file_src_map_region):
1981           Set READONLY flag on mmap'ed buffers, otherwise
1982           gst_buffer_make_writable() won't work properly (#314708).
1983
1984 2005-08-31  Wim Taymans  <wim@fluendo.com>
1985
1986         * gst/base/gstbasetransform.c: (gst_base_transform_handle_buffer):
1987         passthrough elements can even do inplace on non writable
1988         buffers (as they don't touch them).
1989
1990 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
1991
1992         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
1993         (gst_test_mono_source_set_property),
1994         (gst_test_mono_source_class_init), (GST_START_TEST),
1995         (gst_controller_suite):
1996           more tests (hehe I have the most)
1997         * gst/gstbus.c:
1998           describe popping messages whenusing mulltiple sources
1999         * libs/gst/controller/gst-controller.c:
2000         (gst_controlled_property_set_interpolation_mode),
2001         (gst_controlled_property_new):
2002         * libs/gst/controller/gst-controller.h:
2003         * libs/gst/controller/gst-interpolation.c:
2004           implement boolean properties
2005
2006 2005-08-31  Wim Taymans  <wim@fluendo.com>
2007
2008         * gst/gstminiobject.c: (gst_mini_object_ref):
2009         Cannot assert that the refcount has to be positive
2010         since a disposed object can be resurrected.
2011
2012 2005-08-31  Wim Taymans  <wim@fluendo.com>
2013
2014         * gst/gstpad.c: (gst_pad_init):
2015         Revert change, need to first fix badly behaving 
2016         apps.
2017
2018 2005-08-30  Wim Taymans  <wim@fluendo.com>
2019
2020         * check/elements/fakesrc.c: (setup_fakesrc):
2021         * check/elements/identity.c: (setup_identity):
2022         Activate pads before using them.
2023
2024 2005-08-30  Wim Taymans  <wim@fluendo.com>
2025
2026         * gst/base/gstadapter.c: (gst_adapter_flush):
2027         Flushing out 0 bytes is ok for this function.
2028
2029         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2030         no newsegment gives a warning and sets the start/stop to 
2031         invalid.
2032
2033         * gst/base/gstbasetransform.c: (gst_base_transform_change_state),
2034         (gst_base_transform_set_passthrough):
2035         Some debug info.
2036
2037         * gst/gstminiobject.c: (gst_mini_object_ref):
2038         Check refcount here too.
2039
2040         * gst/gstpad.c: (gst_pad_init):
2041         Pads are initially flushing and refusing data.
2042
2043         * gst/gstutils.c: (gst_element_link_pads_filtered):
2044         When adding a capsfilter element make sure it has the
2045         same state as the parent bin.
2046
2047 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
2048
2049         * docs/gst/tmpl/.cvsignore:
2050         * docs/gst/tmpl/gstformat.sgml:
2051         * docs/gst/tmpl/gstversion.sgml:
2052         * gst/gstbus.h:
2053         * gst/gstformat.c:
2054         * gst/gstformat.h:
2055         * gst/gstversion.h.in:
2056           more docs and two more inlined
2057
2058 2005-08-30  Wim Taymans  <wim@fluendo.com>
2059
2060         * gst/elements/gstfilesink.c: (gst_file_sink_class_init):
2061         Don't sync to clock.
2062
2063 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
2064
2065         * docs/gst/gstreamer-sections.txt:
2066           ultral33t func10ns deserve to appear in the docs actually
2067         * docs/gst/tmpl/.cvsignore:
2068         * docs/gst/tmpl/gstcompat.sgml:
2069         * docs/gst/tmpl/gstconfig.sgml:
2070         * gst/check/gstcheck.c:
2071         * gst/gstcompat.h:
2072         * gst/gstconfig.h.in:
2073           inlined more docs
2074
2075 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
2076
2077         * docs/gst/tmpl/.cvsignore:
2078         * docs/gst/tmpl/gstquery.sgml:
2079         * docs/gst/tmpl/gstutils.sgml:
2080         * gst/gstquery.c:
2081         * gst/gstquery.h:
2082           inlined and extended docs
2083
2084 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
2085
2086         * check/gst-libs/controller.c: (GST_START_TEST),
2087         (gst_controller_suite):
2088           more tests
2089         * docs/gst/tmpl/gstutils.sgml:
2090         * docs/libs/gstreamer-libs-sections.txt:
2091         * docs/libs/tmpl/gstdataprotocol.sgml:
2092           include path fixes
2093         * examples/controller/audio-example.c: (main):
2094           controller example works now
2095         * gst/gstclock.h:
2096           doc fixes
2097         * tools/gst-inspect.c: (print_element_properties_info):
2098           show param spec flags
2099
2100 2005-08-29  Andy Wingo  <wingo@pobox.com>
2101
2102         * gst/gstutils.c (gst_util_uint64_scale): New 3733t funct10n.
2103
2104 2005-08-28  Andy Wingo  <wingo@pobox.com>
2105
2106         * gst/gstutils.h (GST_BOILERPLATE_FULL): Prototype instance_init
2107         as having two arguments instead of just one. Allows superclasses
2108         to access information on subclasses -- see the terrible for() loop
2109         in gtype.c:g_type_create_instance for the reason why. All callers
2110         changed.
2111
2112 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
2113
2114         * docs/design/part-messages.txt:
2115           update info
2116         * docs/gst/tmpl/.cvsignore:
2117         * docs/gst/tmpl/gstcaps.sgml:
2118         * docs/gst/tmpl/gstclock.sgml:
2119         * gst/gstbus.c:
2120         * gst/gstcaps.c:
2121         * gst/gstcaps.h:
2122         * gst/gstclock.c:
2123         * gst/gstclock.h:
2124         * gst/gstmessage.c:
2125           added descriptions for bus and message
2126           inline caps and clock docs
2127
2128 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
2129
2130         * gst/gstmessage.c:
2131         * gst/gstmessage.h:
2132           doc fixes
2133
2134 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
2135
2136         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
2137           fix div-by-zero
2138
2139 2005-08-26  Andy Wingo  <wingo@pobox.com>
2140
2141         * check/pipelines/simple_launch_lines.c (run_pipeline): Check
2142         element_set_state's return val.
2143         (test_2_elements): Add test that's been disabled for months.
2144
2145         * gst/elements/gstfakesink.c: Cleanups. Add can-activate-push and
2146         can-activate-pull properties.
2147
2148         * gst/elements/gstfakesrc.c: Cleanups. Add can-activate-push and
2149         can-activate-pull properties. Implement is_seekable so fakesrc can
2150         operate in pull mode.
2151
2152         * gst/base/gstbasesink.c (GstBaseSink): Remove has-loop, has-chain
2153         properties.
2154         (gst_base_sink_activate, gst_base_sink_activate_pull)
2155         (gst_base_sink_activate_push): Make activation mode choosing work.
2156         Cleanups.
2157         (gst_base_sink_chain, gst_base_sink_loop): Assert activation mode
2158         is right. Make pull mode work. Post an eos before pausing in pull
2159         mode.
2160         (gst_base_sink_change_state): Pay attention to the core's
2161         change_state() return val.
2162         
2163         * gst/base/gstbasesrc.c (GstBaseSrc): Remove has-loop,
2164         has-getrange properties. Cleanups.
2165         
2166         * gst/base/gstbasesrc.h (GstBaseSrc): Remove has_loop,
2167         has_getrange and replace with can_activate_pull and
2168         can_activate_push.
2169
2170         * gst/base/gstbasesink.h (GstBaseSink): Rearrange fields, add
2171         locking comments. Remove has_loop, has_chain and replace with
2172         can_activate_pull and can_activate_push.
2173
2174 2005-08-26  Jan Schmidt  <thaytan@mad.scientist.com>
2175
2176         * configure.ac:
2177         * examples/Makefile.am:
2178         * examples/metadata/Makefile.am:
2179         * examples/metadata/read-metadata.c: (message_loop),
2180         (have_pad_handler), (make_pipeline), (print_tag), (main):
2181           Add metadata reading example that loops over a list of filenames,
2182           dumping any tags found.
2183
2184         * gst/gstbus.c: (gst_bus_dispose):
2185         * gst/gstelement.c: (gst_element_dispose):
2186           Release a few potentially-held references in dispose.
2187
2188 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
2189
2190         * docs/gst/tmpl/gstminiobject.sgml:
2191           do *not* add tmpl/*.sgml files to CVS!
2192
2193 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
2194
2195         * libs/gst/bytestream/.cvsignore:
2196         * libs/gst/bytestream/Makefile.am:
2197         * libs/gst/bytestream/adapter.c:
2198         * libs/gst/bytestream/adapter.h:
2199         * libs/gst/bytestream/bytestream.c:
2200         * libs/gst/bytestream/bytestream.h:
2201         * libs/gst/bytestream/filepad.c:
2202         * libs/gst/bytestream/filepad.h:
2203           removing obsolete files
2204
2205 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
2206
2207         * docs/gst/gstreamer-docs.sgml:
2208         * docs/libs/gstreamer-libs-docs.sgml:
2209           disabed additional index entries again, as this makes docs-gen just
2210           slow and they aren't useful yet
2211         * docs/libs/gstreamer-libs-sections.txt:
2212           little -section.txt cleanup for libs
2213
2214 2005-08-26  Thomas Vander Stichele  <thomas at apestaart dot org>
2215
2216         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2217         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size),
2218           fix up some debugging
2219         (gst_base_transform_get_unit_size),
2220         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
2221         (gst_base_transform_handle_buffer):
2222         * gst/base/gstbasetransform.h:
2223           handle and store timed NEWSEGMENT events so that subclasses that
2224           calculate time by counting samples have a segment_start time they
2225           need to add to their timestamps - see audioresample
2226
2227 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
2228
2229         * gst/gstbin.h:
2230           removed ';' from the end of macro defs
2231         * docs/gst/gstreamer-docs.sgml:
2232         * docs/gst/gstreamer-sections.txt:
2233         * docs/gst/tmpl/.cvsignore:
2234         * gst/gstbus.h:
2235         * gst/gstelement.c: (gst_element_class_init),
2236         (gst_element_set_state), (activate_pads),
2237         (gst_element_save_thyself):
2238         * gst/gstevent.c: (gst_event_new_newsegment):
2239         * gst/gstevent.h:
2240         * gst/gstiterator.c:
2241         * gst/gstiterator.h:
2242         * gst/gstpad.c:
2243         * gst/gstprobe.h:
2244         * gst/gstutils.c: (gst_pad_query_convert):
2245         * gst/gstutils.h:
2246           fixed parameter name mismatches between source, header and docs
2247           added some more docs, resolved the last batch of unused elements in
2248           docs (now someone needs to doc them)
2249
2250 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
2251
2252         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_rebuild):
2253         * gst/registries/gstxmlregistry.c: (gst_xml_registry_rebuild):
2254           don't walk through the plugins backwards.  Where is all this
2255           reversed logic coming from ?
2256
2257 2005-08-25  Wim Taymans  <wim@fluendo.com>
2258
2259         * gst/base/gstbasetransform.c: (gst_base_transform_init),
2260         (gst_base_transform_transform_size),
2261         (gst_base_transform_configure_caps),
2262         (gst_base_transform_get_unit_size),
2263         (gst_base_transform_buffer_alloc),
2264         (gst_base_transform_change_state):
2265         * gst/base/gstbasetransform.h:
2266         Cache caps unit_size.
2267         Make sure we cannot negotiate up and downstream at the
2268         same time.
2269
2270 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
2271
2272         * gst/gst.c: (init_pre), (init_post):
2273           register the installed plugin path after the env var
2274         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_save):
2275         * gst/registries/gstxmlregistry.c: (gst_xml_registry_save):
2276           don't reverse order of paths; conserve the order of GST_PLUGIN_PATH
2277           directories, so the tests can prefer uninstalled over installed
2278
2279 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
2280
2281         * gst/base/gstbasetransform.h:
2282           comment
2283         * gst/gstpad.c:
2284           add to docs
2285
2286 2005-08-25  Wim Taymans  <wim@fluendo.com>
2287
2288         * gst/gstbin.c: (bin_bus_handler):
2289         Be a bit more conservative about the posted message.
2290         
2291         * gst/gstbus.c: (gst_bus_post):
2292         Some cleanups, warn wrong return values.
2293
2294 2005-08-25  Jan Schmidt  <thaytan@mad.scientist.com>
2295
2296         * check/gst/gstbin.c: (GST_START_TEST):
2297         * gst/gstbin.c: (bin_bus_handler):
2298         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
2299         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
2300         (gst_message_new_warning), (gst_message_new_tag),
2301         (gst_message_new_state_changed), (gst_message_new_segment_start),
2302         (gst_message_new_segment_done), (gst_message_new_custom):
2303         * gst/gstmessage.h:
2304         * tools/gst-launch.c: (event_loop):
2305         * tools/gst-md5sum.c: (event_loop):
2306           Revert unpopular change for GST_MESSAGE_SRC to GObject.
2307
2308 2005-08-25  Wim Taymans  <wim@fluendo.com>
2309
2310         * check/generic/states.c: (GST_START_TEST):
2311         Cleanup can be done at the end.
2312
2313         * gst/gsttask.c: (gst_task_get_type), (gst_task_finalize),
2314         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
2315         (gst_task_get_state), (gst_task_start), (gst_task_pause):
2316         Oh boy.. Thanks for finding this, Thomas. 
2317
2318 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
2319
2320         * docs/gst/gstreamer.types:
2321           added missing types
2322
2323 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
2324
2325         * docs/gst/gstreamer-docs.sgml:
2326         * docs/gst/gstreamer-sections.txt:
2327         * docs/gst/tmpl/.cvsignore:
2328         * gst/gstbin.c:
2329         * gst/gstiterator.c:
2330         * gst/gstutils.c:
2331         * gst/registries/gstxmlregistry.h:
2332           added missing classes and symbols (123 more to go)
2333           removed removed symbols from section file
2334           fixed many doc-comments
2335
2336 2005-08-24  Wim Taymans  <wim@fluendo.com>
2337
2338         * check/generic/states.c: (GST_START_TEST):
2339         Make sure all tasks are stopped.
2340
2341         * check/gst/gstbin.c: (GST_START_TEST):
2342         Unref after usage for proper valgrinding.
2343
2344         * gst/gstpad.c: (gst_pad_finalize), (gst_pad_stop_task):
2345         Really wait for the task to stop before destroying the
2346         mutex.
2347
2348         * gst/gstqueue.c: (gst_queue_sink_activate_push),
2349         (gst_queue_src_activate_push):
2350         Small cleanups. Don't stop the task when we did not start
2351         it.
2352
2353         * gst/gsttask.c: (gst_task_get_type), (gst_task_init),
2354         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
2355         (gst_task_get_state), (gst_task_start), (gst_task_pause),
2356         (gst_task_join):
2357         * gst/gsttask.h:
2358         Protect the stream lock with the object lock.
2359         Disallow setting the stream lock when running.
2360         Add cleanup_all to wait for the threadpool to finish.
2361         Remove code to autoallocate a mutex if none was provided.
2362         Add _join() to wait for a task to stop.
2363         Protect the thread pool with a global lock.
2364
2365 2005-08-24  Wim Taymans  <wim@fluendo.com>
2366
2367         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2368         (gst_base_sink_get_times), (gst_base_sink_do_sync),
2369         (gst_base_sink_handle_buffer), (gst_base_sink_change_state):
2370         * gst/base/gstbasesink.h:
2371         Handle newsegment events correctly.
2372         Drop buffers out of the segment range.
2373
2374 2005-08-22  Andy Wingo  <wingo@pobox.com>
2375
2376         * gst/gstutils.h (GST_BOILERPLATE_WITH_INTERFACE): New ghetto
2377         macro, implements an interface and gstimplementsinterface for a
2378         new type.
2379
2380 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
2381
2382         * check/Makefile.am:
2383         * check/generic/states.c: (GST_START_TEST), (states_suite), (main):
2384           add a test that does a bunch of state changes on elements
2385           needs some fixing for valgrind
2386         * check/states/sinks.c: (gst_object_suite):
2387           whitespace
2388         * gst/gstcaps.h:
2389           add prototype for gst_caps_is_equal_fixed
2390         * gst/gstplugin.c:
2391         * gst/gstregistrypool.c:
2392           doc fixes
2393
2394 2005-08-24  Andy Wingo  <wingo@pobox.com>
2395
2396         * gst/gstquery.c (gst_query_new_convert): Spew if we try to
2397         convert a negative value. Doesn't make much sense. Mostly this is
2398         here to force callers to ensure -1 maps to -1.
2399
2400 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
2401
2402         * docs/pwg/advanced-types.xml:
2403           Well done to Michael for catching my deliberate introduction
2404           of this spelling mistake. 
2405         * gst/gstbin.c: (gst_bin_remove_func), (bin_bus_handler):
2406         * gst/gstelement.h:
2407           Add GST_ELEMENT_UNPARENTING to prevent races so that we can
2408           unlink pads before removing the element from the bin.
2409
2410 2005-08-24  Andy Wingo  <wingo@pobox.com>
2411
2412         * gst/gst.c (parse_debug_list): Accept e.g. GST_DEBUG=4 to mean
2413         the same thing as GST_DEBUG=*:4.
2414         (parse_debug_level, parse_debug_category): New helper parsers.
2415
2416 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
2417
2418         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
2419         (gst_base_transform_transform_size), (gst_base_transform_getcaps),
2420         (gst_base_transform_setcaps), (gst_base_transform_get_unit_size),
2421         (gst_base_transform_buffer_alloc),
2422         (gst_base_transform_handle_buffer):
2423           use gboolean return values and pointers to size so we can use the
2424           full GST_BUFFER_SIZE range (guint) for buffer sizes
2425           use GstPadDirection for transform_caps
2426         * gst/base/gstbasetransform.h:
2427           rename get_size to get_unit_size since that's what it is
2428         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_caps):
2429           use GstPadDirection for transform_caps
2430         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
2431         * gst/gstutils.h:
2432           cleanup and debugging
2433
2434 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
2435
2436         * gst/gstelement.c: (gst_element_class_init),
2437         (gst_element_set_state), (activate_pads),
2438         (gst_element_save_thyself):
2439         * tools/gst-compprep.c: (main):
2440         * tools/gst-inspect.c: (print_element_properties_info):
2441         * tools/gst-xmlinspect.c: (print_element_properties):
2442           Fixed long standing mem-leak
2443
2444 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
2445
2446         * check/gst/gstbin.c: (GST_START_TEST):
2447         * gst/gstbin.c: (bin_bus_handler):
2448         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
2449         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
2450         (gst_message_new_warning), (gst_message_new_tag),
2451         (gst_message_new_state_changed), (gst_message_new_segment_start),
2452         (gst_message_new_segment_done), (gst_message_new_custom):
2453         * gst/gstmessage.h:
2454         * tools/gst-launch.c: (event_loop):
2455         * tools/gst-md5sum.c: (event_loop):
2456           Change GST_MESSAGE_SRC to be a GObject rather than a GstObject, so
2457           that applications can sensibly post custom messages with references
2458           to their own objects.
2459
2460 2005-08-24  Andy Wingo  <wingo@pobox.com>
2461
2462         * gst/gstpad.c (gst_pad_fixate_caps): Check if the caps is fixed
2463         already.
2464
2465 2005-08-24  Wim Taymans  <wim@fluendo.com>
2466
2467         * gst/base/gstbasetransform.c: (gst_base_transform_init),
2468         (gst_base_transform_transform_caps),
2469         (gst_base_transform_transform_size),
2470         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
2471         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
2472         (gst_base_transform_handle_buffer):
2473         * gst/base/gstbasetransform.h:
2474         Many fixes and new features added by Thomas. Can now also do
2475         transforms with variable sizes and a custom fixate_caps function.
2476
2477 2005-08-24  Wim Taymans  <wim@fluendo.com>
2478
2479         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
2480         Some debugging.
2481
2482         * gst/gstclock.h:
2483         Cast to ClockTime before formatting to time.
2484
2485         * gst/gstutils.h:
2486         Cleanups.
2487
2488 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
2489
2490         * check/gst-libs/controller.c: (GST_START_TEST),
2491         (gst_controller_suite):
2492         * docs/gst/tmpl/gstcaps.sgml:
2493         * docs/gst/tmpl/gstghostpad.sgml:
2494         * docs/gst/tmpl/gstquery.sgml:
2495         * docs/gst/tmpl/gstutils.sgml:
2496         * libs/gst/controller/gst-helper.c: (gst_object_set_controller),
2497         (gst_object_sink_values), (gst_object_get_value_arrays),
2498         (gst_object_get_value_array):
2499           gracefully handle helper method calls to objects that are not beeing
2500           controlled, added test case for that          
2501
2502 2005-08-23  Wim Taymans  <wim@fluendo.com>
2503
2504         * gst/gstevent.c: (_gst_event_copy), (gst_event_new_custom),
2505         (gst_event_new_newsegment), (gst_event_parse_newsegment),
2506         (gst_event_new_tag), (gst_event_parse_tag), (gst_event_new_qos),
2507         (gst_event_parse_qos), (gst_event_new_seek),
2508         (gst_event_parse_seek):
2509         * gst/gstevent.h:
2510         Some more debugging output and doc cleanups.
2511
2512         * gst/gstqueue.c: (gst_queue_handle_sink_event):
2513         Fix possible deadlock.
2514
2515 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
2516
2517         * docs/gst/gstreamer-docs.sgml:
2518         * docs/gst/gstreamer-sections.txt:
2519         * docs/gst/gstreamer.types:
2520         * docs/gst/tmpl/.cvsignore:
2521         * gst/gstbin.h:
2522         * gst/gstbus.c:
2523         * gst/gstelement.c:
2524         * gst/gstevent.h:
2525           added 100 symbols from gstreamer-unused.txt to the right sections
2526           fixed more broken comments
2527           added GstBus to docs
2528
2529 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
2530
2531         * docs/gst/gstreamer-sections.txt:
2532         * docs/gst/tmpl/.cvsignore:
2533         * docs/gst/tmpl/gstbin.sgml:
2534         * docs/gst/tmpl/gstbuffer.sgml:
2535         * gst/base/gstbasesrc.c:
2536         * gst/gstbin.c: (gst_bin_get_type), (gst_bin_class_init):
2537         * gst/gstbuffer.c:
2538         * gst/gstbuffer.h:
2539         * tools/gst-launch.1.in:
2540           inlined more doc comments, added missing comments and fixed comments
2541           fixed typos
2542
2543 2005-08-23  Thomas Vander Stichele  <thomas at apestaart dot org>
2544
2545         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
2546           some debugging
2547         * gst/gstcaps.h:
2548           whitespace fixes
2549         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_alloc_buffer):
2550           more debugging
2551         * gst/gststructure.c: (gst_caps_structure_fixate_field_boolean):
2552         * gst/gststructure.h:
2553           add a fixate function for booleans; add a FIXME that these func
2554           names should probably be gst_structure_fixate_*
2555
2556 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
2557
2558         * docs/gst/gstreamer-docs.sgml:
2559         * docs/gst/gstreamer-sections.txt:
2560         * gst/Makefile.am:
2561         * gst/gstbin.c: (gst_bin_get_type),
2562         (gst_bin_child_proxy_get_child_by_index),
2563         (gst_bin_child_proxy_get_children_count),
2564         (gst_bin_child_proxy_init):
2565         * gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
2566         (gst_child_proxy_get_child_by_index),
2567         (gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
2568         (gst_child_proxy_get_property), (gst_child_proxy_get_valist),
2569         (gst_child_proxy_get), (gst_child_proxy_set_property),
2570         (gst_child_proxy_set_valist), (gst_child_proxy_set),
2571         (gst_child_proxy_child_added), (gst_child_proxy_child_removed),
2572         (gst_child_proxy_base_init), (gst_child_proxy_get_type):
2573         * gst/gstchildproxy.h:
2574         * gst/parse/grammar.y:
2575         * tools/gst-inspect.c: (print_interfaces),
2576         (print_element_properties_info), (print_element_info):
2577           ported gstchildproxy over from 0.8
2578           ported gst-inspect fixes and enhancements over from 0.8
2579
2580 2005-08-22  Wim Taymans  <wim@fluendo.com>
2581
2582         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
2583         (gst_base_transform_handle_buffer):
2584         Also call the transform function if we have ANY caps.
2585
2586         * gst/gstpipeline.c: (gst_pipeline_set_new_stream_time):
2587         Fix debug info.
2588
2589 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
2590
2591         * gst/base/gstbasesrc.c: (gst_base_src_event_handler)
2592           Don't pretend to handle seek events if the source is not seekable
2593
2594 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
2595
2596         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2597           Remove extra parameter to debug output
2598
2599         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
2600         (gst_base_src_do_seek), (gst_base_src_activate_push):
2601           Fix seek event handling.
2602
2603         * gst/gstpipeline.c: (gst_pipeline_change_state):
2604         * gst/gstqueue.c: (gst_queue_handle_sink_event),
2605         (gst_queue_src_activate_push):
2606           Don't start the src pad task on FLUSH_STOP if the pad
2607           isn't linked.
2608           Debug changes.
2609
2610 2005-08-22  Wim Taymans  <wim@fluendo.com>
2611
2612         * check/gst/gstcaps.c: (GST_START_TEST), (gst_caps_suite):
2613         Added check for gst_static_caps_get() refcounting.
2614
2615 2005-08-22  Wim Taymans  <wim@fluendo.com>
2616
2617         * gst/gstcaps.c: (gst_static_caps_get), (gst_caps_to_string):
2618         Make _static_caps_get() refcounting sane.
2619         
2620         * gst/gstelement.c: (gst_element_set_state):
2621         Add g_return_val_if_fail() to protect against segfaults.
2622
2623 2005-08-22  Stefan Kost  <ensonic@users.sf.net>
2624
2625         * docs/gst/tmpl/gstevent.sgml:
2626         * gst/gstevent.c:
2627         * gst/gstevent.h:
2628           inlined remaining docs, added missing doc comments
2629
2630 2005-08-22  Thomas Vander Stichele  <thomas at apestaart dot org>
2631
2632         * check/gst/gstbin.c: (GST_START_TEST):
2633           since we don't know when preroll is done, use refcount range
2634           check for the sink
2635         * gst/check/gstcheck.h:
2636           add macro for checking refcount range
2637
2638 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
2639
2640         * check/Makefile.am:
2641           clean up environment for when registry gets built versus
2642           when actual tests are run; valgrind seems to not report
2643           leaks if GST_PLUGIN_PATH is set to some specific values
2644         * check/gst/gstbin.c: (GST_START_TEST):
2645           add more refcounting checks; maybe this exposes a
2646           preroll lock bug ?
2647         * common/check.mak:
2648         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2649         * gst/check/gstcheck.h:
2650         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_get_state),
2651         (gst_bin_change_state):
2652         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_chain):
2653           add/fix debugging/whitespace
2654
2655 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
2656
2657         * check/gst/gstevent.c: (event_probe), (test_event),
2658         (GST_START_TEST):
2659          Er, don't call gst_bin_watch_for_state_change you idiot.
2660
2661 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
2662
2663         * check/Makefile.am:
2664           Use CHECK_CFLAGS and CHECK_LIBS
2665         * check/gst/gstevent.c: (event_probe), (test_event),
2666         (GST_START_TEST):
2667           Don't leak events.
2668         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
2669         (gst_base_src_start), (gst_base_src_stop),
2670         (gst_base_src_activate_push), (gst_base_src_activate_pull),
2671         (gst_base_src_change_state):
2672           Sprinkle gst_base_src_stop liberally around error paths to fix
2673           problems reusing a source after failed state changes.
2674         * gst/base/gsttypefindhelper.c: (helper_find_peek),
2675         (helper_find_suggest), (gst_type_find_helper):
2676           Extra debug output. Don't segfault on GST_PAD_GETRANGEFUNC = NULL
2677         * gst/gstevent.h:
2678         * docs/gst/tmpl/gstevent.sgml:
2679           Migrate part of the docs from the SGML file. Wait for ensonic to
2680           tell me how I did it wrong ;)
2681         * tools/gst-typefind.c: (main):
2682           Extra robustness to state changes between files.
2683
2684 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
2685
2686         * check/Makefile.am:
2687           don't valgrind the controller test - it's leaking - Stefan, HELP
2688         * gst/check/gstcheck.c: (gst_check_message_error),
2689         (gst_check_chain_func), (gst_check_setup_element),
2690         (gst_check_teardown_element), (gst_check_setup_src_pad),
2691         (gst_check_teardown_src_pad), (gst_check_setup_sink_pad),
2692         (gst_check_teardown_sink_pad):
2693         * gst/check/gstcheck.h:
2694           add a bunch of methods to set up elements, and src and sink pads
2695         * check/elements/fakesrc.c: (setup_fakesrc), (cleanup_fakesrc):
2696         * check/elements/identity.c: (setup_identity), (cleanup_identity),
2697         (GST_START_TEST):
2698           use them
2699         * gst/gstmessage.c:
2700         * gst/gsttag.h:
2701           whitespace/doc fixes
2702
2703 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
2704
2705         * gst/gstelement.h:
2706           make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should
2707           be handled by the application and not always printed as well
2708
2709 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
2710
2711         * check/Makefile.am:
2712           set GST_TOOLS_DIR
2713         * gst/check/gstcheck.c: (gst_check_message_error):
2714         * gst/check/gstcheck.h:
2715           add a fail_unless_equals_int
2716           add fail_unless for error messages
2717
2718 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
2719
2720         * check/Makefile.am:
2721         * check/gst.supp:
2722         * common/Makefile.am:
2723         * common/check.mak:
2724         * common/gst.supp:
2725           factor out some of the common stuff so we can use it
2726
2727 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
2728
2729         * check/Makefile.am:
2730         * check/gst/gstiterator.c: (GST_START_TEST):
2731         * check/gst/gstsystemclock.c: (GST_START_TEST),
2732         (gst_systemclock_suite):
2733         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
2734         * gst/gstclock.c:
2735           valgrind more tests
2736
2737 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
2738
2739         * check/elements/.cvsignore:
2740         * check/elements/gstfakesrc.c:
2741           rename to name of element
2742         * check/elements/identity.c: (chain_func), (event_func),
2743         (setup_identity), (cleanup_identity), (GST_START_TEST),
2744         (identity_suite), (main):
2745           add a test for identity
2746         * check/Makefile.am:
2747         * pkgconfig/Makefile.am:
2748         * pkgconfig/gstreamer-check.pc.in:
2749         * pkgconfig/gstreamer-check-uninstalled.pc.in:
2750         * gst/check:
2751         * gst/Makefile.am:
2752         * configure.ac:
2753           move the check stuff to a library that gets installed
2754         * check/gst-libs/controller.c: (GST_START_TEST):
2755         * check/gst-libs/gdp.c:
2756         * check/gst/gst.c: (GST_START_TEST):
2757         * check/gst/gstbin.c:
2758         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
2759         * check/gst/gstbus.c:
2760         * check/gst/gstcaps.c: (GST_START_TEST):
2761         * check/gst/gstelement.c:
2762         * check/gst/gstghostpad.c:
2763         * check/gst/gstiterator.c:
2764         * check/gst/gstmessage.c:
2765         * check/gst/gstminiobject.c: (thread_ref), (GST_START_TEST):
2766         * check/gst/gstobject.c:
2767         * check/gst/gstpad.c: (GST_START_TEST):
2768         * check/gst/gststructure.c: (GST_START_TEST):
2769         * check/gst/gstsystemclock.c: (GST_START_TEST),
2770         (gst_systemclock_suite):
2771         * check/gst/gsttag.c: (gst_tag_suite):
2772         * check/gst/gstvalue.c:
2773         * check/pipelines/cleanup.c:
2774         * check/pipelines/simple_launch_lines.c:
2775         * check/states/sinks.c:
2776           change include statement
2777
2778         * docs/gst/gstreamer-sections.txt:
2779         * docs/gst/tmpl/gstpad.sgml:
2780           document more pad stuff
2781         * gst/gstminiobject.c: (gst_mini_object_ref),
2782         (gst_mini_object_unref):
2783           debug refcounting
2784
2785 2005-08-19  Stefan Kost  <ensonic@users.sf.net>
2786
2787         * docs/gst/tmpl/gst.sgml:
2788         * gst/gst.c:
2789           eliminate another tmpl file, fix spelling in the long-description
2790
2791 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
2792
2793         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
2794         (test_event), (timediff), (gstevents_suite):
2795           Should fix build on 64-bit arch's
2796
2797 2005-08-18  Andy Wingo  <wingo@pobox.com>
2798
2799         Make sure that when a pipeline goes to PLAYING, that data has
2800         actually hit the sink.
2801
2802         * check/states/sinks.c (test_sink): A sink that doesn't get any
2803         data shouldn't return SUCCESS for going to either PLAYING or
2804         PAUSED. Test also the return values on the way back down.
2805
2806         * gst/gstelement.c (gst_element_set_state): When changing the
2807         state of an element currently changing state asynchronously, go to
2808         lost-state after commiting the pending state. Makes future calls
2809         to get_state continue to return ASYNC.
2810
2811         * gst/base/gstbasesink.c (gst_base_sink_change_state): Return
2812         ASYNC when going to PLAYING if we still don't have preroll, as can
2813         happen with live sources.
2814
2815 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
2816
2817         * docs/pwg/advanced-types.xml:
2818           Hack long paragraph into 2 chunks as a workaround for buggy
2819           jadetex version in sid and breezy that loops infinitely and
2820           eats all RAM.
2821
2822 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
2823
2824         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
2825         (test_event), (timediff), (gstevents_suite):
2826           Provide more error margin in clock measurements to allow for 
2827           g_get_current_time inaccuracies.
2828
2829 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
2830
2831         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
2832         (test_event), (timediff), (gstevents_suite):
2833            Fix error message output so I might be able to tell why the
2834            test works here but fails on the build farm.
2835
2836 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
2837
2838         * check/Makefile.am:
2839         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
2840         (test_event), (timediff), (gstevents_suite), (main):
2841           I wrote a test!
2842
2843         * docs/design/part-seeking.txt:
2844           Spelling correction
2845
2846         * docs/gst/tmpl/gstevent.sgml:
2847         * docs/gst/tmpl/gstfakesrc.sgml:
2848           Docs updates.
2849
2850         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
2851           Treat a buffer-without-newsegment the same as a receiving 
2852           a newsegment not in time format, and disable syncing to the clock
2853           with a warning.
2854
2855         * gst/gstbus.c: (gst_bus_set_sync_handler):
2856           Assert if anyone tries to replace the existing sync_handler for bus, 
2857           as only the owner should be setting it.
2858
2859         * gst/gstevent.h:
2860           Have a fixed set of custom event enums with events identified by
2861           their structure name (as in 0.8), rather than a free-for-all
2862           allowing collisions between enum values from different plugins.
2863
2864         * gst/gstpad.c: (gst_pad_class_init):
2865           Docs change.
2866           
2867         * gst/gstqueue.c: (gst_queue_handle_sink_event):
2868           Handle out-of-band downstream events from the sending thread.
2869
2870 2005-08-17  Andy Wingo  <wingo@pobox.com>
2871
2872         * gst/gstpipeline.c (gst_pipeline_change_state): Interpret
2873         play-timeout==0 to mean no timeout at all. In that case, don't
2874         bother with a get_state or a warning, just return directly, even
2875         if it's ASYNC.
2876
2877         * gst/base/gstbasetransform.c: Debug changes.
2878
2879         * gst/gstutils.h:
2880         * gst/gstutils.c (gst_bin_watch_for_state_change): Add function to
2881         ensure bins post state change messages. A bit of a hack but I can't
2882         think of a way to avoid it.
2883
2884         * check/gst/gstbin.c (test_watch_for_state_change): Added test.
2885
2886 2005-08-16  Andy Wingo  <wingo@pobox.com>
2887
2888         * gst/base/gstadapter.h:
2889         * gst/base/gstadapter.c (gst_adapter_take): New function, like
2890         peek() but you own the data. Not terribly efficient atm.
2891
2892 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
2893
2894         * gst/gstutils.c: (gst_element_found_tags_for_pad), (push_and_ref),
2895         (gst_element_found_tags):
2896         * gst/gstutils.h:
2897           Add two utility functions for tag handling.
2898
2899 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
2900
2901         * docs/manual/advanced-dataaccess.xml:
2902         * docs/manual/basics-helloworld.xml:
2903           Fix docs to use _bin_add() before _link(), which fixes the examples
2904           with recent core versions (reported by Madhan Raj M
2905           <raj_madan@rediffmail.com>, #313199).
2906
2907 2005-08-16  Wim Taymans  <wim@fluendo.com>
2908
2909         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
2910         Added subtract checks.
2911
2912         * docs/design/part-events.txt:
2913         Some more docs about newsegment
2914
2915         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
2916         Fix FIXME
2917
2918         * gst/gstcaps.c: (gst_caps_to_string):
2919         Add comments, cleanups.
2920         
2921         * gst/gstelement.c: (gst_element_save_thyself):
2922         cleanups
2923         
2924         * gst/gstvalue.c: (gst_value_collect_int_range),
2925         (gst_string_unwrap), (gst_value_union_int_int_range),
2926         (gst_value_union_int_range_int_range),
2927         (gst_value_intersect_int_int_range),
2928         (gst_value_intersect_int_range_int_range),
2929         (gst_value_intersect_double_double_range),
2930         (gst_value_intersect_double_range_double_range),
2931         (gst_value_intersect_list), (gst_value_subtract_int_int_range),
2932         (gst_value_subtract_int_range_int),
2933         (gst_value_subtract_double_range_double),
2934         (gst_value_subtract_double_range_double_range),
2935         (gst_value_subtract_from_list), (gst_value_subtract_list),
2936         (gst_value_can_compare), (gst_value_compare_fraction):
2937         Cleanups, add comments, remove unneeded asserts.
2938
2939 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2940
2941         * tools/gst-launch.c: (event_loop):
2942           don't convert NULL structures to strings
2943
2944 2005-08-15  Stefan Kost  <ensonic@users.sf.net>
2945
2946         * docs/gst/gstreamer-sections.txt:
2947           made some defines private
2948         * docs/gst/tmpl/gstconfig.sgml:
2949         * docs/gst/tmpl/gstqueue.sgml:
2950         * docs/gst/tmpl/gsttaglist.sgml:
2951         * docs/gst/tmpl/gsttypes.sgml:
2952         * docs/gst/tmpl/gstutils.sgml:
2953         * docs/pwg/appendix-porting.xml:
2954         * gst/base/gstbasesink.h:
2955         * gst/base/gstbasesrc.c:
2956         * gst/base/gstbasesrc.h:
2957         * gst/elements/gstfakesink.c: (gst_fake_sink_class_init):
2958         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init):
2959         * gst/gstelement.c: (gst_element_class_init):
2960         * gst/gstpad.c: (gst_pad_class_init):
2961         * gst/gstqueue.c: (gst_queue_class_init):
2962         * gst/gstxml.c: (gst_xml_class_init):
2963           documented all undocumented signal inline
2964         * libs/gst/controller/gst-controller.h:
2965           added padding
2966
2967 2005-08-15  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
2968
2969         * docs/pwg/appendix-porting.xml:
2970           Document _set_link_function -> _set_setcaps_function.
2971
2972 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
2973
2974         * check/Makefile.am:
2975           add a .check target for running the check
2976         * check/gst-libs/controller.c: (GST_START_TEST):
2977           cosmetic fixups
2978         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
2979           complete checks for gstbuffer; would be nice if I could get the
2980           gcov stuff to work so I can see if I actually completed gstbuffer.c
2981         * check/gstcheck.h:
2982           add ASSERT_BUFFER_REFCOUNT
2983
2984 2005-08-13  Tim-Philipp Müller  <tim at centricular dot net>
2985
2986         * docs/gst/gstreamer-sections.txt:
2987         * gst/gsttag.c: (_gst_tag_initialize), (gst_tag_register):
2988         * gst/gsttag.h:
2989           Add GST_TAG_LANGUAGE_CODE as we have in 0.8, and don't
2990           spew out a warning if a tag that is already registered
2991           is re-registered, unless it is re-registered with a 
2992           different type (#308438).
2993
2994 2005-08-12  Tim-Philipp Müller  <tim at centricular dot net>
2995
2996         * docs/pwg/appendix-porting.xml:
2997         * docs/pwg/building-state.xml:
2998           Add some paragraphs about state changes in 0.9 to the PWG
2999           and the porting guide, in particular about the new meaning
3000           of GST_STATE_PAUSED and how to write state change functions
3001           with concurrent access by multiple threads in mind.
3002
3003 2005-08-11  Stefan Kost  <ensonic@users.sf.net>
3004
3005         * docs/gst/gstreamer-docs.sgml:
3006         * docs/libs/gstreamer-libs-docs.sgml:
3007           added deprecation and since indexes
3008         * libs/gst/controller/gst-controller.c:
3009         * libs/gst/controller/gst-helper.c:
3010           added since tags
3011
3012
3013 2005-08-11  Wim Taymans  <wim@fluendo.com>
3014
3015         * gst/gstghostpad.c: (gst_proxy_pad_set_target_unlocked),
3016         (gst_proxy_pad_set_target), (gst_proxy_pad_get_target),
3017         (gst_proxy_pad_dispose), (gst_ghost_pad_do_activate_push),
3018         (gst_ghost_pad_do_link), (gst_ghost_pad_set_internal),
3019         (gst_ghost_pad_new_notarget), (gst_ghost_pad_get_target),
3020         (gst_ghost_pad_set_target):
3021         Actually implement (re)setting the target on a ghostpad
3022         as described in the docs.
3023
3024 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
3025
3026         * gst/gst.c: (gst_init_check_with_popt_table), (init_pre):
3027           Check whether GST_DEBUG_NO_COLOR environment variable is
3028           set and disable coloured debug output if that is the case.
3029
3030 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
3031
3032         * gst/base/gsttypefindhelper.c: (helper_find_peek),
3033         (gst_type_find_helper):
3034           The memory returned by gst_type_find_peek() needs to
3035           stay valid until the end of a typefind function, and
3036           typefind functions may keep results from different 
3037           offsets around, so we can't just unref the buffer from
3038           the previous _peek(), but have to save all buffers 
3039           returned by _peek() until typefinding is done and only
3040           free them then.
3041
3042 2005-08-09  Tim-Philipp Müller  <tim at centricular dot net>
3043
3044         * docs/gst/gstreamer-sections.txt:
3045         * gst/gstutils.h:
3046           New macros: GST_ROUND_UP_2() through GST_ROUND_UP_64().
3047
3048 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3049
3050         * gst/base/gstbasetransform.c: (gst_base_transform_buffer_alloc):
3051           Fix a pretty good memleak.
3052
3053 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
3054
3055         * gst/gstiterator.h:
3056           Fix wrong include and 'make distcheck'.
3057
3058 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3059
3060         * gst/gstbin.c: (bin_bus_handler):
3061           Use gst_element_post_message() instead.
3062
3063 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
3064
3065         * gst/base/gstadapter.h:
3066         * gst/base/gstbasesink.h:
3067         * gst/base/gstbasesrc.h:
3068         * gst/base/gstbasetransform.h:
3069         * gst/base/gstcollectpads.h:
3070         * gst/base/gstpushsrc.h:
3071         * gst/gstiterator.h:
3072           Add padding to our base elements' class and instance structs and
3073           to GstIterator (you will need to rebuild all plugins and apps!)
3074
3075 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3076
3077         * gst/gstbin.c: (bin_bus_handler):
3078           Make default message forwarding from child->bus to bin->bus
3079           threadsafe and make it not emit warnings if the parent has no bus.
3080
3081 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3082
3083         * gst/gstelement.c: (activate_pads):
3084           On paused->ready, set pad->caps to NULL, as is the documented
3085           behaviour in this state change. Fixes playback of series of
3086           media files when visualization is enabled in Totem.
3087
3088 2005-08-07  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3089
3090         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
3091           Allow NULL as filter-caps (which means "any").
3092
3093 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
3094
3095         * docs/libs/gstreamer-libs-sections.txt:
3096         * libs/gst/controller/gst-controller.c:
3097         * libs/gst/controller/gst-controller.h:
3098         * libs/gst/controller/gst-helper.c:
3099           adding more entries to the docs and fix small doc-bugs
3100
3101 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
3102
3103         * docs/gst/gstreamer-docs.sgml:
3104         * docs/gst/gstreamer-sections.txt:
3105         * docs/gst/gstreamer.types:
3106         * docs/gst/tmpl/gstbasesink.sgml:
3107         * docs/gst/tmpl/gstbasesrc.sgml:
3108         * docs/gst/tmpl/gstbasetransform.sgml:
3109         * docs/gst/tmpl/gstfakesrc.sgml:
3110         * gst/base/gstcollectpads.c:
3111         * gst/base/gstcollectpads.h:
3112         * libs/gst/controller/gst-controller.c:
3113         * libs/gst/controller/gst-controller.h:
3114         * libs/gst/controller/gst-helper.c:
3115         * libs/gst/controller/gst-interpolation.c:
3116         * libs/gst/controller/lib.c:
3117           added long/short desc for controller docs
3118           added collectpads base class docs
3119           added correct includes to base-class docs
3120
3121 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
3122
3123         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
3124         (gst_test_mono_source_set_property),
3125         (gst_test_mono_source_class_init), (GST_START_TEST),
3126         (gst_controller_suite):
3127         * docs/gst/gstreamer-docs.sgml:
3128         * docs/gst/gstreamer-sections.txt:
3129         * docs/gst/gstreamer.types:
3130         * docs/libs/gstreamer-libs-docs.sgml:
3131         * docs/libs/gstreamer-libs-sections.txt:
3132         * gst/base/gstadapter.c:
3133         * libs/gst/controller/gst-controller.c:
3134         (gst_controlled_property_new), (gst_controlled_property_free),
3135         (gst_controller_new_valist),
3136         (gst_controller_remove_properties_valist),
3137         (gst_controller_sink_values), (_gst_controller_finalize):
3138         * libs/gst/controller/gst-controller.h:
3139         * libs/gst/controller/gst-helper.c:
3140         (gst_object_control_properties), (gst_object_uncontrol_properties),
3141         (gst_object_get_controller), (gst_object_set_controller),
3142         (gst_object_sink_values), (gst_object_get_value_arrays),
3143         (gst_object_get_value_array):
3144           more tests (and fixes) for the controller
3145           more docs for the controller
3146           integrated companies docs for the adapter 
3147
3148 2005-08-05  Thomas Vander Stichele  <thomas at apestaart dot org>
3149
3150         * check/elements/gstfakesrc.c: (setup_fakesrc), (cleanup_fakesrc),
3151         (GST_START_TEST), (fakesrc_suite):
3152           add tests for sizetype
3153
3154 2005-08-04  Andy Wingo  <wingo@pobox.com>
3155
3156         * gst/elements/gstcapsfilter.c: Reimplement using basetransform,
3157         fixes buffer_alloc proxying among other things.
3158
3159         * gst/base/gstbasetransform.c:
3160         * gst/base/gstbasetransform.h:
3161         Revert patch to gstbasetransform from 7-28 removing
3162         delay_configure.
3163
3164         * gst/base/gstbasetransform.h (GstBaseTransformClass.get_size):
3165         * gst/base/gstbasetransform.c (gst_base_transform_get_size):
3166         Semantics changed, should return not the size of the output buffer
3167         but the byte size of a buffer with a given caps.
3168
3169         * gst/base/gstbasetransform.c (gst_base_transform_getcaps): Better
3170         debug object.
3171         (gst_base_transform_configure_caps): Don't set out_size here: (in,
3172         out) are not the pad caps until setcaps finishes.
3173         (gst_base_transform_buffer_alloc): Proxy the buffer_alloc for the
3174         not-in-place case as well. Deal with changing from in-place to
3175         not-in-place within calling pad_alloc_buffer. Still a bit
3176         concerned about the overhead here...
3177
3178 2005-08-03  Andy Wingo  <wingo@pobox.com>
3179
3180         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): Not
3181         fixating is an error.
3182
3183 2005-08-04  Edward Hervey  <edward@fluendo.com>
3184
3185         * gst/base/gstadapter.h: 
3186         Added gst_adapter_get_type() to the header
3187
3188 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
3189
3190         * check/Makefile.am:
3191         * check/gst-libs/controller.c:
3192         * libs/gst/controller/gst-controller.c:
3193         (gst_controller_new_valist):
3194           added check test suite for the controller
3195         * gst/base/gstpushsrc.c:
3196           fixed a doc typo
3197
3198 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
3199
3200         * docs/gst/Makefile.am:
3201         * docs/gst/gstreamer-docs.sgml:
3202         * docs/gst/gstreamer-sections.txt:
3203         * docs/gst/gstreamer.types:
3204         * docs/gst/tmpl/gstfakesrc.sgml:
3205         * gst/base/README:
3206         * gst/base/gstbasesink.c:
3207         * gst/base/gstbasesink.h:
3208         * gst/base/gstbasesrc.c:
3209         * gst/base/gstbasesrc.h:
3210         * gst/base/gstbasetransform.c:
3211         * gst/base/gstpushsrc.c:
3212         * gst/base/gstpushsrc.h:
3213           add short/long description docs to base classes
3214           add pushsrc to the docs
3215           remove consolidated doc fragments
3216
3217 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
3218
3219         * configure.ac:
3220         * docs/libs/Makefile.am:
3221         * docs/libs/gstreamer-libs-docs.sgml:
3222         * docs/libs/gstreamer-libs-sections.txt:
3223         * docs/libs/gstreamer-libs.types:
3224         * examples/Makefile.am:
3225         * examples/controller/.cvsignore:
3226         * examples/controller/Makefile.am:
3227         * examples/controller/audio-example.c: (main):
3228         * libs/gst/Makefile.am:
3229         * libs/gst/controller/.cvsignore:
3230         * libs/gst/controller/Makefile.am:
3231         * libs/gst/controller/gst-controller.c:
3232         (on_object_controlled_property_changed), (gst_timed_value_compare),
3233         (gst_timed_value_find),
3234         (gst_controlled_property_set_interpolation_mode),
3235         (gst_controlled_property_new), (gst_controlled_property_free),
3236         (gst_controller_find_controlled_property),
3237         (gst_controller_new_valist), (gst_controller_new),
3238         (gst_controller_remove_properties_valist),
3239         (gst_controller_remove_properties), (gst_controller_set),
3240         (gst_controller_set_from_list), (gst_controller_unset),
3241         (gst_controller_get), (gst_controller_get_all),
3242         (gst_controller_sink_values), (gst_controller_get_value_arrays),
3243         (gst_controller_get_value_array),
3244         (gst_controller_set_interpolation_mode),
3245         (_gst_controller_finalize), (_gst_controller_init),
3246         (_gst_controller_class_init), (gst_controller_get_type):
3247         * libs/gst/controller/gst-controller.h:
3248         * libs/gst/controller/gst-helper.c: (g_object_control_properties),
3249         (g_object_uncontrol_properties), (g_object_get_controller),
3250         (g_object_set_controller), (g_object_sink_values),
3251         (g_object_get_value_arrays), (g_object_get_value_array):
3252         * libs/gst/controller/gst-interpolation.c:
3253         (gst_controlled_property_find_timed_value_node),
3254         (interpolate_none_get), (interpolate_trigger_get),
3255         (interpolate_trigger_get_value_array):
3256         * libs/gst/controller/lib.c: (gst_controller_init):
3257         * pkgconfig/Makefile.am:
3258         * pkgconfig/gstreamer-control-uninstalled.pc.in:
3259         * pkgconfig/gstreamer-control.pc.in:
3260         * testsuite/Makefile.am:
3261         * testsuite/controller/.cvsignore:
3262         * testsuite/controller/Makefile.am:
3263         * testsuite/controller/interpolator.c: (main):
3264           added controller code
3265           removed dparam pc files
3266
3267 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
3268         * gst/base/gstcollectpads.c: (gst_collectpads_finalize),
3269         (gst_collectpads_stop):
3270           Broadcast the condition when shutting down, to make sure we wake all
3271           threads up. Shut down pads on finalize, for safety.
3272
3273 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
3274         * gst/base/gstbasetransform.c: (gst_base_transform_init),
3275         (gst_base_transform_handle_buffer),
3276         (gst_base_transform_change_state):
3277           Handle PAUSED->READY->PAUSED transition after negotiation
3278           occurred already.
3279         * gst/gstmessage.c: (gst_message_init):
3280           Extra piece of debug for new messages.
3281
3282 2005-08-01  Stefan Kost  <ensonic@users.sf.net>
3283
3284         * configure.ac:
3285         * docs/gst/tmpl/gstbasesrc.sgml:
3286         * docs/gst/tmpl/gstelement.sgml:
3287         * docs/gst/tmpl/gstevent.sgml:
3288         * docs/gst/tmpl/gstfakesrc.sgml:
3289         * docs/gst/tmpl/gstformat.sgml:
3290         * docs/gst/tmpl/gstghostpad.sgml:
3291         * docs/gst/tmpl/gstpad.sgml:
3292         * docs/gst/tmpl/gstquery.sgml:
3293         * docs/gst/tmpl/gststructure.sgml:
3294         * docs/gst/tmpl/gsttaglist.sgml:
3295         * docs/gst/tmpl/gstvalue.sgml:
3296         * docs/libs/gstreamer-libs-docs.sgml:
3297         * docs/libs/gstreamer-libs-sections.txt:
3298         * docs/libs/gstreamer-libs.types:
3299         * libs/gst/Makefile.am:
3300         * libs/gst/control/.cvsignore:
3301         * libs/gst/control/Makefile.am:
3302         * libs/gst/control/control.c:
3303         * libs/gst/control/control.h:
3304         * libs/gst/control/dparam.c:
3305         * libs/gst/control/dparam.h:
3306         * libs/gst/control/dparam_smooth.c:
3307         * libs/gst/control/dparam_smooth.h:
3308         * libs/gst/control/dparamcommon.h:
3309         * libs/gst/control/dparammanager.c:
3310         * libs/gst/control/dparammanager.h:
3311         * libs/gst/control/dplinearinterp.c:
3312         * libs/gst/control/dplinearinterp.h:
3313         * libs/gst/control/unitconvert.c:
3314         * libs/gst/control/unitconvert.h:
3315         * testsuite/Makefile.am:
3316         * testsuite/dynparams/.cvsignore:
3317         * testsuite/dynparams/Makefile.am:
3318         * testsuite/dynparams/dparamstest.c:
3319         * tools/Makefile.am:
3320         * tools/gst-inspect.c: (print_element_info), (main):
3321         * tools/gst-xmlinspect.c: (print_element_info), (main):
3322           deactivate and remove dparams (libgstcontrol)
3323
3324 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
3325
3326         * gst/elements/gsttypefindelement.c:
3327         (gst_type_find_element_have_type), (gst_type_find_element_init),
3328         (stop_typefinding), (gst_type_find_element_handle_event),
3329         (gst_type_find_element_chain), (gst_type_find_element_getrange):
3330         * gst/elements/gsttypefindelement.h:
3331           Set caps on all outgoing buffers, not just the first one.
3332
3333 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
3334
3335         * gst/elements/gsttypefindelement.c:
3336         (gst_type_find_element_have_type),
3337         (gst_type_find_element_check_set_buffer_caps),
3338         (gst_type_find_element_init), (stop_typefinding),
3339         (gst_type_find_element_handle_event),
3340         (gst_type_find_element_chain), (gst_type_find_element_getrange):
3341         * gst/elements/gsttypefindelement.h:
3342           Set caps on first outgoing buffer when we've found the type.
3343
3344 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
3345
3346         * docs/gst/gstreamer-docs.sgml:
3347         * docs/gst/gstreamer-sections.txt:
3348         * docs/gst/tmpl/gstscheduler.sgml:
3349         * docs/gst/tmpl/gstschedulerfactory.sgml:
3350           Remove some old cruft from docs.
3351
3352 2005-07-31  Tim-Philipp Müller  <tim at centricular dot net>
3353
3354         * gst/gstpad.h:
3355           Fix inline docs for GstPadLinkReturn.
3356           
3357         * gst/gststructure.c: (gst_structure_has_name):
3358         * gst/gststructure.h:
3359         * docs/gst/gstreamer-sections.txt:
3360           New API: gst_structure_has_name().
3361
3362 2005-07-30  Tim-Philipp Müller  <tim at centricular dot net>
3363
3364         * configure.ac:
3365           Use AC_SYS_LARGEFILE, which will set _FILE_OFFSET_BITS=64
3366           and _LARGEFILE_SOURCE in config.h as required. Do not 
3367           export those flags in our .pc files any longer (#142209).
3368
3369           Remove unused GST_DISABLE_OMEGA_COTHREADS stuff.
3370
3371         * gst/elements/gstfilesink.c: (gst_file_sink_class_init),
3372         (gst_file_sink_do_seek), (gst_file_sink_event),
3373         (gst_file_sink_get_current_offset), (gst_file_sink_render):
3374           Redo seek/tell calls with large file support in mind; add some
3375           debugging messages; add log message that tells us when large
3376           file support is unavailable or not enabled for some reason.
3377
3378         * gst/elements/gstfilesrc.c: (gst_file_src_class_init):
3379           Add log message that tells us when large file support 
3380           is unavailable or not enabled for some reason.
3381
3382 2005-07-29  Wim Taymans  <wim@fluendo.com>
3383
3384         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
3385         Added test for removing an element with ghostpad from a bin.
3386         Fixed test as current implementation does the right thing.
3387
3388         * gst/gstghostpad.c: (gst_proxy_pad_class_init),
3389         (gst_proxy_pad_do_query_type), (gst_proxy_pad_do_event),
3390         (gst_proxy_pad_do_query), (gst_proxy_pad_do_internal_link),
3391         (gst_proxy_pad_do_bufferalloc), (gst_proxy_pad_do_activate),
3392         (gst_proxy_pad_do_activatepull), (gst_proxy_pad_do_activatepush),
3393         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange),
3394         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_getcaps),
3395         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
3396         (gst_proxy_pad_do_setcaps), (gst_proxy_pad_set_target),
3397         (gst_proxy_pad_get_target), (gst_proxy_pad_init),
3398         (gst_proxy_pad_dispose), (gst_proxy_pad_finalize),
3399         (gst_ghost_pad_class_init), (gst_ghost_pad_do_activate_push),
3400         (gst_ghost_pad_do_link), (gst_ghost_pad_do_unlink),
3401         (gst_ghost_pad_set_internal), (gst_ghost_pad_dispose),
3402         (gst_ghost_pad_new_notarget), (gst_ghost_pad_new),
3403         (gst_ghost_pad_get_target), (gst_ghost_pad_set_target):
3404         * gst/gstghostpad.h:
3405         Clean up ghostpads, remove properties for internal stuff.
3406         Make threadsafe.
3407         Fix refcounting.
3408         Prepare for switching targets, not all use cases work yet.
3409
3410 2005-07-29  Wim Taymans  <wim@fluendo.com>
3411
3412         * docs/design/part-gstghostpad.txt:
3413         Small update.
3414
3415         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
3416         (gst_bin_remove_func):
3417         Unlinking pads while holding the bin LOCK is not a good
3418         idea.
3419
3420         * gst/gstpad.c: (gst_pad_class_init),
3421         (gst_pad_link_check_hierarchy), (gst_pad_get_caps_unlocked),
3422         (gst_pad_accept_caps), (gst_pad_set_caps), (gst_pad_send_event):
3423         No prob setting template after creating the pad.
3424
3425 2005-07-29  Jan Schmidt  <thaytan@mad.scientist.com>
3426
3427         * gst/gstbus.c: (gst_bus_set_flushing), (gst_bus_pop),
3428         (gst_bus_peek), (gst_bus_source_dispatch),
3429         (gst_bus_add_watch_full), (poll_handler), (poll_timeout),
3430         (poll_destroy), (poll_destroy_timeout), (gst_bus_poll):
3431           gst_bus_poll may be called from other threads. Handle
3432           this nicely by not making poll_data disappear off the
3433           stack once gst_bus_poll returns.
3434           gst_bus_peek now increments the refcount on the returned
3435           message.
3436
3437 2005-07-29  Wim Taymans  <wim@fluendo.com>
3438
3439         * docs/design/part-gstghostpad.txt:
3440         Overview of current GhostPad datastructures and use
3441         cases for changing the target.
3442
3443 2005-07-28  Wim Taymans  <wim@fluendo.com>
3444
3445         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
3446         Added checks for hierarchy consistency whan adding linked
3447         elements to bins.
3448
3449         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
3450         Added check to test element scheduling without bin/pipeline.
3451
3452         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
3453         First add elements to bin, then link.
3454         
3455         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
3456         (gst_bin_remove_func):
3457         Unlink pads from elements added/removed from bin to maintain
3458         hierarchy consistency.
3459
3460 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3461
3462         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
3463         (gst_base_transform_handle_buffer):
3464         * gst/base/gstbasetransform.h:
3465           Remove broken delay_configure (fixes renegotiation of software
3466           scaling pipelines); remove some leftover printf()s.
3467
3468 2005-07-28  Wim Taymans  <wim@fluendo.com>
3469
3470         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
3471         Added some more tests for wrong hierarchy
3472
3473         * docs/design/part-overview.txt:
3474         Some updates.
3475
3476         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_dispose):
3477         Cleanups.
3478
3479         * gst/gstelement.c: (gst_element_remove_pad), (gst_element_seek),
3480         (gst_element_dispose):
3481         Some more cleanups.
3482
3483         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
3484         (gst_pad_link_check_hierarchy), (gst_pad_link_prepare),
3485         (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
3486         (gst_pad_set_caps), (gst_pad_send_event):
3487         Check for correct hierarchy when linking pads. Moving to
3488         strict requirement for ghostpads when linking elements in
3489         different bins.
3490
3491         * gst/gstpad.h:
3492         Clean ups. Added WRONG_HIERARCHY return value.
3493
3494 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3495
3496         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
3497           Better debug if no transform is possible.
3498
3499 2005-07-27  Wim Taymans  <wim@fluendo.com>
3500
3501         * docs/random/wtay/network-transp:
3502         Some old doc I had.
3503
3504 2005-07-27  Wim Taymans  <wim@fluendo.com>
3505
3506         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
3507         (gst_dp_event_from_packet):
3508         Fix serialization of seek events.
3509
3510 2005-07-27  Wim Taymans  <wim@fluendo.com>
3511
3512         * check/gst-libs/gdp.c: (GST_START_TEST):
3513         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
3514         Fix compilation and fix event serialization.
3515
3516 2005-07-27  Wim Taymans  <wim@fluendo.com>
3517
3518         * CHANGES-0.9:
3519         * docs/design/part-TODO.txt:
3520         * docs/design/part-events.txt:
3521         Some docs updates
3522
3523         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3524         (gst_base_sink_event), (gst_base_sink_do_sync),
3525         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
3526         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
3527         (gst_base_src_do_seek), (gst_base_src_event_handler),
3528         (gst_base_src_loop):
3529         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
3530         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
3531         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
3532         (gst_base_transform_event), (gst_base_transform_handle_buffer),
3533         (gst_base_transform_set_passthrough),
3534         (gst_base_transform_is_passthrough):
3535         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
3536         * gst/elements/gstfilesink.c: (gst_file_sink_event):
3537         Event updates.
3538
3539         * gst/gstbuffer.h:
3540         Use faster casts.
3541
3542         * gst/gstelement.c: (gst_element_seek):
3543         * gst/gstelement.h:
3544         Update gst_element_seek.
3545
3546         * gst/gstevent.c: (gst_event_finalize), (_gst_event_copy),
3547         (gst_event_new), (gst_event_new_custom), (gst_event_get_structure),
3548         (gst_event_new_flush_start), (gst_event_new_flush_stop),
3549         (gst_event_new_eos), (gst_event_new_newsegment),
3550         (gst_event_parse_newsegment), (gst_event_new_tag),
3551         (gst_event_parse_tag), (gst_event_new_filler), (gst_event_new_qos),
3552         (gst_event_parse_qos), (gst_event_new_seek),
3553         (gst_event_parse_seek), (gst_event_new_navigation):
3554         * gst/gstevent.h:
3555         Make GstEvent use GstStructure. Add parsing code, make sure the
3556         API is sufficiently generic.
3557         Mark possible directions of events and serialization.
3558
3559         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize),
3560         (_gst_message_copy), (gst_message_new_segment_start),
3561         (gst_message_new_segment_done), (gst_message_new_custom),
3562         (gst_message_parse_segment_start),
3563         (gst_message_parse_segment_done):
3564         Small cleanups.
3565
3566         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
3567         (gst_pad_set_caps), (gst_pad_send_event):
3568         Update for new events. 
3569         Catch events sent in wrong directions.
3570
3571         * gst/gstqueue.c: (gst_queue_link_src),
3572         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
3573         (gst_queue_handle_src_query):
3574         Event updates.
3575
3576         * gst/gsttag.c:
3577         * gst/gsttag.h:
3578         Remove event code from this file.
3579
3580         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
3581         (gst_dp_event_from_packet):
3582         Event updates.
3583
3584 2005-07-27  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3585
3586         * gst/base/gstbasetransform.c: (gst_base_transform_getcaps),
3587         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
3588         (gst_base_transform_get_size), (gst_base_transform_handle_buffer):
3589           Make debugging actually useful.
3590
3591 2005-07-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3592
3593         * gst/gstpad.c: (fixate_value), (gst_pad_default_fixate),
3594         (gst_pad_fixate_caps):
3595           Implement default fixation once again, so that gst_pad_fixate()
3596           actually does anything at all. This probably needs to be some
3597           sort of a last resort, and use profile-based fixation first, but
3598           since that doesn't exist yet, this is the best we have. Fixes
3599           visualization in Totem.
3600
3601 2005-07-22  Wim Taymans  <wim@fluendo.com>
3602
3603         * docs/design/part-events.txt:
3604         Small update.
3605
3606         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3607         (gst_base_sink_do_sync), (gst_base_sink_activate_push),
3608         (gst_base_sink_activate_pull):
3609         Some more comments.
3610
3611         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init),
3612         (gst_fake_src_create):
3613         Fix handoff marshall.
3614
3615         * gst/elements/gstidentity.c: (gst_identity_class_init),
3616         (gst_identity_transform_ip):
3617         We're a real inplace element.
3618
3619         * gst/gstbus.c: (gst_bus_post):
3620         Added some comments.
3621
3622         * tests/lat.c: (fakesrc), (fakesink), (simple), (queue), (main):
3623         * tests/muxing/case1.c: (main):
3624         * tests/sched/dynamic-pipeline.c: (main):
3625         * tests/sched/interrupt1.c: (main):
3626         * tests/sched/interrupt2.c: (main):
3627         * tests/sched/interrupt3.c: (main):
3628         * tests/sched/runxml.c: (main):
3629         * tests/sched/sched-stress.c: (main):
3630         * tests/seeking/seeking1.c: (event_received), (main):
3631         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
3632         (main):
3633         * tests/threadstate/threadstate3.c: (main):
3634         * tests/threadstate/threadstate4.c: (main):
3635         * tests/threadstate/threadstate5.c: (main):
3636         Fix the tests.
3637
3638 2005-07-21  Wim Taymans  <wim@fluendo.com>
3639
3640         * docs/design/part-seeking.txt:
3641         Some small additions.
3642
3643         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3644         (gst_base_sink_get_times), (gst_base_sink_do_sync),
3645         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
3646         * gst/base/gstbasesink.h:
3647         discont values are gint64, handle the math correctly.
3648
3649         * gst/base/gstbasesrc.c: (gst_base_src_loop):
3650         Make the basesrc report error if the source pad is not linked.
3651
3652         * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
3653         (gst_queue_loop), (gst_queue_handle_src_query),
3654         (gst_queue_src_activate_push):
3655         Make queue collect data even if the srcpad is not linked.
3656         Start pushing out data as soon as it is linked.
3657
3658         * gst/gstutils.c: (gst_element_unlink), (gst_flow_get_name):
3659         * gst/gstutils.h:
3660         Added gst_flow_get_name() to ease error reporting.
3661
3662 2005-07-20  Wim Taymans  <wim@fluendo.com>
3663
3664         * gst/gstmessage.c: (gst_message_new_segment_start),
3665         (gst_message_new_segment_done), (gst_message_parse_segment_start),
3666         (gst_message_parse_segment_done):
3667         * gst/gstmessage.h:
3668         Added a bunch of messages for advanced seeking.
3669
3670         * gst/parse/grammar.y:
3671         * libs/gst/control/dparammanager.c: (gst_dpman_set_parent),
3672         (gst_dpman_state_changed):
3673         Fix some new-pad -> pad-added signals
3674
3675 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3676
3677         * docs/manual/appendix-porting.xml:
3678         * docs/pwg/appendix-porting.xml:
3679           Document new-pad/state-change signal renames and the FixedList
3680           type rename.
3681
3682 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3683
3684         * docs/manual/advanced-autoplugging.xml:
3685         * docs/manual/basics-helloworld.xml:
3686         * docs/manual/basics-pads.xml:
3687         * docs/random/ds/0.9-suggested-changes:
3688         * gst/gstelement.c: (gst_element_class_init), (gst_element_seek):
3689         * gst/gstelement.h:
3690         * gst/gstevent.h:
3691         * gst/gstformat.h:
3692         * gst/gstquery.h:
3693         * gst/gststructure.c: (gst_structure_value_get_generic_type),
3694         (gst_structure_parse_array), (gst_structure_parse_value):
3695         * gst/gstvalue.c: (gst_type_is_fixed),
3696         (gst_value_list_prepend_value), (gst_value_list_append_value),
3697         (gst_value_list_get_size), (gst_value_list_get_value),
3698         (gst_value_transform_array_string), (gst_value_serialize_array),
3699         (gst_value_deserialize_array), (gst_value_intersect_array),
3700         (gst_value_is_fixed), (_gst_value_initialize):
3701         * gst/gstvalue.h:
3702           GstElement::new-pad -> pad-added, GstElement::state-change ->
3703           state-changed, GstValueFixedList -> GstValueArray, add format and
3704           flags as their own arguments in gst_element_seek() (should improve
3705           "bindeability"), remove function generators since they don't work
3706           under a whole bunch of compilers (they were deprecated already
3707           anyway).
3708
3709 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3710
3711         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
3712         (_gst_debug_register_funcptr):
3713         * gst/gstinfo.h:
3714           Fix illegal cast on some platforms (#309253).
3715
3716 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3717
3718         * gst/gstmessage.c: (gst_message_new_custom):
3719         * gst/gstmessage.h:
3720           Add _new_custom, make _new_application a macro to _new_custom.
3721
3722 2005-07-20  Wim Taymans  <wim@fluendo.com>
3723
3724         * gst/base/gstbasesrc.c: (gst_base_src_init),
3725         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start):
3726         * gst/base/gstbasesrc.h:
3727         Add a gboolean to decide when to push out a discont.
3728
3729         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
3730         (gst_queue_loop), (gst_queue_handle_src_query),
3731         (gst_queue_sink_activate_push), (gst_queue_src_activate_push),
3732         (gst_queue_set_property), (gst_queue_get_property):
3733         Some cleanups.
3734
3735         * tests/threadstate/threadstate1.c: (main):
3736         Make a thread test compile and run... very silly..
3737
3738
3739 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3740
3741         * docs/manual/appendix-porting.xml:
3742           Mention removal of libgstgconf-0.9.la and existence of gconf
3743           elements.
3744
3745 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
3746
3747         * docs/pwg/advanced-clock.xml:
3748         * docs/pwg/appendix-porting.xml:
3749         * docs/pwg/intro-preface.xml:
3750         * docs/pwg/other-base.xml:
3751         * docs/pwg/other-manager.xml:
3752         * docs/pwg/other-nton.xml:
3753         * docs/pwg/other-ntoone.xml:
3754         * docs/pwg/other-oneton.xml:
3755         * docs/pwg/pwg.xml:
3756           Document base classes, update sections of n-to-1 and 1-to-n (muxer,
3757           demuxer), remove n-to-n (was never written), fix some code examples
3758           and links and update the porting section to include all this.
3759
3760 2005-07-19  Wim Taymans  <wim@fluendo.com>
3761
3762         * gst/gstqueue.c: (gst_queue_init), (gst_queue_handle_sink_event),
3763         (gst_queue_chain), (gst_queue_loop), (gst_queue_handle_src_event),
3764         (gst_queue_handle_src_query), (gst_queue_sink_activate_push),
3765         (gst_queue_src_activate_push), (gst_queue_change_state),
3766         (gst_queue_get_property):
3767         * gst/gstqueue.h:
3768         Propagate GstFlowReturn more intelligently upstream and output
3769         an ERROR/EOS when streaming stopped due to fatal error.
3770
3771 2005-07-19  Wim Taymans  <wim@fluendo.com>
3772
3773         * tools/gst-launch.c: (check_intr), (event_loop), (main):
3774         Don't block forever for the state change to complete, the
3775         pipeline already did with a sensible timeout.
3776
3777 2005-07-19  Wim Taymans  <wim@fluendo.com>
3778
3779         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
3780         Make sure we never call the create function is we
3781         got deactivated.
3782
3783 2005-07-19  Andy Wingo  <wingo@pobox.com>
3784
3785         * gst/parse/parse.l: Attempt to solve bug #172815.
3786
3787 2005-07-19  Wim Taymans  <wim@fluendo.com>
3788
3789         * docs/design/part-clocks.txt:
3790         * docs/design/part-events.txt:
3791         * gst/base/gstbasesrc.c: (gst_base_src_do_seek):
3792         Small docs updates.
3793         Only update the seeking values when we are not
3794         busy streaming.
3795
3796 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
3797
3798         * gst/base/gstbasesrc.c: (gst_base_src_loop):
3799           Oops, ignore the result of gst_pad_push_event here.
3800
3801 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
3802
3803         * gst/base/gstbasesrc.c: (gst_base_src_loop),
3804         (gst_base_src_activate_push):
3805           Send discont event from the loop function, as pads
3806           aren't activated yet in the activate_push handler.
3807
3808         * gst/gstbin.c: (bin_bus_handler):
3809           Don't leak element name.
3810
3811 2005-07-18  Andy Wingo  <wingo@pobox.com>
3812
3813         * configure.ac: Use AS_LIBTOOL_TAGS.
3814
3815 2005-07-18  Wim Taymans  <wim@fluendo.com>
3816
3817         * docs/gst/gstreamer.types:
3818         Remove deleted types.
3819
3820 2005-07-18  Wim Taymans  <wim@fluendo.com>
3821
3822         * check/elements/gstfakesrc.c: (GST_START_TEST):
3823         * configure.ac:
3824         * gst/Makefile.am:
3825         * gst/gst.c: (gst_init_get_popt_table), (init_pre), (init_post),
3826         (init_popt_callback):
3827         * gst/gst.h:
3828         * gst/gst_private.h:
3829         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_add_func),
3830         (gst_bin_remove_func), (gst_bin_get_state), (gst_bin_change_state):
3831         * gst/gstbin.h:
3832         * gst/gstbus.h:
3833         * gst/gstconfig.h.in:
3834         * gst/gstelement.c: (gst_element_class_init),
3835         (gst_element_set_base_time), (gst_element_get_base_time),
3836         (iterator_fold_with_resync), (gst_element_change_state),
3837         (gst_element_dispose), (gst_element_get_bus):
3838         * gst/gstelement.h:
3839         * gst/gstelementfactory.h:
3840         * gst/gsterror.c: (_gst_core_errors_init):
3841         * gst/gsterror.h:
3842         * gst/gstevent.h:
3843         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
3844         * gst/gstindex.c:
3845         * gst/gstinfo.c: (_gst_debug_init):
3846         * gst/gstmessage.c: (_gst_message_copy):
3847         * gst/gstmessage.h:
3848         * gst/gstminiobject.h:
3849         * gst/gstobject.c:
3850         * gst/gstobject.h:
3851         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
3852         (gst_pad_set_caps), (gst_pad_start_task), (gst_pad_stop_task):
3853         * gst/gstpad.h:
3854         * gst/gstparse.h:
3855         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
3856         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
3857         (gst_pipeline_get_last_stream_time):
3858         * gst/gstpipeline.h:
3859         * gst/gstpluginfeature.h:
3860         * gst/gstquery.h:
3861         * gst/gstscheduler.c:
3862         * gst/gstscheduler.h:
3863         * gst/gststructure.h:
3864         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
3865         (gst_task_finalize), (gst_task_func), (gst_task_create),
3866         (gst_task_set_lock), (gst_task_get_state), (gst_task_start),
3867         (gst_task_stop), (gst_task_pause):
3868         * gst/gsttask.h:
3869         * gst/gsttypefind.h:
3870         * gst/gsttypes.h:
3871         * gst/registries/gstlibxmlregistry.c: (load_feature),
3872         (gst_xml_registry_load), (gst_xml_registry_save_feature):
3873         * gst/registries/gstxmlregistry.c:
3874         (gst_xml_registry_start_element), (gst_xml_registry_save_feature):
3875         * gst/schedulers/threadscheduler.c:
3876         * libs/gst/control/dparammanager.h:
3877         * tools/gst-inspect.c: (print_element_list),
3878         (print_plugin_features), (print_element_features):
3879         * tools/gst-xmlinspect.c: (print_element_list),
3880         (print_plugin_info), (main):
3881         Removed plugable schedulers.
3882         Removed Scheduler/Manager from elements.
3883         Removed gsttypes.h, rearranged includes.
3884         Removed dependency pad<->element, element<>pipeline, and
3885         various others,  fix includes.
3886         implement gst_pad_get_parent() with gst_object_get_parent()
3887         Make GstTask sefcontained.
3888         Fix _get_state() on GstBin, it did not return ASYNC with a 0
3889         timeout.
3890         Fix endless loop in iterator_fold_with_resync.
3891
3892
3893 2005-07-18  Wim Taymans  <wim@fluendo.com>
3894
3895         * gst/Makefile.am:
3896         * gst/gstarch.h:
3897         Remove old file.
3898
3899 2005-07-18  Wim Taymans  <wim@fluendo.com>
3900
3901         * gst/Makefile.am:
3902         No more cothreads.h
3903
3904 2005-07-18  Wim Taymans  <wim@fluendo.com>
3905
3906         * gst/cothreads.c:
3907         * gst/cothreads.h:
3908         Let's remove these.
3909
3910 2005-07-18  Wim Taymans  <wim@fluendo.com>
3911
3912         * docs/design/part-dynamic.txt:
3913         * docs/design/part-events.txt:
3914         * docs/design/part-seeking.txt:
3915         Some more docs in the works.
3916
3917         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
3918         (gst_base_transform_getcaps), (gst_base_transform_configure_caps),
3919         (gst_base_transform_setcaps), (gst_base_transform_get_size),
3920         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
3921         (gst_base_transform_handle_buffer),
3922         (gst_base_transform_sink_activate_push),
3923         (gst_base_transform_src_activate_pull),
3924         (gst_base_transform_set_passthrough),
3925         (gst_base_transform_is_passthrough):
3926         Refcounting fixes.
3927
3928         * gst/gstbus.c: (gst_bus_source_dispatch), (gst_bus_poll):
3929         Cleanups.
3930
3931         * gst/gstevent.c: (gst_event_finalize):
3932         Set SRC to NULL.
3933
3934         * gst/gstutils.c: (gst_element_unlink),
3935         (gst_pad_get_parent_element), (gst_pad_proxy_getcaps),
3936         (gst_pad_proxy_setcaps):
3937         * gst/gstutils.h:
3938         Add _get_parent_element() to get a pads parent as an element.
3939
3940 2005-07-18  Wim Taymans  <wim@fluendo.com>
3941
3942         * check/gst/gstbin.c: (GST_START_TEST):
3943         Remove bogus test.
3944
3945 2005-07-18  Wim Taymans  <wim@fluendo.com>
3946
3947         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
3948         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
3949         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
3950         (gst_base_sink_event), (gst_base_sink_do_sync),
3951         (gst_base_sink_chain), (gst_base_sink_loop),
3952         (gst_base_sink_deactivate), (gst_base_sink_activate_push),
3953         (gst_base_sink_activate_pull), (gst_base_sink_change_state):
3954         Refcounting fixes.
3955         Fix logic for returning ASYNC when not prerolled.
3956
3957 2005-07-18  Wim Taymans  <wim@fluendo.com>
3958
3959         * gst/gstqueue.c: (gst_queue_handle_sink_event):
3960         Fix nasty refcount bug.
3961
3962 2005-07-16 Philippe Khalaf <burger@speedy.org>
3963
3964         * gst/elements/gstfdsrc.c:
3965         * gst/elements/gstfdsrc.h:
3966         * gst/elements/gstelements.c:
3967         * gst/elements/Makefile.am:
3968         Ported fdsrc to 0.9.
3969
3970 2005-07-16  Wim Taymans  <wim@fluendo.com>
3971
3972         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3973         (gst_base_sink_do_sync):
3974         Fix compile error.
3975
3976 2005-07-16  Wim Taymans  <wim@fluendo.com>
3977
3978         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
3979         (gst_base_sink_event), (gst_base_sink_get_times),
3980         (gst_base_sink_do_sync), (gst_base_sink_change_state):
3981         * gst/base/gstbasesink.h:
3982         Store and use discont values when syncing buffers as described
3983         in design docs.
3984         
3985         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
3986         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start),
3987         (gst_base_src_activate_push):
3988         Push discont event when starting.
3989
3990         * gst/elements/gstidentity.c: (gst_identity_transform):
3991         Small cleanups.
3992
3993         * gst/gstbin.c: (gst_bin_change_state):
3994         Small cleanups in base_time  distribution.
3995
3996         * gst/gstelement.c: (gst_element_set_base_time),
3997         (gst_element_get_base_time), (gst_element_change_state):
3998         * gst/gstelement.h:
3999         Added methods for the base_time of the element.
4000         Some MT fixes.
4001
4002         * gst/gstpipeline.c: (gst_pipeline_send_event),
4003         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
4004         (gst_pipeline_get_last_stream_time):
4005         * gst/gstpipeline.h:
4006         MT fixes.
4007         Handle seeking as described in design doc, remove stream_time
4008         hack.
4009         Cleanups clock and stream_time selection code. Added accessors
4010         for the stream_time.
4011         
4012
4013 2005-07-16  Andy Wingo  <wingo@pobox.com>
4014
4015         * gst/gsterror.c (_gst_core_errors_init): Use the magic word
4016         (#305291).
4017
4018 2005-07-16  Wim Taymans  <wim@fluendo.com>
4019
4020         * check/gst/gstbin.c: (GST_START_TEST):
4021         Make elements silent as the deep_notify refs the
4022         parent, which might make the test fail.
4023
4024         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
4025         Don't hold the lock for too long.
4026
4027 2005-07-16  Tim-Philipp Müller  <tim at centricular dot net>
4028
4029         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
4030           Don't unref the caps we passed to gst_caps_make_writable() after
4031           passing them. gst_caps_make_writable() will do that for us.
4032
4033 2005-07-15  Andy Wingo  <wingo@pobox.com>
4034
4035         * gst/gstcaps.h (gst_caps_is_simple): Removed deprecated macro
4036         (#157311).
4037
4038         * gst/elements/gstidentity.c (marshal_VOID__MINIOBJECT): Write our
4039         own marshalling function for the handoff signal. Properly type the
4040         buffer as a buffer. Fixes some warnings. Should do a more general
4041         solution.
4042         (gst_identity_class_init): Plug into the right marshaller.
4043
4044 2005-07-15  Wim Taymans  <wim@fluendo.com>
4045
4046         * docs/design/part-TODO.txt:
4047         * docs/design/part-clocks.txt:
4048         * docs/design/part-element-sink.txt:
4049         * docs/design/part-events.txt:
4050         * docs/design/part-gstpipeline.txt:
4051         Updated docs, mostly DISCONT related.
4052
4053 2005-07-15  Tim-Philipp Müller  <tim at centricular dot net>
4054
4055         * docs/pwg/building-pads.xml:
4056           s/GST_PAD_LINK_REFUSED/FALSE/ in gst_my_filter_setcaps()
4057
4058 2005-07-15  Andy Wingo  <wingo@pobox.com>
4059
4060         * tools/gst-typefind.c: Update, add copyright block.
4061
4062         * gst/base/gstbasesrc.c (gst_base_src_default_negotiate):
4063         Normalize and truncate caps before fixation.
4064
4065         * gst/gstcaps.h:
4066         * gst/gstcaps.c (gst_caps_truncate): New function, destructively
4067         discards all but the first structure from its argument.
4068
4069 2005-07-15  Wim Taymans  <wim@fluendo.com>
4070
4071         * gst/base/gstbasetransform.c: (gst_base_transform_init),
4072         (gst_base_transform_transform_caps), (gst_base_transform_getcaps),
4073         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
4074         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
4075         (gst_base_transform_handle_buffer), (gst_base_transform_getrange),
4076         (gst_base_transform_chain), (gst_base_transform_change_state),
4077         (gst_base_transform_set_passthrough),
4078         (gst_base_transform_is_passthrough):
4079         * gst/base/gstbasetransform.h:
4080         Make passthrough work using the bufferpools.
4081         Changed API a bit, subclasses have to write into a buffer
4082         provided by the base class.
4083         More debug info in nego functions.
4084         
4085         * gst/elements/gstidentity.c: (gst_identity_init),
4086         (gst_identity_transform):
4087         Port to new base class.
4088
4089 2005-07-15  Wim Taymans  <wim@fluendo.com>
4090
4091         * gst/gstmessage.c: (gst_message_new_state_changed):
4092         * tools/gst-launch.c: (event_loop), (main):
4093         Totally dump messages in -launch with the -m option.
4094         Fix message name for State messages,
4095
4096 2005-07-14  Wim Taymans  <wim@fluendo.com>
4097
4098         * gst/base/gstbasesrc.c: (gst_base_src_loop):
4099         Post error messages on errors.
4100
4101 2005-07-14  Wim Taymans  <wim@fluendo.com>
4102
4103         * gst/gstcaps.c: (gst_caps_do_simplify):
4104         Remove debug info.
4105
4106         * gst/gsterror.h:
4107         Define error for stream stopped.
4108
4109         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
4110         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange):
4111         Do proper return values.
4112
4113         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
4114         (gst_pad_set_caps), (gst_pad_chain), (gst_pad_push),
4115         (gst_pad_get_range):
4116         Better return values.
4117
4118         * gst/gstpad.h:
4119         Reorganise return values, add macro to check for fatal errors.
4120
4121         * gst/gstqueue.c: (gst_queue_chain):
4122         Return proper GstFlowReturn values,
4123
4124 2005-07-14  Thomas Vander Stichele  <thomas at apestaart dot org>
4125
4126         * docs/gst/gstreamer-sections.txt:
4127         * docs/gst/gstreamer.types:
4128         * docs/gst/tmpl/gst.sgml:
4129         * docs/gst/tmpl/gstbasesink.sgml:
4130         * docs/gst/tmpl/gstbasesrc.sgml:
4131         * docs/gst/tmpl/gstbasetransform.sgml:
4132         * docs/gst/tmpl/gstbin.sgml:
4133         * docs/gst/tmpl/gstbuffer.sgml:
4134         * docs/gst/tmpl/gstcaps.sgml:
4135         * docs/gst/tmpl/gstclock.sgml:
4136         * docs/gst/tmpl/gstcompat.sgml:
4137         * docs/gst/tmpl/gstconfig.sgml:
4138         * docs/gst/tmpl/gstelement.sgml:
4139         * docs/gst/tmpl/gstelementdetails.sgml:
4140         * docs/gst/tmpl/gstelementfactory.sgml:
4141         * docs/gst/tmpl/gstenumtypes.sgml:
4142         * docs/gst/tmpl/gsterror.sgml:
4143         * docs/gst/tmpl/gstevent.sgml:
4144         * docs/gst/tmpl/gstfakesink.sgml:
4145         * docs/gst/tmpl/gstfakesrc.sgml:
4146         * docs/gst/tmpl/gstfilesink.sgml:
4147         * docs/gst/tmpl/gstfilesrc.sgml:
4148         * docs/gst/tmpl/gstfilter.sgml:
4149         * docs/gst/tmpl/gstformat.sgml:
4150         * docs/gst/tmpl/gstghostpad.sgml:
4151         * docs/gst/tmpl/gstimplementsinterface.sgml:
4152         * docs/gst/tmpl/gstindex.sgml:
4153         * docs/gst/tmpl/gstindexfactory.sgml:
4154         * docs/gst/tmpl/gstinfo.sgml:
4155         * docs/gst/tmpl/gstiterator.sgml:
4156         * docs/gst/tmpl/gstmacros.sgml:
4157         * docs/gst/tmpl/gstmemchunk.sgml:
4158         * docs/gst/tmpl/gstminiobject.sgml:
4159         * docs/gst/tmpl/gstobject.sgml:
4160         * docs/gst/tmpl/gstpad.sgml:
4161         * docs/gst/tmpl/gstpadtemplate.sgml:
4162         * docs/gst/tmpl/gstparse.sgml:
4163         * docs/gst/tmpl/gstpipeline.sgml:
4164         * docs/gst/tmpl/gstplugin.sgml:
4165         * docs/gst/tmpl/gstpluginfeature.sgml:
4166         * docs/gst/tmpl/gstquery.sgml:
4167         * docs/gst/tmpl/gstqueue.sgml:
4168         * docs/gst/tmpl/gstregistry.sgml:
4169         * docs/gst/tmpl/gstregistrypool.sgml:
4170         * docs/gst/tmpl/gstscheduler.sgml:
4171         * docs/gst/tmpl/gstschedulerfactory.sgml:
4172         * docs/gst/tmpl/gststructure.sgml:
4173         * docs/gst/tmpl/gstsystemclock.sgml:
4174         * docs/gst/tmpl/gsttaglist.sgml:
4175         * docs/gst/tmpl/gsttagsetter.sgml:
4176         * docs/gst/tmpl/gsttrace.sgml:
4177         * docs/gst/tmpl/gsttrashstack.sgml:
4178         * docs/gst/tmpl/gsttypefind.sgml:
4179         * docs/gst/tmpl/gsttypefindfactory.sgml:
4180         * docs/gst/tmpl/gsttypes.sgml:
4181         * docs/gst/tmpl/gsturihandler.sgml:
4182         * docs/gst/tmpl/gsturitype.sgml:
4183         * docs/gst/tmpl/gstutils.sgml:
4184         * docs/gst/tmpl/gstvalue.sgml:
4185         * docs/gst/tmpl/gstversion.sgml:
4186         * docs/gst/tmpl/gstxml.sgml:
4187         * docs/libs/tmpl/gstcontrol.sgml:
4188         * docs/libs/tmpl/gstdataprotocol.sgml:
4189         * docs/libs/tmpl/gstdparam.sgml:
4190         * docs/libs/tmpl/gstdplinint.sgml:
4191         * docs/libs/tmpl/gstdpman.sgml:
4192         * docs/libs/tmpl/gstdpsmooth.sgml:
4193         * docs/libs/tmpl/gstgetbits.sgml:
4194         * docs/libs/tmpl/gstunitconvert.sgml:
4195         * gst/base/gstpushsrc.c: (gst_push_src_get_type),
4196         (gst_push_src_base_init), (gst_push_src_class_init),
4197         (gst_push_src_init), (gst_push_src_create):
4198         * gst/base/gstpushsrc.h:
4199         * gst/elements/gstelements.c:
4200         * gst/elements/gstfakesink.c: (gst_fake_sink_state_error_get_type),
4201         (gst_fake_sink_base_init), (gst_fake_sink_class_init),
4202         (gst_fake_sink_init), (gst_fake_sink_set_property),
4203         (gst_fake_sink_get_property), (gst_fake_sink_get_times),
4204         (gst_fake_sink_event), (gst_fake_sink_preroll),
4205         (gst_fake_sink_render), (gst_fake_sink_change_state):
4206         * gst/elements/gstfakesink.h:
4207         * gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type),
4208         (gst_fake_src_sizetype_get_type), (gst_fake_src_filltype_get_type),
4209         (gst_fake_src_base_init), (gst_fake_src_class_init),
4210         (gst_fake_src_init), (gst_fake_src_event_handler),
4211         (gst_fake_src_alloc_parent), (gst_fake_src_set_property),
4212         (gst_fake_src_get_property), (gst_fake_src_prepare_buffer),
4213         (gst_fake_src_alloc_buffer), (gst_fake_src_get_size),
4214         (gst_fake_src_create_buffer), (gst_fake_src_create),
4215         (gst_fake_src_start), (gst_fake_src_stop):
4216         * gst/elements/gstfakesrc.h:
4217         * gst/elements/gstfilesink.c: (_do_init),
4218         (gst_file_sink_base_init), (gst_file_sink_class_init),
4219         (gst_file_sink_init), (gst_file_sink_dispose),
4220         (gst_file_sink_set_location), (gst_file_sink_set_property),
4221         (gst_file_sink_get_property), (gst_file_sink_open_file),
4222         (gst_file_sink_close_file), (gst_file_sink_query),
4223         (gst_file_sink_event), (gst_file_sink_render),
4224         (gst_file_sink_change_state), (gst_file_sink_uri_get_type),
4225         (gst_file_sink_uri_get_protocols), (gst_file_sink_uri_get_uri),
4226         (gst_file_sink_uri_set_uri), (gst_file_sink_uri_handler_init):
4227         * gst/elements/gstfilesink.h:
4228         * gst/elements/gstfilesrc.c: (_do_init), (gst_file_src_base_init),
4229         (gst_file_src_class_init), (gst_file_src_init),
4230         (gst_file_src_finalize), (gst_file_src_set_location),
4231         (gst_file_src_set_property), (gst_file_src_get_property),
4232         (gst_file_src_map_region), (gst_file_src_map_small_region),
4233         (gst_file_src_create_mmap), (gst_file_src_create_read),
4234         (gst_file_src_create), (gst_file_src_is_seekable),
4235         (gst_file_src_get_size), (gst_file_src_start), (gst_file_src_stop),
4236         (gst_file_src_uri_get_type), (gst_file_src_uri_get_protocols),
4237         (gst_file_src_uri_get_uri), (gst_file_src_uri_set_uri),
4238         (gst_file_src_uri_handler_init):
4239         * gst/elements/gstfilesrc.h:
4240           more autistic cleanliness in functions/names/defines
4241
4242 2005-07-13  Andy Wingo  <wingo@pobox.com>
4243
4244         * gst/base/gstbasesrc.c (gst_base_src_start): Post an error if the
4245         source couldn't negotiate.
4246
4247         * gst/parse/grammar.y: Revert 1.54->1.55, so we now do filtered
4248         connections again.
4249
4250         * gst/gstutils.h:
4251         * gst/gstutils.c (gst_element_link_pads_filtered): New old
4252         function. I am channeling Hades. Put your boots on suckers!!!
4253
4254 2005-07-13  Thomas Vander Stichele  <thomas at apestaart dot org>
4255
4256         * testsuite/caps/Makefile.am:
4257         * testsuite/caps/value_compare.c:
4258         * testsuite/caps/value_intersect.c:
4259         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
4260           move two testsuite apps over to the check dir
4261
4262 2005-07-12  Wim Taymans  <wim@fluendo.com>
4263
4264         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
4265         Added more debug info in the negotiate process.
4266
4267         * gst/gstmessage.h:
4268         Prepare for segment playback.
4269
4270         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps):
4271         Better debugging.
4272
4273         * gst/gstutils.c:
4274         Some more docs.
4275
4276         * tools/gst-launch.c: (main):
4277         NULL pipeline on errors.
4278
4279 2005-07-12  Andy Wingo  <wingo@pobox.com>
4280
4281         * gst/gstbuffer.c (_gst_buffer_copy): Copy the buffer whether or
4282         not it comes from a malloc region. Make sure our copy gets freed.
4283
4284 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4285
4286         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
4287         * check/gst/gstmessage.c: (GST_START_TEST):
4288         * check/gst/gststructure.c: (GST_START_TEST),
4289         (gst_structure_suite), (main):
4290           more testing
4291         * gst/gstelement.c: (gst_element_message_full):
4292           clean up GError and debug string now that they get copied
4293         * gst/gstmessage.c: (gst_message_new_error),
4294         (gst_message_new_warning), (gst_message_parse_error),
4295         (gst_message_parse_warning):
4296           use GST_TYPE_G_ERROR for structure_new, and take copies of
4297           arguments, so that we don't mess up refcounting
4298
4299 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4300
4301         * check/Makefile.am:
4302           add per-test valgrind targets
4303         * check/gst-libs/gdp.c: (GST_START_TEST),
4304         (gst_data_protocol_suite), (main):
4305           clean up
4306
4307 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4308
4309         * check/Makefile.am:
4310           instate more valgrindable tests
4311         * check/elements/gstfakesrc.c: (chain_func), (event_func),
4312         (GST_START_TEST), (fakesrc_suite):
4313         * check/gst/gstpad.c: (GST_START_TEST):
4314         * check/gst/gststructure.c: (GST_START_TEST):
4315           fix test leaks
4316         * docs/gst/tmpl/gstminiobject.sgml:
4317         * gst/gstpad.c: (gst_pad_finalize):
4318           fix the static mutex leak
4319
4320 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4321
4322         * check/Makefile.am:
4323           add two more tests for valgrinding
4324         * check/gst/gstvalue.c: (GST_START_TEST):
4325           test refcount of deserialized buffer, found a leak
4326         * docs/gst/gstreamer-docs.sgml:
4327         * docs/gst/gstreamer-sections.txt:
4328         * docs/gst/gstreamer.types:
4329         * docs/gst/tmpl/gstminiobject.sgml:
4330           add miniobject to docs
4331         * gst/gstminiobject.c:
4332           add some docs
4333         * gst/gstvalue.c: (gst_value_deserialize_buffer),
4334         (gst_string_unwrap):
4335           fix a hard-to-find invalid write for one of the tests
4336           fix a leak for deserialized buffers
4337
4338 2005-07-11  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4339
4340         * docs/pwg/advanced-events.xml:
4341         * docs/pwg/advanced-request.xml:
4342         * docs/pwg/advanced-scheduling.xml:
4343         * docs/pwg/appendix-porting.xml:
4344         * docs/pwg/building-boiler.xml:
4345         * docs/pwg/intro-preface.xml:
4346         * docs/pwg/other-ntoone.xml:
4347           Rewrite scheduling-chapter for scheduling model in 0.9. Add lots
4348           of example code and explanation for pad activation, loop() and
4349           getrange() functions and a bit more. Remove old comments pointing
4350           to loop-functions.
4351         * examples/pwg/Makefile.am:
4352           Add loop/getrange examples.
4353
4354 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4355
4356         * configure.ac:
4357           check for valgrind binary + some fixes
4358         * check/gst.supp:
4359           valgrind suppressions for the tests
4360         * check/Makefile.am:
4361           add a valgrind: target that valgrinds the unit tests
4362         * check/gst/gst.c: (GST_START_TEST), (gst_suite):
4363         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
4364         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
4365         * check/gst/gstghostpad.c:
4366           added some cleanup
4367         * check/gst/gstdata.c:
4368           removed
4369         * check/gst/gstminiobject.c: (GST_START_TEST), (thread_ref),
4370         (thread_unref), (gst_mini_object_suite), (main):
4371           added
4372         * gst/gst.c: (gst_deinit):
4373         * gst/gst.h:
4374           add a method to clean up.
4375         * gst/gstsystemclock.c: (gst_system_clock_dispose),
4376         (gst_system_clock_obtain):
4377           allow for disposing the system clock.
4378         * tools/gst-launch.c: (main):
4379           deinit
4380
4381 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4382
4383         * docs/gst/tmpl/gstbasesrc.sgml:
4384         * docs/gst/tmpl/gstfakesrc.sgml:
4385         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
4386         (gst_base_src_init), (gst_base_src_set_property),
4387         (gst_base_src_get_property), (gst_base_src_get_range),
4388         (gst_base_src_start):
4389         * gst/base/gstbasesrc.h:
4390           add num-buffers property
4391         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
4392         (gst_fakesrc_init), (gst_fakesrc_set_property),
4393         (gst_fakesrc_get_property), (gst_fakesrc_create),
4394         (gst_fakesrc_start):
4395           remove num-buffers property
4396
4397 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
4398
4399         * docs/gst/gstreamer-sections.txt:
4400         * docs/gst/tmpl/gstbasesink.sgml:
4401         * docs/gst/tmpl/gstbasesrc.sgml:
4402         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
4403         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
4404         (gst_base_sink_finalize), (gst_base_sink_set_clock),
4405         (gst_base_sink_set_property), (gst_base_sink_get_property),
4406         (gst_base_sink_handle_object), (gst_base_sink_event),
4407         (gst_base_sink_do_sync), (gst_base_sink_handle_event),
4408         (gst_base_sink_handle_buffer), (gst_base_sink_chain),
4409         (gst_base_sink_loop), (gst_base_sink_deactivate),
4410         (gst_base_sink_activate_push), (gst_base_sink_activate_pull),
4411         (gst_base_sink_change_state):
4412         * gst/base/gstbasesink.h:
4413         * gst/base/gstbasesrc.h:
4414         * gst/elements/gstfakesink.c: (gst_fakesink_get_times):
4415         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
4416         (gst_filesink_init):
4417           more macro splitting
4418
4419 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
4420
4421         * gst/gstelement.c: (gst_element_get_bus):
4422           add debug
4423         * tools/gst-launch.c: (check_intr), (event_loop):
4424           fix bus leaks
4425
4426 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
4427
4428         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
4429           fix a caps leak
4430
4431 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
4432
4433         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
4434         (gst_base_src_finalize):
4435           add finalize method and clean up properly
4436         * gst/gstpipeline.c: (gst_pipeline_dispose):
4437           add debug
4438
4439 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4440
4441         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST),
4442         (gst_bin_suite):
4443           add more things to check
4444         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
4445         * gst/gstelement.c:
4446           more debug
4447
4448 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4449
4450         * check/elements/gstfakesrc.c: (chain_func), (event_func),
4451         (GST_START_TEST), (fakesrc_suite):
4452         * check/gst-libs/gdp.c: (GST_START_TEST):
4453         * check/gst/gst.c: (GST_START_TEST):
4454         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
4455         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
4456         * check/gst/gstbus.c: (GST_START_TEST):
4457         * check/gst/gstcaps.c: (GST_START_TEST):
4458         * check/gst/gstdata.c: (GST_START_TEST):
4459         * check/gst/gstelement.c: (GST_START_TEST):
4460         * check/gst/gstghostpad.c: (GST_START_TEST):
4461         * check/gst/gstiterator.c: (GST_START_TEST):
4462         * check/gst/gstmessage.c: (GST_START_TEST):
4463         * check/gst/gstobject.c: (GST_START_TEST):
4464         * check/gst/gstpad.c: (GST_START_TEST):
4465         * check/gst/gststructure.c: (GST_START_TEST):
4466         * check/gst/gstsystemclock.c: (GST_START_TEST),
4467         (gst_systemclock_suite):
4468         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
4469         * check/gst/gstvalue.c: (GST_START_TEST):
4470         * check/pipelines/cleanup.c: (GST_START_TEST):
4471         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
4472         * check/states/sinks.c: (GST_START_TEST):
4473         * check/gstcheck.c: (gst_check_init):
4474         * check/gstcheck.h:
4475           add debugging category
4476           use GST_START_TEST now, so we add a debug line
4477
4478 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4479
4480         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite):
4481           add test for state change message on a bin
4482         * check/gst/gstelement.c: (START_TEST), (gst_element_suite):
4483           add another test
4484         * gst/gstbin.c: (gst_bin_init):
4485         * gst/gstbus.c: (gst_bus_init), (gst_bus_post):
4486         * gst/gstelement.c: (gst_element_post_message),
4487         (gst_element_set_state):
4488         * gst/gstelementfactory.c: (gst_element_factory_create):
4489         * gst/gstmessage.c: (gst_message_new):
4490         * gst/gstscheduler.c:
4491           various debugging additions and cleanups
4492
4493 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
4494
4495         * check/Makefile.am:
4496         * check/gst/gstelement.c: (START_TEST), (gst_element_suite),
4497         (main):
4498           adding tests for elements
4499         * gst/gstelement.c: (gst_element_dispose):
4500
4501 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
4502
4503         * gst/registries/gstlibxmlregistry.c: (load_feature):
4504           plug more leaks.  A simple gst_init() now is leakfree, yay.
4505
4506 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
4507
4508         * gst/registries/gstlibxmlregistry.c: (read_string), (load_paths),
4509         (gst_xml_registry_load):
4510           plug another memleak
4511
4512 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
4513
4514         * configure.ac:
4515           use GST_SET_ERROR_CFLAGS
4516         * docs/faq/cvs.xml:
4517           change to ERROR_CFLAGS
4518
4519 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
4520
4521         * configure.ac:
4522           make GST_ERROR_CFLAGS overridable and re-enable Werror
4523         * docs/faq/cvs.xml:
4524           add a note about error CFLAGS
4525         * docs/gst/tmpl/gstfakesrc.sgml:
4526         * gst/elements/gstfakesrc.c:
4527           comment out some unused code
4528         * gst/gst.c: (split_and_iterate):
4529         * gst/registries/gstlibxmlregistry.c: (load_pad_template),
4530         (load_feature):
4531           plug some memleaks
4532
4533 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
4534
4535         * common/Makefile.am:
4536         * common/gtk-doc.mak:
4537         * docs/gst/Makefile.am:
4538           factor out gtk-doc.mak
4539
4540 2005-07-07  Wim Taymans  <wim@fluendo.com>
4541
4542         * gst/schedulers/threadscheduler.c: (gst_thread_scheduler_func),
4543         (gst_thread_scheduler_dispose):
4544         Unlock the STREAM_LOCK completely.
4545
4546 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
4547
4548         * check/Makefile.am:
4549         * check/elements/.cvsignore:
4550         * check/elements/gstfakesrc.c: (chain_func), (event_func),
4551         (START_TEST), (fakesrc_suite), (main):
4552         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
4553         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
4554         (gst_fakesrc_create), (gst_fakesrc_start):
4555         * gst/elements/gstfakesrc.h:
4556           adding a first element test
4557
4558 2005-07-07  Andy Wingo  <wingo@pobox.com>
4559
4560         * gst/gstbus.c (gst_bus_have_pending): Remove intensely irritating
4561         debug message.
4562
4563 2005-07-07  Wim Taymans  <wim@fluendo.com>
4564
4565         * gst/gstquery.c:
4566         * gst/gstquery.h:
4567         Remove old types
4568
4569 2005-07-07  Wim Taymans  <wim@fluendo.com>
4570
4571         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
4572         (gst_base_src_default_negotiate), (gst_base_src_negotiate):
4573         Allow subclasses to implement their own negotiation.
4574
4575 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
4576
4577         * docs/design/part-gstbin.txt:
4578         * docs/design/part-gstpipeline.txt:
4579           Update design notes to reflect the movement of
4580           responsibility for bus handling from GstPipeline to
4581           GstBin
4582
4583 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
4584
4585         * configure.ac:
4586           Remove unnecessary queue2/3/4 examples.
4587
4588 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
4589
4590         * examples/Makefile.am:
4591         * examples/helloworld/helloworld.c: (event_loop), (main):
4592         * examples/queue/queue.c: (event_loop), (main):
4593         * examples/queue2/queue2.c: (main):
4594           Update a couple of the examples to work again.
4595
4596         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
4597         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_event):
4598          Spelling corrections and extra debug.
4599         
4600         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init), (is_eos),
4601         (gst_bin_add_func), (bin_element_is_sink), (gst_bin_get_state),
4602         (gst_bin_change_state), (gst_bin_dispose), (bin_bus_handler):
4603         * gst/gstbin.h:
4604         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
4605         (gst_pipeline_change_state):
4606         * gst/gstpipeline.h:
4607           Move the bus handler for children to the GstBin, and create a
4608           separate bus for receiving messages from children to the one the
4609           bus sends 'upwards' on.
4610
4611 2005-07-06  Wim Taymans  <wim@fluendo.com>
4612
4613         * gst/base/README:
4614         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
4615         (gst_base_sink_handle_object), (gst_base_sink_loop),
4616         (gst_base_sink_change_state):
4617         * gst/base/gstbasesink.h:
4618         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
4619         (gst_base_src_init), (gst_base_src_setcaps),
4620         (gst_base_src_getcaps), (gst_base_src_loop),
4621         (gst_base_src_default_negotiate), (gst_base_src_negotiate),
4622         (gst_base_src_start), (gst_base_src_change_state):
4623         * gst/base/gstbasesrc.h:
4624         Make basesrc negotiate.
4625         Handle the case where preroll fails in basesink.
4626         Update README.
4627
4628 2005-07-06  Wim Taymans  <wim@fluendo.com>
4629
4630         * gst/gstpad.c: (gst_pad_fixate_caps), (gst_pad_accept_caps):
4631         Implement the fixate function.
4632         Clean up acceptcaps.
4633
4634 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4635
4636         * docs/pwg/building-filterfactory.xml:
4637         * docs/pwg/pwg.xml:
4638           Remove never-written filter-factory chapter; I'll add the various
4639           base classes to part 4 ("other element types") later on.
4640
4641 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4642
4643         * docs/pwg/advanced-negotiation.xml:
4644         * docs/pwg/building-boiler.xml:
4645         * docs/pwg/building-pads.xml:
4646         * docs/pwg/pwg.xml:
4647         * examples/pwg/Makefile.am:
4648           Add a chapter on caps negotiation, simplify the original code
4649           samples a bit w.r.t. caps negotiation, add link to the advanced
4650           section. Add a bunch of examples showing different use cases of
4651           different types of caps negotiation. Upstream renegotiation isn't
4652           fully documented yet since nobody knows how that works.
4653
4654 2005-07-06  Thomas Vander Stichele  <thomas at apestaart dot org>
4655
4656         * check/gst/gstpad.c:
4657         * check/gstcheck.c:
4658         * gst/gstpad.c: (gst_pad_get_internal_links_default):
4659           if pad has no parent, return NULL as list of internal links
4660
4661 2005-07-05  Andy Wingo  <wingo@pobox.com>
4662
4663         * gst/elements/gstfilesrc.c:
4664         * gst/elements/gstfakesrc.c: 
4665         * gst/base/gstpushsrc.c:
4666         * gst/base/gstbasesrc.h: 
4667         * gst/base/gstbasesrc.c: s/BASESRC/BASE_SRC/g.
4668         
4669 2005-07-05  Stefan Kost  <ensonic@users.sf.net>
4670
4671         * Makefile.am:
4672           better report generation target (lcov needs a patch)
4673
4674 2005-07-05  Andy Wingo  <wingo@pobox.com>
4675
4676         * gst/elements, testsuite: Null if we got it...
4677
4678 2005-07-05  Wim Taymans  <wim@fluendo.com>
4679
4680         * configure.ac:
4681         * libs/gst/dataprotocol/Makefile.am:
4682         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_validate_packet):
4683         * libs/gst/dataprotocol/dataprotocol.h:
4684         * pkgconfig/Makefile.am:
4685         * pkgconfig/gstreamer-dataprotocol-uninstalled.pc.in:
4686         * pkgconfig/gstreamer-dataprotocol.pc.in:
4687         Ported dataprotol to 0.9. 
4688         Added pkgconfig files.
4689
4690 2005-07-05  Andy Wingo  <wingo@pobox.com>
4691
4692         * gst/base/gstbasetransform.c (gst_base_transform_setcaps):
4693         Default to returning TRUE for the case when tranform_caps returns
4694         a fixed caps, like for identity or volume.
4695
4696         * check/gst/gstbus.c (pound_bus_with_messages): 
4697         * check/gst/gstmessage.c (START_TEST): 
4698         * check/pipelines/simple_launch_lines.c (got_handoff): Application
4699         message API change.
4700
4701         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): More
4702         logic weaks here: always run transform_caps, trying passthrough
4703         operation only if the original caps intersects with the transform.
4704
4705         * gst/gstpad.c (gst_pad_link_check_compatible_unlocked): Debug
4706         source and sink caps.
4707
4708         * gst/base/gstbasetransform.c (gst_base_transform_getcaps):
4709         Intersect the peer caps with the pad template before going into
4710         transform_caps.
4711         (gst_base_transform_transform_caps): More debugging.
4712
4713         * gst/gstmessage.h (gst_message_new_application): Take a GstObject
4714         src argument.
4715
4716 2005-07-04  Edward Hervey  <edward@fluendo.com>
4717
4718         * gst/gstutils.c:
4719         * gst/gstutils.h:
4720         (gst_pad_add_*_probe): now returns the signal id for better wrapping
4721         in bindings.
4722
4723 2005-07-04  Andy Wingo  <wingo@pobox.com>
4724
4725         * check/gst/gstpad.c: Only set explicit caps on pads.
4726
4727 2005-07-01  Andy Wingo  <wingo@pobox.com>
4728
4729         * tests/network-clock.scm: Commentary update.
4730
4731         * gst/elements/gstidentity.c (PROP_DUPLICATE): Gone daddy gone.
4732         Didn't really make sense, not implementable with basetransform,
4733         etc.
4734         (gst_identity_transform): Unref inbuf via make_writable. Feeble
4735         attempt at implementing the sync property, needs an unlock method.
4736
4737         * gst/base/gstbasetransform.c (gst_base_transform_transform_caps):
4738         New func, by default returns the same caps (the identity
4739         transformation).
4740         (gst_base_transform_getcaps): Uses transform_caps to return
4741         something sensible.
4742         (gst_base_transform_setcaps): Complicated logic to get caps on
4743         both pads, even if they are different, and to call set_caps once
4744         for every time both pads get their caps set.
4745         (gst_base_transform_handle_buffer): Give the ref to the transform
4746         function. Allows in-place modification of the buffer.
4747
4748         * gst/base/gstbasetransform.h (transform_caps): New class method.
4749         Given caps on one side, what can I do on the other.
4750         (set_caps): Take two caps, one for each side of the element.
4751
4752         * gst/gstpad.h:
4753         * gst/gstpad.c (gst_pad_fixate_caps): Change prototype to modify
4754         caps in place. This is safe because we can check the mutability of
4755         the caps, and a good idea because fixate functions are just called
4756         as a matter of last resort. (Not actually implemented.)
4757         (gst_pad_set_caps): If the caps we're setting is actually the same
4758         as the existing pad caps, just update the pointer without calling
4759         setcaps. Assert that caps is either NULL or fixed, as per the
4760         docs.
4761
4762         * gst/gstghostpad.c: Update for fixate changes.
4763
4764 2005-07-02  Andy Wingo  <wingo@pobox.com>
4765
4766         * gst/gstcaps.c:
4767         * gst/gstcaps.h (gst_static_caps_get): Not const return, having
4768         two refcounts makes it immutable, which is enough. Doc more.
4769
4770 2005-07-02  Jan Schmidt  <thaytan@mad.scientist.com>
4771
4772         * gst/gstpad.c: (gst_pad_emit_have_data_signal):
4773           Put the mini_object into GValue as a mini_object,
4774           not a gpointer, since that's how we declared
4775           the signal.
4776
4777 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4778
4779         * examples/pwg/Makefile.am:
4780           Fix buildbot again.
4781
4782 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4783
4784         * docs/pwg/building-testapp.xml:
4785           Add extra check.
4786         * examples/pwg/Makefile.am:
4787           Fix buildbot.
4788
4789 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4790
4791         * configure.ac:
4792         * examples/Makefile.am:
4793         * examples/pwg/Makefile.am:
4794         * examples/pwg/extract.pl:
4795           Enable building the PWG examples.
4796         * docs/pwg/advanced-interfaces.xml:
4797           Add URI interface stub.
4798         * docs/pwg/advanced-types.xml:
4799         * docs/pwg/other-autoplugger.xml:
4800         * docs/pwg/appendix-porting.xml:
4801         * docs/pwg/pwg.xml:
4802           Add porting guide (mostly stubs), remove autoplugging (see ADM).
4803         * docs/pwg/building-boiler.xml:
4804         * docs/pwg/building-chainfn.xml:
4805         * docs/pwg/building-pads.xml:
4806         * docs/pwg/building-props.xml:
4807         * docs/pwg/building-state.xml:
4808         * docs/pwg/building-testapp.xml:
4809           Update the building-*.xml parts for 0.9 changes. All examples
4810           code blocks compile in examples/pwg/*.
4811
4812 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4813
4814         * docs/manual/advanced-autoplugging.xml:
4815         * docs/manual/appendix-checklist.xml:
4816         * docs/manual/appendix-integration.xml:
4817         * docs/manual/highlevel-components.xml:
4818           Fix playbin/decodebin examples, update docs a bit, mention bus
4819           instead of signals in various places, mention kmplayer and
4820           kaffeine since they have a working GStreamer backend in the KDE
4821           section.
4822
4823 2005-06-30  Wim Taymans  <wim@fluendo.com>
4824
4825         * CHANGES-0.9:
4826         * docs/design/draft-ghostpads.txt:
4827         * docs/design/draft-push-pull.txt:
4828         * docs/design/draft-query.txt:
4829         * docs/design/part-TODO.txt:
4830         * docs/design/part-query.txt:
4831         Added CHANGES-0.9 doc, updated status of other docs.
4832         
4833         * gst/gstquery.h:
4834         Remove "hmm" macro
4835
4836 2005-06-30  Wim Taymans  <wim@fluendo.com>
4837
4838         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
4839         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
4840         (gst_base_sink_change_state):
4841         * gst/base/gstbasesink.h:
4842         Some tweaks, only EOS and a buffer complete a preroll.
4843
4844 2005-06-30  Andy Wingo  <wingo@pobox.com>
4845
4846         * gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
4847         activate_push down to the internal pad as well.
4848
4849 2005-06-30  Torsten Schoenfeld  <kaffeetisch@gmx.de>
4850
4851         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4852
4853         * gst/gsttaginterface.c:
4854           Some documentation fixes (#307394 and #307397).
4855
4856 2005-06-30  Antoine Tremblay  <hexa00@gmail.com>
4857
4858         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4859
4860         * gst/gstvalue.c: (gst_value_intersect_list):
4861           Fix memleak (#309125).
4862
4863 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4864
4865         * docs/manual/advanced-dataaccess.xml:
4866           Fix fakesrc example to compile; doesn't work, bug somewhere...?
4867         * docs/manual/basics-pads.xml:
4868           Add reference for filtered caps to above chapter.
4869
4870 2005-06-30  Wim Taymans  <wim@fluendo.com>
4871
4872         * gst/gstbin.c: (clear_queue), (remove_all_from_queue),
4873         (gst_bin_change_state):
4874         Probes are gone.
4875         Lame attempt at making the state change function a bit
4876         more readable.
4877
4878 2005-06-30  Wim Taymans  <wim@fluendo.com>
4879
4880         * docs/design/part-clocks.txt:
4881         * docs/design/part-element-sink.txt:
4882         * docs/design/part-events.txt:
4883         * docs/design/part-preroll.txt:
4884         * docs/design/part-states.txt:
4885         Some more tweeks and additions to the docs.
4886
4887 2005-06-30  Wim Taymans  <wim@fluendo.com>
4888
4889         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
4890         (default_have_data), (gst_pad_class_init), (gst_pad_init),
4891         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
4892         (gst_pad_check_pull_range), (gst_pad_get_range),
4893         (gst_pad_pull_range), (gst_pad_push_event), (gst_pad_send_event):
4894         * gst/gstpad.h:
4895         * gst/gstutils.c: (gst_atomic_int_set), (gst_pad_add_data_probe),
4896         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
4897         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
4898         (gst_pad_remove_buffer_probe):
4899         Removed atomic operations, use existing LOCK.
4900         Move exception handling out of main code path.
4901
4902 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4903
4904         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
4905         (silly_return_true_function), (gst_pad_class_init),
4906         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
4907         (gst_pad_get_range), (gst_pad_pull_range), (gst_pad_push_event),
4908         (gst_pad_send_event):
4909           Fix accumulator, add default value by using _emitv() instead
4910           of _emit() for signal emission.
4911
4912 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4913
4914         * docs/manual/advanced-dataaccess.xml:
4915         * examples/manual/Makefile.am:
4916           Add probe example.
4917         * gst/gstpad.c: (_gst_do_pass_data_accumulator):
4918           Make work (??).
4919
4920 2005-06-29  Tim-Philipp Müller  <tim at centricular dot net>
4921
4922         * gst/elements/gstfilesink.c: (gst_filesink_render):
4923           Simplify code so that we don't have to handle short
4924           writes and return GST_FLOW_ERROR if an error occured.
4925
4926 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4927
4928         * docs/gst/gstreamer-docs.sgml:
4929           Remove probes more.
4930
4931 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4932
4933         * docs/gst/gstreamer-sections.txt:
4934         * docs/gst/tmpl/gstpad.sgml:
4935         * docs/gst/tmpl/gstprobe.sgml:
4936         * gst/Makefile.am:
4937         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
4938         (gst_pad_class_init), (gst_pad_init), (gst_pad_chain),
4939         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
4940         (gst_pad_push_event), (gst_pad_send_event):
4941         * gst/gstpad.h:
4942         * gst/gstutils.c: (gst_pad_add_data_probe),
4943         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
4944         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
4945         (gst_pad_remove_buffer_probe):
4946         * gst/gstutils.h:
4947           Remove old probes, add new g-signal-based probes and some utility
4948           functions.
4949
4950 2005-06-29  Edward Hervey  <edward@fluendo.com>
4951
4952         * gst/gstelementfactory.c:
4953         * gst/gstutils.h:
4954         * gst/gstutils.c:
4955         Moved gst_element_factory_can_[sink|src]_caps() to gstutils and added
4956         the definition to the header file.
4957
4958 2005-06-29  Andy Wingo  <wingo@pobox.com>
4959
4960         * docs/gst/Makefile.am (scan-build.stamp): Totally only check
4961         plugins from the source directory.
4962
4963 2005-06-29  Wim Taymans  <wim@fluendo.com>
4964
4965         * docs/gst/tmpl/gstbuffer.sgml:
4966         * docs/gst/tmpl/gstclock.sgml:
4967         Some fixings for blantently wrong text.
4968
4969 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
4970
4971         * check/Makefile.am:
4972         * gst/gst.c: (add_path_func), (init_pre):
4973         * gst/gstregistry.c: (gst_registry_add_path):
4974           add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will
4975           only scan the GST_PLUGIN_PATH locations, and not add
4976           system locations
4977
4978 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
4979
4980         * docs/gst/gstreamer-sections.txt:
4981         * docs/gst/tmpl/gstbasesrc.sgml:
4982         * gst/gstelement.c:
4983         * gst/gstelement.h:
4984         * gst/gstevent.c:
4985         * gst/gstutils.c:
4986           doc fixes
4987
4988 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4989
4990         * docs/manual/advanced-autoplugging.xml:
4991           Fix autoplugging example.
4992
4993 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
4994
4995         * docs/manual/advanced-autoplugging.xml:
4996         * docs/manual/mime-world.fig:
4997           Try to get autoplugging working, fix type detection. Fix text
4998           in hello-world image.
4999
5000 2005-06-29  Wim Taymans  <wim@fluendo.com>
5001
5002         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
5003         (gst_base_sink_change_state):
5004         Small debug line.
5005
5006         * gst/gstclock.h:
5007         map SIGNAL and BROADCAST to the right function.
5008
5009         * gst/gstobject.h:
5010         Remove redundant braces.
5011
5012         * gst/gstpad.c: (gst_pad_set_caps):
5013         Don't call setcaps function when reseting caps to NULL.
5014
5015         * gst/gstsystemclock.c: (gst_system_clock_dispose),
5016         (gst_system_clock_async_thread), (gst_system_clock_id_wait_async),
5017         (gst_system_clock_id_unschedule):
5018         Use BROADCAST as this is what we do.
5019
5020 2005-06-29  Wim Taymans  <wim@fluendo.com>
5021
5022         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5023         We are actually prerolling before commiting the state
5024         change. 
5025
5026 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5027
5028         * docs/manual/advanced-clocks.xml:
5029         * docs/manual/advanced-interfaces.xml:
5030         * docs/manual/advanced-metadata.xml:
5031         * docs/manual/advanced-position.xml:
5032         * docs/manual/advanced-schedulers.xml:
5033         * docs/manual/advanced-threads.xml:
5034         * docs/manual/appendix-porting.xml:
5035         * docs/manual/basics-bins.xml:
5036         * docs/manual/basics-bus.xml:
5037         * docs/manual/basics-elements.xml:
5038         * docs/manual/basics-helloworld.xml:
5039         * docs/manual/basics-pads.xml:
5040         * docs/manual/highlevel-components.xml:
5041         * docs/manual/manual.xml:
5042         * docs/manual/thread.fig:
5043           Update (until threads/scheduling) Application Development Manual;
5044           remove GstThread, add GstBus, add simple porting checklist, add
5045           documentation for tag writing, clocks, make all examples until this
5046           part compile and run.
5047         * examples/manual/Makefile.am:
5048           Update from changes to Application Development Manual; add bus
5049           example, remove thread example.
5050
5051 2005-06-28  Wim Taymans  <wim@fluendo.com>
5052
5053         * gst/gstbus.c: (gst_bus_post), (gst_bus_have_pending),
5054         (gst_bus_set_flushing), (gst_bus_pop), (gst_bus_peek),
5055         (gst_bus_source_dispatch):
5056         Add debugging messages.
5057         Make internal methods static.
5058         Handle the case where the bus is flushed in the handler.
5059         
5060         * gst/gstelement.c: (gst_element_get_bus):
5061         Fix refcount in _get_bus();
5062
5063         * gst/gstpipeline.c: (gst_pipeline_change_state),
5064         (gst_pipeline_get_clock_func):
5065         Clock refcounting fixes.
5066         Handle the case where preroll timed out more gracefully.
5067         
5068         * gst/gstsystemclock.c: (gst_system_clock_dispose):
5069         Clean up the internal thread in dispose. This is needed
5070         for subclasses that actually get disposed.
5071         
5072         * gst/schedulers/threadscheduler.c:
5073         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
5074         (gst_thread_scheduler_dispose):
5075         Free thread pool in dispose.
5076
5077 2005-06-28  Andy Wingo  <wingo@pobox.com>
5078
5079         * tests/network-clock-utils.scm (debug, print-event): New utils.
5080
5081         * tests/network-clock.scm (*debug*, *with-graph*): New parameters.
5082         (*packet-loss*): Unified loss probability.
5083         (network-time): Report out-of-band events.
5084
5085         * tests/plot-data: Add support for out-of-band events. Hack it
5086         into this script instead of passing it down the pipe; should fix
5087         this later.
5088
5089 2005-06-28  Wim Taymans  <wim@fluendo.com>
5090
5091         * docs/gst/gstreamer.types:
5092         * docs/gst/tmpl/gstbasesrc.sgml:
5093         * docs/gst/tmpl/gstpad.sgml:
5094         Docs fixes.
5095
5096 2005-06-28  Wim Taymans  <wim@fluendo.com>
5097
5098         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
5099         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_acceptcaps),
5100         (gst_proxy_pad_do_fixatecaps):
5101         Correctly proxy the check_pull_range function.
5102
5103 2005-06-28  Andy Wingo  <wingo@pobox.com>
5104
5105         * tests/network-clock.scm: Removed need for slib.
5106         
5107 2005-06-28  Wim Taymans  <wim@fluendo.com>
5108
5109         * gst/base/gstbasesink.c: (gst_basesink_set_pad_functions),
5110         (gst_basesink_preroll_queue_flush):
5111         * gst/base/gstbasesrc.c: (gst_basesrc_set_dataflow_funcs):
5112         * gst/elements/gsttee.c: (gst_tee_update_pad_functions):
5113         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
5114         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
5115         (gst_proxy_pad_set_property):
5116         * gst/gstpad.c:
5117         * gst/gstpad.h:
5118         * gst/gstqueue.c: (gst_queue_init):
5119         The deprecated pad loop function is removed now.
5120
5121 2005-06-28  Andy Wingo  <wingo@pobox.com>
5122
5123         * tests/network-clock.scm (*timeout*, *send-loss*, *recv-loss*):
5124         New parameters, simulate network packet loss.
5125
5126         * tests/network-clock-utils.scm: Initialize the RNG.
5127
5128 2005-06-28  Wim Taymans  <wim@fluendo.com>
5129
5130         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_flush),
5131         (gst_basesink_event), (gst_basesink_deactivate):
5132         Flushing the preroll queue always needs to unlock the waiters.
5133
5134 2005-06-28  Edward Hervey  <edward@fluendo.com>
5135
5136         * gst/gstpipeline.c: (gst_pipeline_send_event): 
5137         Wheen a seek was successful on a pipeline, set the stream_time to the
5138         seek offset in order to have a synchronized stream_time.
5139
5140 2005-06-28  Wim Taymans  <wim@fluendo.com>
5141
5142         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
5143         (gst_proxy_pad_do_getrange), (gst_proxy_pad_do_checkgetrange),
5144         (gst_proxy_pad_do_getcaps), (gst_proxy_pad_do_acceptcaps),
5145         (gst_proxy_pad_do_fixatecaps):
5146         Call wrapper function instead of just calling the function
5147         pointers. This takes care of any locking and whatmore.
5148
5149 2005-06-28  Wim Taymans  <wim@fluendo.com>
5150
5151         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push),
5152         (gst_pad_pull_range):
5153         * gst/gstpad.h:
5154         CONNECTED -> LINKED.
5155
5156 2005-06-28  Andy Wingo  <wingo@pobox.com>
5157
5158         * *.c: Don't cast to GST_OBJECT when reffing or unreffing. Large
5159         source-munging commit!!!
5160
5161         * gst/gstobject.c (gst_object_unref, gst_object_ref) 
5162         (gst_object_sink): Take gpointer arguments, not GstObject --
5163         avoids casts. Like GLib.
5164
5165         * gst/gstghostpad.c (gst_proxy_pad_do_activate): Don't proxy
5166         activate.
5167
5168 2005-06-27  Andy Wingo  <wingo@pobox.com>
5169
5170         * gst/base/gsttypefindhelper.c (gst_type_find_helper): Unref any
5171         remaining buffer.
5172
5173         * gst/gsttrace.c (gst_alloc_trace_list_sorted): New helper,
5174         returns a sorted copy of the trace list.
5175         (gst_alloc_trace_print_live): New API, only prints traces with
5176         live objects. Sort the list.
5177         (gst_alloc_trace_print_all): Sort the list.
5178         (gst_alloc_trace_print): Align columns.
5179
5180         * gst/elements/gstttypefindelement.c:
5181         * gst/elements/gsttee.c:
5182         * gst/base/gstbasesrc.c:
5183         * gst/base/gstbasesink.c:
5184         * gst/base/gstbasetransform.c:
5185         * gst/gstqueue.c: Adapt for pad activation changes.
5186
5187         * gst/gstpipeline.c (gst_pipeline_init): Unref after parenting
5188         sched.
5189         (gst_pipeline_dispose): Drop ref on sched.
5190
5191         * gst/gstpad.c (gst_pad_init): Set the default activate func.
5192         (gst_pad_activate_default): Push mode by default.
5193         (pre_activate_switch, post_activate_switch): New stubs, things to
5194         do before and after switching activation modes on pads.
5195         (gst_pad_set_active): Take a boolean and not a mode, dispatch to
5196         the pad's activate function to choose which mode to activate.
5197         Shortcut on deactivation and call the right function directly.
5198         (gst_pad_activate_pull): New API, (de)activates a pad in pull
5199         mode.
5200         (gst_pad_activate_push): New API, same for push mode.
5201         (gst_pad_set_activate_function) 
5202         (gst_pad_set_activatepull_function) 
5203         (gst_pad_set_activatepush_function): Setters for new API.
5204
5205         * gst/gstminiobject.c (gst_mini_object_new, gst_mini_object_free):
5206         Trace all miniobjects.
5207         (gst_mini_object_make_writable): Unref the arg if we copy, like
5208         gst_caps_make_writable.
5209
5210         * gst/gstmessage.c (_gst_message_initialize): No trace init.
5211
5212         * gst/gstghostpad.c (gst_proxy_pad_do_activate) 
5213         (gst_proxy_pad_do_activatepull, gst_proxy_pad_do_activatepush):
5214         Adapt for new pad API.
5215
5216         * gst/gstevent.c (_gst_event_initialize): Don't initialize trace.
5217
5218         * gst/gstelement.h:
5219         * gst/gstelement.c (gst_element_iterate_src_pads) 
5220         (gst_element_iterate_sink_pads): New API functions.
5221         
5222         * gst/gstelement.c (iterator_fold_with_resync): New utility,
5223         should fold into gstiterator.c in some form.
5224         (gst_element_pads_activate): Simplified via use of fold and
5225         delegation of decisions to gstpad->activate.
5226
5227         * gst/gstbus.c (gst_bus_source_finalize): Set the bus to NULL,
5228         help in debugging.
5229
5230         * gst/gstbuffer.c (_gst_buffer_initialize): Ref the buffer type
5231         class once in init, like gstmessage. Didn't run into this issue
5232         but it seems correct. Don't initialize a trace, gstminiobject does
5233         that.
5234
5235         * check/pipelines/simple_launch_lines.c (test_stop_from_app): New
5236         test, runs fakesrc ! fakesink, stopping on ::handoff via a message
5237         to the bus.
5238         (assert_live_count): New util function, uses alloc traces to check
5239         cleanup.
5240
5241         * check/gst/gstghostpad.c (test_ghost_pads): More refcount checks.
5242         To be modified when unlink drops the internal pad.
5243
5244 2005-06-27  Wim Taymans  <wim@fluendo.com>
5245
5246         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_iterate_state_order),
5247         (gst_bin_change_state):
5248         Cleanup the get_state() function a little, make sure it
5249         iterates the same set of elements.
5250         Added stub iterate_state_order().
5251
5252 2005-06-27  Thomas Vander Stichele  <thomas at apestaart dot org>
5253
5254         * docs/gst/gstreamer-docs.sgml:
5255         * docs/gst/gstreamer-sections.txt:
5256         * docs/gst/gstreamer.types:
5257         * docs/gst/tmpl/gstbasesink.sgml:
5258         * docs/gst/tmpl/gstbasesrc.sgml:
5259         * docs/gst/tmpl/gstbasetransform.sgml:
5260         * docs/gst/tmpl/gstelement.sgml:
5261         * docs/gst/tmpl/gstiterator.sgml:
5262         * gst/base/gstbasesrc.c:
5263         * gst/base/gstbasesrc.h:
5264         * gst/base/gstbasetransform.h:
5265         * gst/gstelement.c:
5266         * gst/gstiterator.h:
5267           adding basetransform and iterator docs
5268
5269 2005-06-27  Andy Wingo  <wingo@pobox.com>
5270
5271         * docs/design/part-activation.txt: Notes on how activation should
5272         work -- not quite implemented yet.
5273
5274 2005-06-25  Wim Taymans  <wim@fluendo.com>
5275
5276         * gst/gstghostpad.c: (gst_proxy_pad_do_chain):
5277         At least get the chain function correct, needs more
5278         fixing.
5279
5280 2005-06-25  Wim Taymans  <wim@fluendo.com>
5281
5282         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
5283         (gst_basesink_handle_object), (gst_basesink_event),
5284         (gst_basesink_do_sync), (gst_basesink_handle_event),
5285         (gst_basesink_change_state):
5286         * gst/gsttask.h:
5287         Right, two problems here: ghostpads don't take locks and
5288         glib _rec_mutex_lock_full() with depth==0 still locks.
5289         Catch illegal locking and g_warn them.
5290
5291 2005-06-25  Wim Taymans  <wim@fluendo.com>
5292
5293         * check/states/sinks.c: (START_TEST), (gst_object_suite):
5294         Have to check for completion now...
5295
5296 2005-06-25  Wim Taymans  <wim@fluendo.com>
5297
5298         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
5299         (gst_basesink_handle_object), (gst_basesink_event),
5300         (gst_basesink_do_sync), (gst_basesink_handle_event),
5301         (gst_basesink_change_state):
5302         * gst/gstpad.h:
5303         Unlock STREAM_LOCK whatever the recursion was.
5304
5305 2005-06-25  Wim Taymans  <wim@fluendo.com>
5306
5307         * gst/base/gstbasesink.c: (gst_basesink_set_property),
5308         (gst_basesink_preroll_queue_empty),
5309         (gst_basesink_preroll_queue_flush), (gst_basesink_handle_object),
5310         (gst_basesink_event), (gst_basesink_do_sync),
5311         (gst_basesink_handle_event), (gst_basesink_handle_buffer),
5312         (gst_basesink_chain), (gst_basesink_loop), (gst_basesink_activate),
5313         (gst_basesink_change_state):
5314         Reworked the base sink, handle event and buffer serialisation
5315         correctly and removed possible deadlock.
5316         Handle EOS correctly.
5317
5318 2005-06-25  Wim Taymans  <wim@fluendo.com>
5319
5320         * gst/gstpipeline.c: (is_eos), (pipeline_bus_handler),
5321         (gst_pipeline_change_state):
5322         * tools/gst-launch.c: (check_intr), (event_loop), (main):
5323         Allow elements to post EOS in the state change function.
5324         Fix up -launch, make it exit the poll loop when the
5325         pipeline actually changed state.
5326         Fix up warning parsing in -launch.
5327
5328 2005-06-25  Wim Taymans  <wim@fluendo.com>
5329
5330         * gst/elements/gsttee.c: (gst_tee_chain), (gst_tee_loop),
5331         (gst_tee_sink_activate):
5332         Core takes STREAM_LOCK for us now.
5333
5334 2005-06-25  Wim Taymans  <wim@fluendo.com>
5335
5336         * gst/gstelement.c: (gst_element_get_state_func),
5337         (gst_element_set_state):
5338         * gst/gstelement.h:
5339         * gst/gstmessage.c: (gst_message_parse_error),
5340         (gst_message_parse_warning):
5341         Keep track of current target state while performing a state
5342         change so that subclasses can do something interesting.
5343         Fix parsing of warning/error messages when GError is NULL.
5344
5345 2005-06-24  Thomas Vander Stichele  <thomas at apestaart dot org>
5346
5347         * docs/gst/Makefile.am:
5348         * docs/gst/gstreamer-docs.sgml:
5349         * docs/gst/gstreamer-sections.txt:
5350         * docs/gst/gstreamer.types:
5351         * docs/gst/tmpl/gstbasesink.sgml:
5352         * docs/gst/tmpl/gstbasesrc.sgml:
5353         * docs/gst/tmpl/gstbin.sgml:
5354         * docs/gst/tmpl/gstcompat.sgml:
5355         * docs/gst/tmpl/gstfakesink.sgml:
5356         * docs/gst/tmpl/gstfakesrc.sgml:
5357         * docs/gst/tmpl/gstfilesink.sgml:
5358         * docs/gst/tmpl/gstfilesrc.sgml:
5359         * docs/gst/tmpl/gstindex.sgml:
5360         * docs/manual/appendix-quotes.xml:
5361         * gst/base/gstbasesrc.h:
5362         * gst/elements/gstfakesrc.h:
5363         * gst/gstmessage.h:
5364           start pulling in base classes and elements in our docs
5365
5366 2005-06-24  Stefan Kost  <ensonic@users.sf.net>
5367
5368         * docs/gst/Makefile.am:
5369         * docs/libs/Makefile.am:
5370           fixed make distcheck with gtk-doc 1.3
5371
5372 2005-06-23  Wim Taymans  <wim@fluendo.com>
5373
5374         * gst/gstelement.c: (gst_element_get_state_func),
5375         (gst_element_set_state), (gst_element_change_state):
5376         When the state did not change, also report NO_PREROLL
5377         when it matters.
5378
5379 2005-06-23  Wim Taymans  <wim@fluendo.com>
5380
5381         * gst/gstpad.c: (gst_pad_event_default):
5382         * gst/gstqueue.c: (gst_queue_loop):
5383         No unsafe task pausing please.
5384
5385 2005-06-23  Wim Taymans  <wim@fluendo.com>
5386
5387         * gst/schedulers/threadscheduler.c:
5388         (gst_thread_scheduler_task_start),
5389         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_func):
5390         Ref the task before pushing it on the threadpool. This
5391         makes sure that we have a ref when the threadfunction is
5392         actually called.
5393
5394 2005-06-23  Andy Wingo  <wingo@pobox.com>
5395
5396         * gst/base/gstbasesrc.c (gst_basesrc_get_range): Check if the
5397         offset is greater than the file's size.
5398
5399         * gst/gstobject.h (GST_CLASS_LOCK, GST_CLASS_TRYLOCK) 
5400         (GST_CLASS_UNLOCK, GST_CLASS_GET_LOCK, GstObjectClass)
5401         * gst/gstobject.c (gst_object_class_init): Make the class lock
5402         recursive. Wim won't let me drop deep_notify. Decodebin works
5403         again, whoopdy doo.
5404
5405         * gst/gstghostpad.c (on_int_notify): Catches notify::caps on the
5406         internal pad, and hacks accordingly. Doesn't do it on the target
5407         pad because we change its caps. Probably catches all cases of
5408         interest tho.
5409         (gst_ghost_pad_set_property): Connect to notify::caps as
5410         appropritate.
5411
5412         * tests/network-clock.scm (plot-simulation): Pipe data to the
5413         elite python skript.
5414
5415         * tests/network-clock-utils.scm (define-parameter): New macro,
5416         defines a parameter that can be set via the command line.
5417         (set-parameter!, parse-parameter-arguments): Command line args
5418         parser.
5419
5420         * tests/plot-data: Simple matplotlib-based plotter, takes input on
5421         stdin.
5422
5423 2005-06-23  Jan Schmidt  <thaytan@mad.scientist.com>
5424
5425         * gst/elements/gsttypefindelement.c:
5426         (gst_type_find_element_handle_event):
5427           Don't restart typefinding on a discont.
5428         * gst/gstelement.c: (gst_element_set_state):
5429           Debug spelling fix.
5430         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_send_event):
5431           Allow changing mode of an active pad.
5432           Debug output fixes.
5433         * gst/registries/gstlibxmlregistry.c: (load_feature):
5434           Don't cast a static pad template to a normal pad template.
5435
5436 2005-06-23  Thomas Vander Stichele  <thomas at apestaart dot org>
5437
5438         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
5439         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
5440           remove gst_strtoll completely, since it didn't actually do
5441           anything more than what g_ascii_strtoull already does.
5442           check for range errors when deserializing
5443           do a cast for the unsigned cases; but further fixing needs
5444           a decision on what the interpretation of "(int)" and
5445           deserialization should be for values that fall outside the
5446           type's boundaries (ie, refuse, or interpret as casting)
5447
5448 2005-06-23  Wim Taymans  <wim@fluendo.com>
5449
5450         * check/Makefile.am:
5451         * check/states/sinks.c: (START_TEST), (gst_object_suite), (main):
5452         * docs/design/part-live-source.txt:
5453         * docs/design/part-states.txt:
5454         * gst/base/gstbasesrc.c: (gst_basesrc_init),
5455         (gst_basesrc_set_live), (gst_basesrc_is_live),
5456         (gst_basesrc_get_range), (gst_basesrc_activate),
5457         (gst_basesrc_change_state):
5458         * gst/base/gstbasesrc.h:
5459         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
5460         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
5461         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_change_state):
5462         * gst/gstelement.c: (gst_element_get_state_func),
5463         (gst_element_set_state):
5464         * gst/gstelement.h:
5465         * gst/gsttypes.h:
5466         * tools/gst-launch.c: (event_loop), (main):
5467         Added support for live sources and other elements that
5468         cannot do preroll.
5469         Updated design docs, added live-source design doc.
5470         Implemented live source functionality in basesrc
5471         Fix error condition in _bin_get_state()
5472         Implement live source handling in -launch.
5473         Added check for live sources.
5474         Fixed case in GstBin where elements were changed state
5475         multiple times.
5476
5477
5478 2005-06-23  Andy Wingo  <wingo@pobox.com>
5479
5480         * check/gst/gstpad.c (test_get_allowed_caps, test_refcount): Fix
5481         borken refcounting.
5482
5483         * gst/gstpad.c (gst_pad_set_caps): Remove needless refs,
5484         gst_caps_replace takes care of this for us.
5485
5486         * gst/gstghostpad.c (gst_proxy_pad_do_setcaps): Call the full
5487         gst_pad_set_caps on the target, not just its setcaps() function.
5488
5489         * tests/network-clock.scm: 
5490         * tests/network-clock-utils.scm: A network clock simulator.
5491         Something of an algorithmic testbed before doing something in C.
5492
5493 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
5494
5495         * check/Makefile.am:
5496         * check/gst/capslist.h:
5497           copy over from 0.8, and add two with bitmasks specified with
5498           (int) 0xFF...
5499         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
5500           add test to parse everything from capslist.h
5501         * check/gst/gststructure.c: (START_TEST), (gst_value_suite),
5502         (main):
5503           add test for structure deserialization
5504         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
5505           add tests for deserialization of strings to int types
5506         * gst/gststructure.c: (gst_structure_nth_field_name):
5507         * gst/gststructure.h:
5508           add a way to get the name of a field referenced by index
5509         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
5510           instead of checking if the resulting long long lies between
5511           min and max, we check if the long long would fit into
5512           a number of bytes for the final type.
5513           This fixes cases where a string represents 2^32 - 1, which
5514           when cast to int would be the (valid) -1, but is bigger than
5515           G_MAXINT
5516
5517 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
5518
5519         * gst/parse/grammar.y:
5520           add a log line for type deserialization
5521
5522 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
5523
5524         * check/gst/gstvalue.c: (START_TEST):
5525         * gst/gstvalue.c: (gst_value_deserialize):
5526           return long long, not int, so gint64 deserialization actually
5527           works.  Is there any flag that makes the compiler check this ?
5528           Fixes #308559
5529
5530 2005-06-22  Wim Taymans  <wim@fluendo.com>
5531
5532         * gst/gstbuffer.h:
5533         Added convenience macros for setting buffers in GValue.
5534
5535 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
5536
5537         * check/gst/.cvsignore:
5538         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
5539           add a test deserializing int64, and comment part out because
5540           it fails, yay !
5541
5542 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
5543
5544         * check/Makefile.am:
5545         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite), (main):
5546         * testsuite/Makefile.am:
5547         * testsuite/caps/Makefile.am:
5548         * testsuite/caps/value_serialize.c:
5549         * testsuite/test_gst_init.c:
5550           move a value_serialize test over
5551
5552 2005-06-20  Wim Taymans  <wim@fluendo.com>
5553
5554         * gst/gstpad.c:
5555         Small doc updates.
5556         
5557         * gst/gstvalue.c: (gst_value_compare_buffer),
5558         (gst_value_serialize_buffer), (gst_value_deserialize_buffer),
5559         (gst_value_compare_flags), (gst_value_serialize_flags),
5560         (gst_value_deserialize_flags), (_gst_value_initialize):
5561         Fix serialisation of buffers, they are not boxed types anymore
5562
5563 2005-06-20  Wim Taymans  <wim@fluendo.com>
5564
5565         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
5566         Testcase to show error in buffer-on-caps serialisation.
5567
5568 2005-06-20  Andy Wingo  <wingo@pobox.com>
5569
5570         * docs/random/wingo/porting-plugins-to-0.9: A pitiful document I
5571         will be adding to later.
5572
5573         * gst/gstsystemclock.c (gst_system_clock_init): Unlock the clock
5574         if its socks fill with rocks.
5575         (gst_system_clock_obtain): Set the name on object construction.
5576         Avoid double-checked locking.
5577
5578 2005-06-20  Tim-Philipp Müller  <tim at centricular dot net>
5579
5580         * gst/gsturi.c: (gst_element_make_from_uri):
5581           Fix potential endless loop.
5582
5583 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5584
5585         * check/Makefile.am:
5586           add gsttag
5587         * check/gst/gsttag.c: (check_tags), (START_TEST), (gst_tag_suite),
5588         (main):
5589           move over from testsuite dir and clean up
5590         * configure.ac:
5591         * gst/gsttag.c:
5592         * testsuite/Makefile.am:
5593         * testsuite/tags/.cvsignore:
5594         * testsuite/tags/Makefile.am:
5595         * testsuite/tags/merge.c:
5596           remove testsuite/tags
5597
5598 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5599
5600         * docs/gst/gstreamer-sections.txt:
5601         * docs/gst/tmpl/gstenumtypes.sgml:
5602         * win32/gstenumtypes.c:
5603           clean up documentation build a little
5604
5605 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5606
5607         * check/gstcheck.h:
5608           add macros for checking refcounts on objects and caps
5609         * check/gst/gstpad.c: (START_TEST), (gst_pad_suite):
5610           add some more unit tests
5611         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
5612         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_allowed_caps):
5613           fix leaked refcounts (I hope :)) so unittest works
5614         * gst/gstpad.h:
5615           whitespace removal
5616
5617 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
5618
5619         * configure.ac: back to HEAD
5620
5621 === release 0.9.1 ===
5622
5623 2005-06-17  Thomas Vander Stichele  <thomas at apestaart dot org>
5624
5625         * NEWS:
5626         * RELEASE:
5627           updated
5628
5629 2005-06-17  Andy Wingo  <wingo@pobox.com>
5630
5631         * gst/base/gstbasesink.c (gst_basesink_chain): Remove bogus
5632         assert; it's always possible that the pad gets deactivated in
5633         between the checks in gstpad.c and the implementation. Rely on
5634         finish_preroll() to return a FLUSHING or similar instead of on the
5635         assert.
5636         
5637         * gst/base/gstbasesink.c (gst_basesink_event): Only wait for the
5638         clock and post an EOS message if we come out of finish_preroll in
5639         the playing state.
5640
5641 2005-06-16  David Schleef  <ds@schleef.org>
5642
5643         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
5644         (gst_capsfilter_set_property): Allow NULL as possible value
5645         for filter_caps property, indicating GST_CAPS_ANY.
5646
5647 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
5648
5649         * gst/elements/gstfakesrc.c: (gst_fakesrc_create):
5650           fix debug output
5651         * gst/schedulers/Makefile.am:
5652           use libgst prefix
5653         * gstreamer.spec.in:
5654           fix spec for it
5655
5656 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
5657
5658         * gstreamer.spec.in:
5659           clean up
5660
5661 2005-06-08  Andy Wingo  <wingo@pobox.com>
5662
5663         * gst/gstutils.c: RPAD fixes all around.
5664         (gst_element_link_pads): Refcounting fixes.
5665
5666         * tools/gst-inspect.c:
5667         * tools/gst-xmlinspect.c:
5668         * parse/grammar.y:
5669         * gst/base/gsttypefindhelper.c:
5670         * gst/base/gstbasesink.c:
5671         * gst/gstqueue.c: RPAD fixes.
5672
5673         * gst/gstghostpad.h:
5674         * gst/gstghostpad.c: New ghost pad implementation as full proxy
5675         pads. The tricky thing is they provide both source and sink
5676         interfaces, since they proxy the internal pad for the external
5677         pad, and vice versa. Implement with lower-level ProxyPad objects,
5678         with the interior proxy pad as a child of the exterior ghost pad.
5679         Should write a doc on this.
5680         
5681         * gst/gstpad.h: s/RPAD/PAD/, s/RealPad/Pad/.
5682         (gst_pad_set_name, gst_pad_set_parent): Macros removed, use
5683         gst_object API.
5684         
5685         * gst/gstpad.c: Big changes. No more stub base GstPad, now all
5686         pads are real pads. No ghost pads in this file. Not documenting
5687         the myriad s/RPAD/PAD/ and REALIZE fixes.
5688         (gst_pad_class_init): Add properties for "direction" and
5689         "template". Both are construct-only, so they can't change during
5690         the life of the pad. Fixes properly deriving from GstPad.
5691         (gst_pad_custom_new, gst_pad_custom_new_from_template): Gone. For
5692         derived objects, just set properties when creating the objects via
5693         g_object_new.
5694         (gst_pad_get_parent): Implement as a function, return NULL if the
5695         parent is not an element.
5696         (gst_pad_get_real_parent, gst_pad_add_ghost_pad)
5697         (gst_pad_remove_ghost_pad, gst_pad_realize): Removed.
5698         
5699         * gst/gstobject.c (gst_object_class_init): Make name a construct
5700         property. Don't set it in the object init.
5701
5702         * gst/gstelement.c (gst_element_add_pad): Don't allow adding pads
5703         with UNKNOWN direction.
5704         (gst_element_add_ghost_pad): Remove non-orthogonal API. Replace
5705         with gst_element_add_pad (e, gst_ghost_pad_new (name, pad)).
5706         (gst_element_remove_pad): Remove ghost-pad special cases.
5707         (gst_element_pads_activate): Remove rpad cruft.
5708
5709         * gst/gstbin.c (gst_bin_change_state): Use gst_pad_get_parent to
5710         catch the pad's-parent-not-an-element case.
5711
5712         * gst/gst.h: Include gstghostpad.h.
5713
5714         * gst/gst.c (init_post): No more real, ghost pads.
5715
5716         * gst/Makefile.am: Add gstghostpad.[ch].
5717
5718         * check/Makefile.am:
5719         * check/gst/gstbin.c:
5720         * check/gst/gstghostpad.c (test_ghost_pads): Check that linking
5721         into a bin creates ghost pads, and that the refcounts are right.
5722         Partly moved from gstbin.c.
5723
5724 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
5725
5726         * check/gst-libs/.cvsignore:
5727         * check/gst/.cvsignore:
5728         * check/pipelines/.cvsignore:
5729           ignore more
5730         * check/pipelines/cleanup.c: (setup_pipeline), (run_pipeline),
5731         (START_TEST), (cleanup_suite), (main):
5732           add some tests related to cleanup after running pipelines
5733
5734 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
5735
5736         * check/gst/gstbuffer.c: (START_TEST), (gst_test_suite), (main):
5737           add a testsuite for GstBuffer
5738
5739 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
5740
5741         * gst/gstminiobject.h:
5742           add defines for accessing the refcount
5743
5744 2005-06-03  Stefan Kost  <ensonic@users.sf.net>
5745
5746         * Makefile.am: added support for html unit test coverage reports
5747
5748 2005-06-03  Jan Schmidt  <thaytan@mad.scientist.com>
5749
5750         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
5751           Free existing caps if the capsfilter changes. Add a FIXME about
5752           setting those caps on the pads.
5753
5754         * gst/gstutils.c: (gst_element_get_compatible_pad), (ghost_up):
5755           Before adding a ghost pad to a parent bin, check that there isn't
5756           already one for the element on the bin. Prevents infinite recursion
5757           when using decodebin in parse pipelines. Andy says he'll rewrite the
5758           way this works anyway, so ignore the hack.
5759
5760 2005-06-02  Andy Wingo  <wingo@pobox.com>
5761
5762         * gst/elements/gsttypefindelement.c (do_pull_typefind): Query the
5763         file size, pass it on to the type find helper.
5764
5765         * gst/base/gstbasesrc.c (gst_basesrc_do_seek): Set the
5766         segment_start and segment_end properly according to the seek
5767         method. Segment_end is still a bit flaky because offset can be
5768         negative for CUR and END cases, but it takes -1 as an "unset"
5769         value.
5770
5771 2005-06-02  Wim Taymans  <wim@fluendo.com>
5772
5773         * gst/base/gstbasesink.c: (gst_basesink_pad_buffer_alloc),
5774         (gst_base_sink_buffer_alloc), (gst_basesink_preroll_queue_push),
5775         (gst_basesink_activate):
5776         * gst/base/gstbasesink.h:
5777         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
5778         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
5779         (gst_pad_query), (gst_pad_start_task):
5780         * gst/gstpad.h:
5781         * gst/gstqueue.c: (gst_queue_bufferalloc),
5782         (gst_queue_handle_sink_event), (gst_queue_chain):
5783         Bufferalloc: return GstFlowReturn to more accuratly report
5784         why allocation failed.
5785
5786 2005-06-02  Wim Taymans  <wim@fluendo.com>
5787
5788         * gst/gstpipeline.c: (gst_pipeline_send_event):
5789         Take snapshot of state without blocking.
5790
5791 2005-06-02  Wim Taymans  <wim@fluendo.com>
5792
5793         * docs/design/part-TODO.txt:
5794         * docs/design/part-caps.txt:
5795         * docs/design/part-clocks.txt:
5796         * docs/design/part-negotiation.txt:
5797         * docs/design/part-preroll.txt:
5798         Small doc updates 
5799
5800 2005-05-30  Wim Taymans  <wim@fluendo.com>
5801
5802         * gst/elements/gstidentity.c: (gst_identity_event),
5803         (gst_identity_transform), (gst_identity_get_property):
5804         Protect last_message property as it is accessed from
5805         multiple threads.
5806
5807 2005-05-30  Wim Taymans  <wim@fluendo.com>
5808
5809         * gst/gstelement.c: (gst_element_init),
5810         (gst_element_pads_activate), (gst_element_change_state):
5811         Slicker pad activation code.
5812
5813 2005-05-30  Wim Taymans  <wim@fluendo.com>
5814
5815         * gst/Makefile.am:
5816         * gst/gstelement.h:
5817         * gst/gstelementfactory.h:
5818         * gst/gsttypes.h:
5819         Move elementfactory methods to separate .h file.
5820
5821 2005-05-30  Wim Taymans  <wim@fluendo.com>
5822
5823         * docs/design/part-overview.txt:
5824         * gst/gstsystemclock.h:
5825         Small typo fixes, doc updates.
5826
5827 2005-05-30  Wim Taymans  <wim@fluendo.com>
5828
5829         * gst/gst.c: (gst_init_get_popt_table), (init_post),
5830         (init_popt_callback):
5831         Remove cpu-opt flag.
5832
5833 2005-05-30  Wim Taymans  <wim@fluendo.com>
5834
5835         * gst/gstbuffer.c: (gst_subbuffer_finalize),
5836         (gst_buffer_create_sub), (gst_buffer_is_span_fast):
5837         * gst/gstbuffer.h:
5838         Avoid typechecking in places where not needed.
5839         Added accessor for malloc_data.
5840
5841 2005-05-30  Wim Taymans  <wim@fluendo.com>
5842
5843         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_set_active),
5844         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_accept_caps),
5845         (gst_pad_configure_sink), (gst_pad_configure_src),
5846         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_send_event),
5847         (gst_pad_start_task):
5848         Propagate errors from _set_caps() in configure_src/sink
5849         functions instead of returning TRUE.
5850         FLUSH events can travel up and downstream
5851
5852
5853 2005-05-30  Wim Taymans  <wim@fluendo.com>
5854
5855         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
5856         (gst_basesink_activate):
5857         Handle EOS in preroll.
5858
5859 2005-05-30  Wim Taymans  <wim@fluendo.com>
5860
5861         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
5862         (gst_queue_loop), (gst_queue_handle_src_event):
5863         Remove old pieces of code
5864         Flushing the queue in an upstream event is a very bad idea.
5865
5866 2005-05-26  Andy Wingo  <wingo@pobox.com>
5867
5868         * gst/gstminiobject.c (gst_value_mini_object_collect): Use
5869         gst_value_set_mini_object so as to add a ref on the object (which
5870         will be removed when the value is unset).
5871
5872         * gst/elements/gstfakesink.c (gst_fakesink_class_init): Fix signal
5873         arg type in ::handoff.
5874
5875         * gst/gstelement.c (gst_element_change_state): Also deactivate
5876         pads in READY->NULL, just in case the element didn't make it to
5877         PAUSED. Wingo tested, Wim approved.
5878
5879 2005-05-26  Wim Taymans  <wim@fluendo.com>
5880
5881         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
5882         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
5883         (gst_pad_query), (gst_pad_send_event), (gst_pad_start_task):
5884         A flushing pad cannot be used to alloc_buffer from.
5885
5886 2005-05-26  Wim Taymans  <wim@fluendo.com>
5887
5888         * gst/gstbus.c: (gst_bus_init), (gst_bus_dispose), (gst_bus_post),
5889         (gst_bus_pop), (gst_bus_source_prepare), (gst_bus_source_check),
5890         (gst_bus_source_dispatch), (gst_bus_source_finalize),
5891         (gst_bus_create_watch), (gst_bus_add_watch_full):
5892         * gst/gstbus.h:
5893         Implement a real GSource and use g_main_context_wakeup() to
5894         signal new messages instead of the socketpair.
5895
5896 2005-05-25  Wim Taymans  <wim@fluendo.com>
5897
5898         * gst/gstbin.c: (bin_element_is_sink), (has_ancestor),
5899         (bin_element_is_semi_sink), (append_child), (gst_bin_change_state):
5900         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
5901         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
5902         (gst_pad_send_event), (gst_pad_start_task):
5903         * gst/gstqueue.c: (gst_queue_init), (gst_queue_locked_flush),
5904         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
5905         (gst_queue_sink_activate), (gst_queue_src_activate),
5906         (gst_queue_change_state):
5907         * gst/gstqueue.h:
5908         Fix state changes for non sinks. We now change sinks, then elements
5909         with unconnected srcpads, then the rest.
5910         More efficient queue unlocking in flush and state changes.
5911         Set the pad activate mode even if it does not have an activate
5912         function.
5913
5914 2005-05-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5915
5916         * gst/base/gstbasesrc.c: (gst_basesrc_activate):
5917           Don't go in pull mode for non-seekable sources.
5918         * gst/elements/gsttypefindelement.h:
5919         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
5920         (gst_type_find_element_dispose), (gst_type_find_handle_src_query),
5921         (free_entry), (stop_typefinding),
5922         (gst_type_find_element_handle_event), (find_peek),
5923         (gst_type_find_element_chain), (do_pull_typefind),
5924         (gst_type_find_element_change_state):
5925           Allow typefinding (w/o seeking) in push-mode, simplified version
5926           of what was in 0.8.
5927         * gst/gstutils.c: (gst_buffer_join):
5928         * gst/gstutils.h:
5929           gst_buffer_join() from 0.8.
5930
5931 2005-05-25  Wim Taymans  <wim@fluendo.com>
5932
5933         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
5934         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
5935         (gst_pad_send_event), (gst_pad_start_task):
5936         Disable attempt at mode switching until it is figured out.
5937
5938 2005-05-25  Wim Taymans  <wim@fluendo.com>
5939
5940         * gst/base/gstadapter.c: (gst_adapter_peek), (gst_adapter_flush):
5941         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
5942         (gst_basesink_finish_preroll), (gst_basesink_chain),
5943         (gst_basesink_loop), (gst_basesink_activate),
5944         (gst_basesink_change_state):
5945         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek),
5946         (gst_basesrc_get_range), (gst_basesrc_loop),
5947         (gst_basesrc_activate):
5948         * gst/elements/gsttee.c: (gst_tee_sink_activate):
5949         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
5950         (gst_real_pad_init), (gst_real_pad_set_property),
5951         (gst_real_pad_get_property), (gst_pad_set_active),
5952         (gst_pad_is_active), (gst_pad_get_query_types), (gst_pad_unlink),
5953         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_real_parent),
5954         (gst_real_pad_get_caps_unlocked), (gst_pad_peer_get_caps),
5955         (gst_pad_accept_caps), (gst_pad_get_peer), (gst_pad_realize),
5956         (gst_pad_event_default_dispatch), (gst_pad_event_default),
5957         (gst_pad_dispatcher), (gst_pad_query), (gst_real_pad_dispose),
5958         (gst_pad_save_thyself), (handle_pad_block), (gst_pad_chain),
5959         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
5960         (gst_pad_send_event), (gst_pad_start_task), (gst_pad_pause_task),
5961         (gst_pad_stop_task):
5962         * gst/gstpad.h:
5963         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
5964         (gst_queue_loop), (gst_queue_src_activate):
5965         * gst/gsttask.c: (gst_task_init), (gst_task_set_lock),
5966         (gst_task_get_state):
5967         * gst/gsttask.h:
5968         * gst/schedulers/threadscheduler.c:
5969         (gst_thread_scheduler_task_start), (gst_thread_scheduler_func):
5970         Implement gst_pad_pause/start/stop_task(), take STREAM lock
5971         in task function.
5972         Remove ACTIVE pad flag, use FLUSHING everywhere
5973         Added _pad_chain(), _pad_get_range() to call chain/getrange 
5974         functions.
5975         Add locks around IS_FLUSHING when reading.
5976         Take STREAM lock in chain(), get_range() functions so plugins
5977         don't need to take it anymore.
5978         
5979
5980
5981 2005-05-25  Wim Taymans  <wim@fluendo.com>
5982
5983         * tools/gst-launch.c: (event_loop):
5984         Unref message after using its contents instead of
5985         before.
5986
5987 2005-05-24  Wim Taymans  <wim@fluendo.com>
5988
5989         * docs/design/draft-ghostpads.txt:
5990         * docs/design/draft-push-pull.txt:
5991         * docs/design/draft-query.txt:
5992         * docs/design/part-overview.txt:
5993         Docs updates, added general overview doc.
5994
5995 2005-05-21  David Schleef  <ds@schleef.org>
5996
5997         * docs/gst/tmpl/old/GstBin.sgml:
5998         * docs/gst/tmpl/old/GstBuffer.sgml:
5999         * docs/gst/tmpl/old/GstCaps.sgml:
6000         * docs/gst/tmpl/old/GstClock.sgml:
6001         * docs/gst/tmpl/old/GstCompat.sgml:
6002         * docs/gst/tmpl/old/GstData.sgml:
6003         * docs/gst/tmpl/old/GstElement.sgml:
6004         * docs/gst/tmpl/old/GstEvent.sgml:
6005         * docs/gst/tmpl/old/GstIndex.sgml:
6006         * docs/gst/tmpl/old/GstStructure.sgml:
6007         * docs/gst/tmpl/old/GstTag.sgml:
6008         * docs/gst/tmpl/old/cothreads.sgml:
6009         * docs/gst/tmpl/old/cothreads_compat.sgml:
6010         * docs/gst/tmpl/old/gettext.sgml:
6011         * docs/gst/tmpl/old/gobject2gtk.sgml:
6012         * docs/gst/tmpl/old/grammar.tab.sgml:
6013         * docs/gst/tmpl/old/gst-i18n-app.sgml:
6014         * docs/gst/tmpl/old/gst-i18n-lib.sgml:
6015         * docs/gst/tmpl/old/gst_private.sgml:
6016         * docs/gst/tmpl/old/gstaggregator.sgml:
6017         * docs/gst/tmpl/old/gstarch.sgml:
6018         * docs/gst/tmpl/old/gstatomic_impl.sgml:
6019         * docs/gst/tmpl/old/gstbufferstore.sgml:
6020         * docs/gst/tmpl/old/gstdata_private.sgml:
6021         * docs/gst/tmpl/old/gstdisksink.sgml:
6022         * docs/gst/tmpl/old/gstdisksrc.sgml:
6023         * docs/gst/tmpl/old/gstelementfactory.sgml:
6024         * docs/gst/tmpl/old/gstextratypes.sgml:
6025         * docs/gst/tmpl/old/gstfakesink.sgml:
6026         * docs/gst/tmpl/old/gstfakesrc.sgml:
6027         * docs/gst/tmpl/old/gstfdsink.sgml:
6028         * docs/gst/tmpl/old/gstfdsrc.sgml:
6029         * docs/gst/tmpl/old/gstfilesink.sgml:
6030         * docs/gst/tmpl/old/gstfilesrc.sgml:
6031         * docs/gst/tmpl/old/gsthttpsrc.sgml:
6032         * docs/gst/tmpl/old/gstidentity.sgml:
6033         * docs/gst/tmpl/old/gstindexfactory.sgml:
6034         * docs/gst/tmpl/old/gstmarshal.sgml:
6035         * docs/gst/tmpl/old/gstmd5sink.sgml:
6036         * docs/gst/tmpl/old/gstmultidisksrc.sgml:
6037         * docs/gst/tmpl/old/gstmultifilesrc.sgml:
6038         * docs/gst/tmpl/old/gstpadtemplate.sgml:
6039         * docs/gst/tmpl/old/gstpipefilter.sgml:
6040         * docs/gst/tmpl/old/gstschedulerfactory.sgml:
6041         * docs/gst/tmpl/old/gstsearchfuncs.sgml:
6042         * docs/gst/tmpl/old/gstshaper.sgml:
6043         * docs/gst/tmpl/old/gstspider.sgml:
6044         * docs/gst/tmpl/old/gstspideridentity.sgml:
6045         * docs/gst/tmpl/old/gststatistics.sgml:
6046         * docs/gst/tmpl/old/gsttee.sgml:
6047         * docs/gst/tmpl/old/gsttimecache.sgml:
6048         * docs/gst/tmpl/old/gsttypefindfactory.sgml:
6049         * docs/gst/tmpl/old/gstxmlregistry.sgml:
6050         * docs/gst/tmpl/old/gthread-cothreads.sgml:
6051         * docs/gst/tmpl/old/types.sgml:
6052           I didn't intend to add these or check them in.
6053
6054 2005-05-19  David Schleef  <ds@schleef.org>
6055
6056         * configure.ac: Use -no-common everywhere.  In a sane world, it
6057           would be the default in libtool, because without it, you can't
6058           build DLLs on Windows.
6059         * docs/gst/gstreamer-docs.sgml: Remove GstCpu, GstData, GstThread
6060         * docs/gst/gstreamer-sections.txt:
6061         * docs/gst/tmpl/gstcpu.sgml:
6062         * docs/gst/tmpl/gstdata.sgml:
6063         * docs/gst/tmpl/gstthread.sgml:
6064
6065 2005-05-19  David Schleef  <ds@schleef.org>
6066
6067         * gst/gstminiobject.c: (gst_value_set_mini_object),
6068         (gst_value_take_mini_object), (gst_value_get_mini_object):
6069         * gst/gstminiobject.h: Add GValue set/get functions.
6070
6071 2005-05-19  Wim Taymans  <wim@fluendo.com>
6072
6073         * gst/gstbuffer.c: (gst_buffer_init), (gst_subbuffer_get_type),
6074         (gst_subbuffer_class_init), (gst_subbuffer_finalize),
6075         (gst_subbuffer_init), (gst_buffer_is_span_fast):
6076         * gst/gstbuffer.h:
6077         * gst/gstbus.c: (gst_bus_post):
6078         * gst/gstelement.c: (gst_element_get_random_pad):
6079         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize):
6080         Make subbufer unref the parent in finalize.
6081         some more debugging info.
6082
6083
6084 2005-05-19  Wim Taymans  <wim@fluendo.com>
6085
6086         * gst/base/gstbasesink.c: (gst_basesink_class_init),
6087         (gst_basesink_init), (gst_basesink_finalize),
6088         (gst_basesink_activate), (gst_basesink_change_state):
6089         Don't free preroll queue too early.
6090
6091 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6092
6093         * gst/Makefile.am:
6094         * gst/ROADMAP:
6095           Hi, I'm outdated. Please shoot me.
6096
6097 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6098
6099         * gst/gstpipeline.c: (gst_pipeline_send_event):
6100           Do not access variables after they have been deleted.
6101
6102 2005-05-19  Wim Taymans  <wim@fluendo.com>
6103
6104         * tools/gst-inspect.c: (print_plugin_features):
6105         A plugin feature does unfortunatly not use the
6106         object name yet...
6107
6108 2005-05-18  Wim Taymans  <wim@fluendo.com>
6109
6110         * gst/gstbuffer.c: (gst_buffer_is_span_fast), (gst_buffer_span):
6111         Port _span() functions to new subbuffers.
6112
6113 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6114
6115         * gst/gstbin.c: (gst_bin_add_func):
6116           Fix clock settery in bins when adding kids after the clock has
6117           been selected.
6118
6119 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6120
6121         * gst/elements/gstidentity.c: (gst_identity_class_init):
6122           Workaround until signals support GstMiniObject.
6123
6124 2005-05-18  Jan Schmidt  <thaytan@mad.scientist.com>
6125
6126         * gst/gstbuffer.c:
6127         Oops, fix a typo GST_TYPE_BUFFER -> GST_TYPE_SUBBUFFER.
6128
6129 2005-05-18  Wim Taymans  <wim@fluendo.com>
6130
6131         * gst/base/Makefile.am:
6132         * gst/base/gstadapter.c: (gst_adapter_base_init),
6133         (gst_adapter_class_init), (gst_adapter_init),
6134         (gst_adapter_dispose), (gst_adapter_finalize), (gst_adapter_new),
6135         (gst_adapter_clear), (gst_adapter_push), (gst_adapter_peek),
6136         (gst_adapter_flush), (gst_adapter_available),
6137         (gst_adapter_available_fast):
6138         * gst/base/gstadapter.h:
6139         Ported and added adapter to the base classes.
6140
6141 2005-05-17  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
6142
6143         * gst/gst.c:
6144         * gst/gstmessage.c:
6145           Make sure the class is reffed/unreffed once before threads can be
6146           used.  Fixes #304551.
6147
6148 2005-05-17  Wim Taymans  <wim@fluendo.com>
6149
6150         * gst/base/gstbasesink.c: (gst_basesink_finish_preroll),
6151         (gst_basesink_chain_unlocked), (gst_basesink_activate):
6152         * gst/gstminiobject.c: (gst_mini_object_get_type),
6153         (gst_mini_object_free):
6154         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query),
6155         (gst_pad_push), (gst_pad_push_event):
6156         * gst/gstqueue.c: (gst_queue_change_state):
6157         Don't queue buffers in basesink when we are flushing.
6158         Unref buffer when flushing in basesink.
6159         Flush queue when going to READY
6160         Unref buffer when _push() returns an error.
6161         Don't free MiniObject instance when refcount is incremented
6162         in _finalize() so that we can recover objects.
6163
6164 2005-05-17  Thomas Vander Stichele  <thomas at apestaart dot org>
6165
6166         * docs/manual/advanced-schedulers.xml:
6167         * docs/manual/appendix-checklist.xml:
6168         * docs/pwg/advanced-clock.xml:
6169         * docs/pwg/advanced-interfaces.xml:
6170         * docs/pwg/advanced-request.xml:
6171         * docs/pwg/advanced-types.xml:
6172         * docs/pwg/intro-preface.xml:
6173         * examples/plugins/example.c: (gst_example_get_type),
6174         (gst_example_class_init), (gst_example_chain),
6175         (gst_example_set_property), (gst_example_get_property),
6176         (gst_example_change_state), (plugin_init):
6177         * examples/plugins/example.h:
6178           small doc fixes
6179
6180 2005-05-17  Wim Taymans  <wim@fluendo.com>
6181
6182         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps),
6183         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_push):
6184         * gst/gstqueue.c: (gst_queue_change_state):
6185         Clear queue when going to READY.
6186         Remove IN_SETCAPS flag too.
6187
6188 2005-05-17  Tim-Philipp Müller  <tim at centricular dot net>
6189
6190         * gst/base/gstbasesrc.c: (gst_basesrc_change_state):
6191           Remove implicit cast from gboolean to GstElementStateReturn;
6192           make sure we still return failure in paused => ready case if
6193           the parent class fails to change state and our own stop 
6194           vfunc succeeds.
6195
6196 2005-05-17  Wim Taymans  <wim@fluendo.com>
6197
6198         * tools/gst-launch.c: (event_loop):
6199         Message was unreffed too soon.
6200
6201 2005-05-16  Andy Wingo  <wingo@pobox.com>
6202
6203         * gst/gstbin.c (sink_iterator_filter): Err... um...
6204
6205         * check/gst/gstbin.c (test_ghost_pads): New test for the
6206         ghosting-if-elements-not-in-same-bin behavior.
6207
6208 2005-05-16  David Schleef  <ds@schleef.org>
6209
6210         * gst/gstminiobject.c: Use g_atomic_int_get() instead of
6211         accessing refcount directly.
6212
6213 2005-05-15  David Schleef  <ds@schleef.org>
6214
6215         * check/Makefile.am: remove GstData checks
6216         * check/gst-libs/gdp.c: (START_TEST): fix for API changes
6217         * gst/Makefile.am: add miniobject, remove data
6218         * gst/gst.h: add miniobject, remove data
6219         * gst/gstdata.c: remove
6220         * gst/gstdata.h: remove
6221         * gst/gstdata_private.h: remove
6222         * gst/gsttypes.h: remove GstEvent and GstMessage
6223         * gst/gstelement.c: (gst_element_post_message): fix for API changes
6224         * gst/gstmarshal.list: change BOXED -> OBJECT
6225
6226         Implement GstMiniObject.
6227         * gst/gstminiobject.c:
6228         * gst/gstminiobject.h:
6229
6230         Modify to be subclasses of GstMiniObject.
6231         * gst/gstbuffer.c: (_gst_buffer_initialize), (gst_buffer_get_type),
6232         (gst_buffer_class_init), (gst_buffer_finalize), (_gst_buffer_copy),
6233         (gst_buffer_init), (gst_buffer_new), (gst_buffer_new_and_alloc),
6234         (gst_subbuffer_get_type), (gst_subbuffer_init),
6235         (gst_buffer_create_sub), (gst_buffer_is_span_fast),
6236         (gst_buffer_span):
6237         * gst/gstbuffer.h:
6238         * gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type),
6239         (gst_event_class_init), (gst_event_init), (gst_event_finalize),
6240         (_gst_event_copy), (gst_event_new):
6241         * gst/gstevent.h:
6242         * gst/gstmessage.c: (_gst_message_initialize),
6243         (gst_message_get_type), (gst_message_class_init),
6244         (gst_message_init), (gst_message_finalize), (_gst_message_copy),
6245         (gst_message_new), (gst_message_new_error),
6246         (gst_message_new_warning), (gst_message_new_tag),
6247         (gst_message_new_state_changed), (gst_message_new_application):
6248         * gst/gstmessage.h:
6249         * gst/gstprobe.c: (gst_probe_perform),
6250         (gst_probe_dispatcher_dispatch):
6251         * gst/gstprobe.h:
6252         * gst/gstquery.c: (_gst_query_initialize), (gst_query_get_type),
6253         (gst_query_class_init), (gst_query_finalize), (gst_query_init),
6254         (_gst_query_copy), (gst_query_new):
6255
6256         Update elements for GstData -> GstMiniObject changes
6257         * gst/gstquery.h:
6258         * gst/gstqueue.c: (gst_queue_finalize), (gst_queue_locked_flush),
6259         (gst_queue_chain), (gst_queue_loop):
6260         * gst/elements/gstbufferstore.c:
6261         (gst_buffer_store_add_buffer_func),
6262         (gst_buffer_store_cleared_func), (gst_buffer_store_get_buffer):
6263         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
6264         (gst_fakesink_render):
6265         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
6266         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_get_type),
6267         (gst_mmap_buffer_class_init), (gst_mmap_buffer_init),
6268         (gst_mmap_buffer_finalize), (gst_filesrc_map_region),
6269         (gst_filesrc_create_read):
6270         * gst/elements/gstidentity.c: (gst_identity_class_init):
6271         * gst/elements/gsttypefindelement.c:
6272         (gst_type_find_element_src_event), (free_entry_buffers),
6273         (gst_type_find_element_handle_event):
6274         * libs/gst/dataprotocol/dataprotocol.c:
6275         (gst_dp_header_from_buffer):
6276         * libs/gst/dataprotocol/dataprotocol.h:
6277         * libs/gst/dataprotocol/dp-private.h:
6278
6279 2005-05-15  David Schleef  <ds@schleef.org>
6280
6281         * gst/elements/gstelements.c: Don't include headers that were
6282         just removed.
6283
6284 2005-05-15  David Schleef  <ds@schleef.org>
6285
6286         * gst/elements/Makefile.am: Remove some elements that don't
6287         need to be in the core (or even exist at all).
6288         * gst/elements/gstaggregator.c:
6289         * gst/elements/gstaggregator.h:
6290         * gst/elements/gstmd5sink.c:
6291         * gst/elements/gstmd5sink.h:
6292         * gst/elements/gstmultifilesrc.c:
6293         * gst/elements/gstmultifilesrc.h:
6294         * gst/elements/gstpipefilter.c:
6295         * gst/elements/gstpipefilter.h:
6296         * gst/elements/gstshaper.c:
6297         * gst/elements/gstshaper.h:
6298         * gst/elements/gststatistics.c:
6299         * gst/elements/gststatistics.h:
6300         * po/POTFILES.in: Remove above files.
6301
6302 2005-05-14  Andy Wingo  <wingo@pobox.com>
6303
6304         * gst/gstbin.c (gst_bin_iterate_sinks): Use sink_iterator_filter
6305         so as to get the refs right.
6306         (sink_iterator_filter): New function, wraps bin_element_is_sink,
6307         unreffing objects that don't pass the filter.
6308
6309         * gst/gstpipeline.c (gst_pipeline_init): Drop ref on bus after
6310         gst_element_set_bus.
6311         (gst_pipeline_dispose): Set the bus on the pipeline to NULL. In
6312         normal cases, this will destroy the bus.
6313
6314         * gst/gstutils.c (prepare_link_maybe_ghosting): Drop ref on root
6315         object.
6316
6317         * gst/gstbin.c (gst_bin_change_state): Fix state changes if a bin
6318         has no sinks.
6319
6320 2005-05-13  Andy Wingo  <wingo@pobox.com>
6321
6322         * gst/gstutils.c (gst_element_link_pads): Instead of calling
6323         gst_pad_link, call pad_link_maybe_ghosting,
6324         (pad_link_maybe_ghosting): Links pads, making sure that the
6325         elements being linked are in the same bin.
6326         (find_common_root, object_has_ancestor, ghost_up, remove_pad):
6327         Helpers for pad_link_maybe_ghosting.
6328
6329 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
6330
6331         * configure.ac:
6332           Require GLib >= 2.4.0 (for the g_atomic_* funcs)
6333
6334 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
6335
6336         * docs/design/part-element-source.txt:
6337           Mention GstPushSrc
6338
6339 2005-05-12  Wim Taymans  <wim@fluendo.com>
6340
6341         * gst/base/gstbasesink.c: (gst_basesink_init),
6342         (gst_basesink_activate):
6343         * gst/base/gstbasesrc.c: (gst_basesrc_unlock),
6344         (gst_basesrc_is_seekable):
6345         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
6346         (bin_element_is_sink), (gst_bin_change_state):
6347         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
6348         * gst/gstelement.h:
6349         Identify sinks by their flag to avoid overly complicated
6350         checks (fow now).
6351         Do state changes even for elements not reachable from the
6352         sinks.
6353         BaseSink is a sink now :)
6354         Some more debugging info in the basesrc.
6355
6356
6357 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6358
6359         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_query):
6360           Implement _query on a bin, similar to _send_event.
6361
6362 2005-05-12  Tim-Philipp Müller  <tim at centricular dot net>
6363
6364         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek):
6365           Discont event offset format should be GST_FORMAT_BYTES,
6366           not GST_FORMAT_TIME.
6367
6368 2005-05-12  Wim Taymans  <wim@fluendo.com>
6369
6370         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_get_state):
6371         Same fix as Ronald's but without the signal. 
6372
6373 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6374
6375         * gst/gstutils.c: (gst_element_query_position):
6376           No, an element is not a pad.
6377
6378 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6379
6380         * gst/gstbin.c: (gst_bin_add_func), (cb_parent_unset),
6381         (gst_bin_get_state):
6382           If a child is removed from a bin while we remove the child from
6383           the bin and while we're retrieving its state, signal this to the
6384           get_state function so we abort the wait (instead of waiting for
6385           a timeout) and can immediately re-iterate over all other elements.
6386
6387 2005-05-12  Wim Taymans  <wim@fluendo.com>
6388
6389         * gst/base/Makefile.am:
6390         * gst/base/gstbasesrc.c: (gst_basesrc_is_seekable),
6391         (gst_basesrc_start):
6392         * gst/base/gstbasesrc.h:
6393         * gst/base/gstpushsrc.c: (gst_pushsrc_get_type),
6394         (gst_pushsrc_base_init), (gst_pushsrc_class_init),
6395         (gst_pushsrc_init), (gst_pushsrc_create):
6396         * gst/base/gstpushsrc.h:
6397         Added is_seekable to BaseSrc
6398         Added simple PushSrc.
6399
6400 2005-05-11  Wim Taymans  <wim@fluendo.com>
6401
6402         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
6403         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
6404         (gst_element_link_pads), (gst_element_query_position),
6405         (gst_element_query_convert), (intersect_caps_func),
6406         (gst_pad_query_position), (gst_pad_query_convert):
6407         Fix refcounting in utils function.
6408         No point in trying to activate a pad when it's added, it could
6409         be added from the state change function and then we deadlock, the
6410         element has to decide what to do.
6411
6412 2005-05-10  Andy Wingo  <wingo@pobox.com>
6413
6414         * gst/elements/gstfakesink.c (gst_fakesink_render): Er, emit with
6415         *all* the arguments.
6416
6417         * gst/base/gstbasetransform.c (gst_base_transform_event): Grab the
6418         stream lock if it's a FLUSH_DONE; normal flushes don't get the
6419         lock (according to the docs -- if this is wrong change the docs).
6420
6421         * gst/gstpipeline.c (gst_pipeline_change_state): Set the bus to
6422         flush messages in the NULL state.
6423
6424         * gst/gstbus.c (gst_bus_post): If a bus is flushing, unref the
6425         message immediately and return.
6426         (gst_bus_set_flushing): New function. If a bus is flushing, it
6427         flushes out any queued messages and immediately unrefs new
6428         messages. This is so when an element goes to NULL, all of the
6429         unhandled messages coming from it can be freed, and their
6430         references to the element dropped. In other words: message source
6431         ref considered harmful :P
6432
6433         * gst/gstbin.c (gst_bin_change_state): Unref peer element when
6434         we're finished with it.
6435
6436         * gst/gstmessage.c (gst_message_new_state_changed): 
6437
6438 2005-05-10  Wim Taymans  <wim@fluendo.com>
6439
6440         * gst/gstvalue.c: (gst_value_compare_flags),
6441         (gst_value_serialize_flags), (gst_value_deserialize_flags),
6442         (_gst_value_initialize):
6443         Added flags serialize/deserialize/compare code.
6444
6445 2005-05-09  Andy Wingo  <wingo@pobox.com>
6446
6447         * gst/base/gstbasetransform.c (gst_base_transform_proxy_getcaps):
6448         Intersect the peer's caps with our caps.
6449
6450 2005-05-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6451
6452         * gst/base/gsttypefindhelper.c: (helper_find_peek):
6453         * gst/elements/gsttypefindelement.c: (find_peek):
6454           Handle negative offsets better. Fixes decodebin.
6455
6456 2005-05-09  Wim Taymans  <wim@fluendo.com>
6457
6458         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps),
6459         (gst_base_transform_event):
6460         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query):
6461         Implement accept_caps.
6462         Fix silly lock/unlock mismatch in base class.
6463
6464 2005-05-09  Wim Taymans  <wim@fluendo.com>
6465
6466         * docs/design/draft-push-pull.txt:
6467         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_query):
6468         * gst/elements/gstfilesink.c: (gst_filesink_init),
6469         (gst_filesink_query):
6470         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
6471         (gst_type_find_handle_src_query), (find_element_get_length):
6472         * gst/gstelement.c: (gst_element_seek), (gst_element_query):
6473         * gst/gstelement.h:
6474         * gst/gstmessage.c:
6475         * gst/gstmessage.h:
6476         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_get_query_types),
6477         (gst_real_pad_get_caps_unlocked),
6478         (gst_pad_get_internal_links_default), (gst_pad_get_internal_links),
6479         (gst_pad_event_default_dispatch), (gst_pad_event_default),
6480         (gst_pad_dispatcher), (gst_pad_query), (gst_pad_query_default),
6481         (gst_real_pad_dispose), (gst_real_pad_finalize),
6482         (gst_pad_load_and_link), (gst_pad_save_thyself),
6483         (gst_ghost_pad_save_thyself), (handle_pad_block), (gst_pad_push),
6484         (gst_pad_check_pull_range), (gst_pad_pull_range),
6485         (gst_pad_template_get_type), (gst_pad_template_class_init),
6486         (gst_pad_template_init), (gst_pad_template_dispose),
6487         (name_is_valid), (gst_static_pad_template_get),
6488         (gst_pad_template_new), (gst_static_pad_template_get_caps),
6489         (gst_pad_template_get_caps), (gst_pad_set_element_private),
6490         (gst_pad_get_element_private), (gst_pad_start_task),
6491         (gst_pad_pause_task), (gst_pad_stop_task),
6492         (gst_ghost_pad_get_type), (gst_ghost_pad_class_init),
6493         (gst_ghost_pad_init), (gst_ghost_pad_dispose),
6494         (gst_ghost_pad_set_property), (gst_ghost_pad_get_property),
6495         (gst_ghost_pad_new):
6496         * gst/gstpad.h:
6497         * gst/gstquery.c: (_gst_query_initialize), (gst_query_new),
6498         (gst_query_new_position), (gst_query_set_position),
6499         (gst_query_parse_position), (gst_query_new_convert),
6500         (gst_query_set_convert), (gst_query_parse_convert):
6501         * gst/gstquery.h:
6502         * gst/gstqueryutils.c:
6503         * gst/gstqueryutils.h:
6504         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
6505         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
6506         (gst_queue_handle_src_query):
6507         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
6508         (gst_element_query_position), (gst_element_query_convert),
6509         (intersect_caps_func), (gst_pad_query_position),
6510         (gst_pad_query_convert):
6511         * gst/gstutils.h:
6512         * tools/gst-inspect.c: (print_pad_info):
6513         * tools/gst-xmlinspect.c: (print_element_info):
6514         Remove old query functions. Ported old code.
6515         Added position/convert helper functions to gstutils.
6516         Reordered gstpad.c code, grouping relevant things.
6517         Remove gst_message_new(), always need to speficy a specific
6518         message.
6519
6520
6521 2005-05-09  Andy Wingo  <wingo@pobox.com>
6522
6523         * gst/gstiterator.h: Add some includes.
6524
6525         * gst/gstqueryutils.h: Include more headers.
6526
6527         * gst/gstpad.h:
6528         * gst/gstpad.c (gst_pad_query_position): New routine, replaces
6529         some uses of gst_pad_query.
6530
6531         * gst/gstqueryutils.c: Build fixes. Make parse functions ignore
6532         NULL out parameters.
6533         (gst_query_new_position): New proc, allocates a new position
6534         query.
6535
6536         * gst/Makefile.am (libgstreamer_@GST_MAJORMINOR@_la_SOURCES): Add
6537         gstqueryutils.c to the build.
6538
6539         * gst/gststructure.c (gst_structure_set_valist): Implement with
6540         the generic G_VALUE_COLLECT.
6541         
6542 2005-05-08  Edward Hervey  <bilboed@bilboed.com>
6543
6544         * gst/Makefile.am: (gst_headers):
6545         Added gstqueryutils.h to the list of headers to install, that was
6546         a 'nachty' move wingo :)
6547
6548 2005-05-06  Andy Wingo  <wingo@pobox.com>
6549
6550         * gst/gstquery.h
6551         * gst/gstquery.c (_gst_query_initialize): Extend GstQuery from
6552         GstData, init a memchunk.
6553         (standard_definitions): Add a few query types, deprecate a few.
6554         (gst_query_get_type): New proc.
6555         (_gst_query_copy, _gst_query_free, gst_query_new): GstData
6556         implementation.
6557         (gst_query_new_application, gst_query_get_structure): New public
6558         procs.
6559
6560         * docs/design/draft-query.txt: Removed LINKS from the query types,
6561         because all the rest can be dispatched to other pads -- seemed
6562         ugly to have a query that couldn't be dispatched. internal_links
6563         is fine as a pad method.
6564
6565         * gst/gstpad.h: Add query2 as a pad method, add the new functions
6566         in gstpad.c, but maintain binary compatibility for the moment.
6567         Will fix before 0.9 is out.
6568
6569         * gst/gstqueryutils.c: 
6570         * gst/gstqueryutils.h: New files, implement 3 methods for each
6571         query type: parse_query, parse_response, and set. Probably need an
6572         allocator as well.
6573
6574         * gst/gst.h: Add gstquery.h and gstqueryutils.h to the list.
6575
6576         * gst/elements/gstfilesink.c (gst_filesink_query2):
6577         * gst/base/gstbasesrc.c (gst_basesrc_query2): Replace old query,
6578         query_types, and formats methods.
6579
6580         * gst/gstpad.c (gst_pad_query2, gst_pad_query2_default)
6581         (gst_pad_set_query2_function): New functions.
6582         (gst_real_pad_init): Set query2_default as the default query2
6583         function. Basically just dispatches to internally linked pads.
6584
6585         Needs review!
6586         
6587         * gst/gstdata_private.h (_GST_DATA_INIT): Set data->refcount to 1
6588         without using the atomic operations. Only one thread can possibly
6589         be accessing the data at this point. Changed so as to avoid
6590         gst_atomic operations.
6591
6592 2005-05-06  Wim Taymans  <wim@fluendo.com>
6593
6594         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push):
6595         Also set caps if we use the fallback buffer alloc.
6596
6597 2005-05-06  Tim-Philipp Müller  <tim at centricular dot net>
6598
6599         * docs/gst/Makefile.am:
6600         * docs/gst/gstreamer-docs.sgml:
6601         * docs/gst/gstreamer-sections.txt:
6602         * docs/gst/tmpl/gstatomic.sgml:
6603         * docs/gst/tmpl/gstmemchunk.sgml:
6604         * testsuite/elements/struct_i386.h:
6605         * win32/GStreamer.vcproj:
6606         * win32/Makefile:
6607           Purge GstAtomic stuff from docs and win32 makefiles as well
6608
6609 2005-05-06  Wim Taymans  <wim@fluendo.com>
6610
6611         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps):
6612         * gst/elements/gstcapsfilter.c: (gst_capsfilter_getcaps):
6613         * gst/gstpad.c: (gst_pad_peer_get_caps):
6614         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
6615         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
6616         (gst_queue_src_activate), (gst_queue_change_state):
6617         * gst/gstqueue.h:
6618         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
6619         (intersect_caps_func):
6620         Fix gst_pad_peer_get_caps(), make it return NULL if no peer.
6621         Always take QUEUE_LOCK after STREAM_LOCK or we might deadlock.
6622         Some fixes for the peer_get_caps() change.
6623
6624 2005-05-06  Wim Taymans  <wim@fluendo.com>
6625
6626         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
6627         (gst_basesink_handle_buffer), (gst_basesink_chain_unlocked),
6628         (gst_basesink_activate):
6629         Actually do something with error codes returned from the push
6630         functions.
6631
6632 2005-05-06  Wim Taymans  <wim@fluendo.com>
6633
6634         * docs/design/part-element-sink.txt:
6635         * docs/design/part-element-source.txt:
6636         * gst/base/gstbasesink.c: (gst_basesink_class_init),
6637         (gst_basesink_event), (gst_basesink_activate):
6638         * gst/base/gstbasesink.h:
6639         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_unlock),
6640         (gst_basesrc_activate):
6641         * gst/base/gstbasesrc.h:
6642         * gst/gstelement.c: (gst_element_pads_activate):
6643         Some more documentation.
6644         Fixed scheduling decision in _pads_activate().
6645
6646 2005-05-05  Andy Wingo  <wingo@pobox.com>
6647
6648         * check/pipelines/simple_launch_lines.c (test_2_elements): "Fix"
6649         the test suite.
6650
6651 2005-05-05  Wim Taymans  <wim@fluendo.com>
6652
6653         * gst/base/Makefile.am:
6654         * gst/base/gstbasesink.h:
6655         * gst/base/gstbasesrc.c: (gst_basesrc_init),
6656         (gst_basesrc_set_dataflow_funcs), (gst_basesrc_query):
6657         * gst/base/gstcollectpads.c: (gst_collectpads_get_type),
6658         (gst_collectpads_class_init), (gst_collectpads_init),
6659         (gst_collectpads_finalize), (gst_collectpads_new),
6660         (gst_collectpads_set_function), (gst_collectpads_add_pad),
6661         (find_pad), (gst_collectpads_remove_pad),
6662         (gst_collectpads_is_active), (gst_collectpads_collect),
6663         (gst_collectpads_collect_range), (gst_collectpads_start),
6664         (gst_collectpads_stop), (gst_collectpads_peek),
6665         (gst_collectpads_pop), (gst_collectpads_available),
6666         (gst_collectpads_read), (gst_collectpads_flush),
6667         (gst_collectpads_chain):
6668         * gst/base/gstcollectpads.h:
6669         * gst/elements/Makefile.am:
6670         * gst/elements/gstelements.c:
6671         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
6672         (gst_fakesink_get_times), (gst_fakesink_event),
6673         (gst_fakesink_preroll), (gst_fakesink_render):
6674         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
6675         (gst_filesink_init), (gst_filesink_set_location),
6676         (gst_filesink_open_file), (gst_filesink_close_file),
6677         (gst_filesink_pad_query), (gst_filesink_event),
6678         (gst_filesink_render), (gst_filesink_change_state):
6679         * gst/elements/gstfilesink.h:
6680         Added object to help in making collect pad based elements.
6681         Ported filesink.
6682         Make event function in sink baseclass return gboolean.
6683
6684 2005-05-05  Wim Taymans  <wim@fluendo.com>
6685
6686         * gst/gstbin.c: (gst_bin_send_event), (compare_name),
6687         (gst_bin_get_by_name):
6688         * gst/gstbuffer.h:
6689         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_class_init),
6690         (gst_clock_finalize):
6691         * gst/gstdata.c: (gst_data_replace):
6692         * gst/gstdata.h:
6693         * gst/gstelement.c: (gst_element_request_pad),
6694         (gst_element_pads_activate):
6695         * gst/gstobject.c: (gst_object_init), (gst_object_ref),
6696         (gst_object_unref):
6697         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
6698         (gst_pad_set_checkgetrange_function),
6699         (gst_pad_link_check_compatible_unlocked), (gst_pad_set_caps),
6700         (gst_pad_check_pull_range), (gst_pad_pull_range),
6701         (gst_static_pad_template_get_caps), (gst_pad_start_task),
6702         (gst_pad_pause_task), (gst_pad_stop_task):
6703         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
6704         (gst_element_request_pad), (gst_pad_proxy_getcaps):
6705         Fix name lookup in GstBin.
6706         Added _data_replace() function and _buffer_replace()
6707         Use finalize method to clean up clock.
6708         Fix refcounting on request pads.
6709         Fix pad schedule mode error.
6710         Some more object refcounting debug info,
6711
6712
6713 2005-05-04  Andy Wingo <wingo@pobox.com>
6714
6715         * check/Makefile.am:
6716         * docs/gst/tmpl/gstatomic.sgml:
6717         * docs/gst/tmpl/gstplugin.sgml:
6718         * gst/base/gstbasesink.c: (gst_basesink_activate):
6719         * gst/base/gstbasesrc.c: (gst_basesrc_class_init),
6720         (gst_basesrc_init), (gst_basesrc_set_dataflow_funcs),
6721         (gst_basesrc_query), (gst_basesrc_set_property),
6722         (gst_basesrc_get_property), (gst_basesrc_check_get_range),
6723         (gst_basesrc_activate):
6724         * gst/base/gstbasesrc.h:
6725         * gst/base/gstbasetransform.c: (gst_base_transform_sink_activate),
6726         (gst_base_transform_src_activate):
6727         * gst/elements/gstelements.c:
6728         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
6729         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
6730         * gst/elements/gsttee.c: (gst_tee_sink_activate):
6731         * gst/elements/gsttypefindelement.c: (find_element_get_length),
6732         (gst_type_find_element_checkgetrange),
6733         (gst_type_find_element_activate):
6734         * gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
6735         * gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
6736         (gst_caps_load_thyself):
6737         * gst/gstelement.c: (gst_element_pads_activate),
6738         (gst_element_save_thyself), (gst_element_restore_thyself):
6739         * gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
6740         (gst_ghost_pad_save_thyself), (gst_pad_check_pull_range):
6741         * gst/gstpad.h:
6742         * gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
6743         (gst_xml_parse_file), (gst_xml_parse_memory),
6744         (gst_xml_get_element), (gst_xml_make_element):
6745         * gst/indexers/gstfileindex.c: (gst_file_index_load),
6746         (_file_index_id_save_xml), (gst_file_index_commit):
6747         * gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
6748         (read_enum), (load_pad_template), (load_feature), (load_plugin),
6749         (load_paths):
6750         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
6751         (gst_dp_packet_from_event), (gst_dp_caps_from_packet):
6752         * tools/gst-complete.c: (main):
6753         * tools/gst-compprep.c: (main):
6754         * tools/gst-inspect.c: (print_element_properties_info):
6755         * tools/gst-launch.c: (xmllaunch_parse_cmdline):
6756         * tools/gst-xmlinspect.c: (print_element_properties):
6757         GCC 4 fixen.
6758         
6759 2005-05-03  Thomas Vander Stichele  <thomas at apestaart dot org>
6760
6761         * gst/gstplugin.c: (gst_plugin_check_module),
6762         (gst_plugin_check_file), (gst_plugin_load_file):
6763             apply patch from #172526 to make register work on MacOSX
6764
6765 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
6766
6767         * docs/gst/tmpl/gstconfig.sgml:
6768         * gst/gstconfig.h.in:
6769           move documentation for some symbols.  Add doc for GST_PTR_FORMAT
6770         * testsuite/debug/printf_extension.c: (main):
6771           Do not use GST_PTR_FORMAT on pointers to types with
6772           sizeof < sizeof(gpointer).  Fixes test on 64-bit
6773         * testsuite/elements/property.h:
6774           use correct printf format
6775
6776 2005-05-02  Wim Taymans  <wim@fluendo.com>
6777
6778         * docs/design/draft-push-pull.txt:
6779         * docs/design/draft-query.txt:
6780         * gst/base/gstbasesrc.c: (gst_basesrc_get_range_unlocked),
6781         (gst_basesrc_start):
6782         Added draft for new query API.
6783         Added draft for better selecting scheduling methods.
6784         Make basesrc ignore length if the subclass does not support
6785         it.
6786
6787 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
6788
6789         * gst/Makefile.am:
6790           possible fixes for automake-1.5 - _LIBADD is reserved
6791
6792 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
6793
6794         * docs/faq/Makefile.am:
6795         * docs/manual/Makefile.am:
6796         * docs/manuals.mak:
6797         * docs/pwg/Makefile.am:
6798         * gst/Makefile.am:
6799           possible fixes for automake-1.5
6800
6801 2005-04-28  Wim Taymans  <wim@fluendo.com>
6802
6803         * gst/base/gstbasesink.c: (gst_basesink_base_init),
6804         (gst_basesink_pad_getcaps), (gst_basesink_init),
6805         (gst_basesink_do_sync):
6806         * gst/gstclock.c: (gst_clock_entry_new):
6807         * gst/gstevent.c: (gst_event_discont_get_value):
6808         * gst/gstpipeline.c: (pipeline_bus_handler),
6809         (gst_pipeline_change_state):
6810         * gst/gstsystemclock.c: (gst_system_clock_id_wait_unlocked):
6811         Better debugging of clocking info.
6812         Allow NULL values when getting discont values.
6813
6814 2005-04-27  Wim Taymans  <wim@fluendo.com>
6815
6816         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
6817         * check/gst/gstpad.c: (gst_pad_suite):
6818         Increase timeout for checks.
6819
6820 2005-04-27  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
6821
6822         * check/Makefile.am:
6823           fix the broken rule for cleanup.  Apparently this rule is
6824           only needed on FC2, so maybe this warrants further autotool
6825           inspection.
6826
6827 2005-04-26  Wim Taymans  <wim@fluendo.com>
6828
6829         * gst/gsttrashstack.h:
6830         Ooohh. a nasty one! After having a failed pop() from the stack,
6831         it's possible that the stack is empty. In that case, don't
6832         follow the NULL pointer.
6833
6834 2005-04-25  Wim Taymans  <wim@fluendo.com>
6835
6836         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
6837         (gst_pad_set_checkgetrange_function),
6838         (gst_pad_link_check_compatible_unlocked), (gst_pad_link_prepare),
6839         (gst_pad_check_pull_range), (gst_pad_pull_range),
6840         (gst_static_pad_template_get_caps), (gst_pad_start_task),
6841         (gst_pad_pause_task), (gst_pad_stop_task):
6842         * gst/gstplugin.c: (gst_plugin_load):
6843         * gst/gstplugin.h:
6844         Remove gst_library_load as it does more harm than good with
6845         the new g_module flags.
6846         Revert bogus caps template check in pad linking, pad caps
6847         are important when linking not the template, which is more
6848         general than the current caps.
6849
6850 2005-04-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6851
6852         * gst/autoplug/.cvsignore:
6853         * gst/autoplug/Makefile.am:
6854         * gst/autoplug/gstsearchfuncs.c:
6855         * gst/autoplug/gstsearchfuncs.h:
6856         * gst/autoplug/gstspider.c:
6857         * gst/autoplug/gstspider.h:
6858         * gst/autoplug/gstspideridentity.c:
6859         * gst/autoplug/gstspideridentity.h:
6860         * gst/autoplug/spidertest.c:
6861           Die, spider, die.
6862
6863 2005-04-25  Wim Taymans  <wim@fluendo.com>
6864
6865         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
6866         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
6867         (gst_pad_pull_range), (gst_static_pad_template_get_caps),
6868         (gst_pad_start_task), (gst_pad_pause_task), (gst_pad_stop_task):
6869         * gst/gstpad.h:
6870         Added stubs for unimplemented functions. 
6871
6872 2005-04-24  David Schleef  <ds@schleef.org>
6873
6874         * gst/gstpad.h: Disable some unimplemented functions.  Wim,
6875         please fix.
6876
6877 2005-04-24  David Schleef  <ds@schleef.org>
6878
6879         Convert everything from GstAtomicInt to g_atomic_int_*, and
6880         remove gstatomic.
6881         * gst/Makefile.am:
6882         * gst/gstatomic.c:
6883         * gst/gstatomic.h:
6884         * gst/gstatomic_impl.h:
6885         * gst/gstbuffer.c:
6886         * gst/gstcaps.c:
6887         * gst/gstcaps.h:
6888         * gst/gstclock.c:
6889         * gst/gstclock.h:
6890         * gst/gstdata.c:
6891         * gst/gstdata.h:
6892         * gst/gstdata_private.h:
6893         * gst/gstevent.c:
6894         * gst/gstinfo.c:
6895         * gst/gstinfo.h:
6896         * gst/gstmessage.c:
6897         * gst/gstobject.c:
6898         * gst/gstobject.h:
6899         * gst/gststructure.c:
6900         * gst/gststructure.h:
6901         * gst/gstutils.c: Add gst_atomic_int_set() compaitibility function.
6902         * gst/gstutils.h:
6903
6904 2005-04-24  David Schleef  <ds@schleef.org>
6905
6906         * check/gst/gstpad.c: (START_TEST): Oh yeah, it's always nice to
6907         make the regressions tests work.  Remove some code that is no
6908         longer true.
6909         * gst/gstpad.c: (gst_pad_link_check_templates_compatible_unlocked):
6910         Disable warning for pads without templates.
6911
6912 2005-04-24  David Schleef  <ds@schleef.org>
6913
6914         * gst/gstpad.c: Remove handling of filtered caps.  Fix/merge
6915         functions that handle filtered links.
6916         * gst/gstpad.h: Remove 'appfilter' field and prototypes of
6917         removed functions.
6918         * gst/gstutils.c: Fix/remove utility functions that handle
6919         filtered caps.
6920         * gst/gstutils.h:
6921         * gst/gstvalue.c: Add serialization/deserialization of caps
6922         * gst/parse/grammar.y: Ignore filtered caps when linking.  This
6923         requires fixing so that the filter caps notation creates
6924         a capsfilter element and sets the filter_caps property.  I
6925         think everyone probably wants to keep the shorthand notation.
6926         * docs/gst/tmpl/gstelement.sgml: updates for API changes.
6927         * docs/gst/tmpl/gstpad.sgml:
6928
6929         * gst/elements/gstelements.c: Register capsfilter element.
6930         * gst/Makefile.am: fix spacing
6931         * docs/random/ds/0.9-suggested-changes: random
6932
6933 2005-04-23  David Schleef  <ds@schleef.org>
6934
6935         * gst/elements/Makefile.am:
6936         * gst/elements/gstcapsfilter.c: New element that acts like an
6937         identity, but filters caps.  Will eventually replace filtered
6938         caps in pad linking.
6939         * gst/gstutils.c: (gst_element_create_all_pads): New function
6940         to create all the ALWAYS pads that are registered with an
6941         element class.  This functionality should eventually be
6942         merged in with GstElement initialization.
6943         * gst/gstutils.h:
6944         * testsuite/trigger/README: part of trigger test code that should
6945         have been checked in a long time ago.
6946
6947 2005-04-23  David Schleef  <ds@schleef.org>
6948
6949         * gst/Makefile.am: Remove as-libtool stuff.  It's likely not
6950         needed with new versions of libtool (nobody will confirm this),
6951         and hard to carry around.
6952         * gst/autoplug/Makefile.am:
6953         * gst/base/Makefile.am:
6954         * gst/elements/Makefile.am:
6955         * gst/indexers/Makefile.am:
6956         * gst/schedulers/Makefile.am:
6957         * libs/gst/bytestream/Makefile.am:
6958         * libs/gst/control/Makefile.am:
6959         * libs/gst/dataprotocol/Makefile.am:
6960         * libs/gst/getbits/Makefile.am:
6961
6962 2005-04-21  Wim Taymans  <wim@fluendo.com>
6963
6964         * docs/design/draft-push-pull.txt:
6965         * docs/design/part-MT-refcounting.txt:
6966         * docs/design/part-TODO.txt:
6967         * docs/design/part-caps.txt:
6968         * docs/design/part-events.txt:
6969         * docs/design/part-gstbus.txt:
6970         * docs/design/part-gstpipeline.txt:
6971         * docs/design/part-messages.txt:
6972         * docs/design/part-push-pull.txt:
6973         * docs/design/part-query.txt:
6974         Some more docs.
6975
6976 2005-04-21  Wim Taymans  <wim@fluendo.com>
6977
6978         * gst/gstmessage.c: (_gst_message_copy), (_gst_message_free),
6979         (gst_message_new), (gst_message_new_error),
6980         (gst_message_new_warning), (gst_message_new_tag),
6981         (gst_message_new_state_changed), (gst_message_new_application),
6982         (gst_message_get_structure):
6983         * gst/gstmessage.h:
6984         * gst/gststructure.c: (gst_structure_set_parent_refcount),
6985         (gst_structure_copy_conditional):
6986         Use parent refcount in GstMessage to ensure GstStructure
6987         consistency.
6988         Cleaned up headers a bit.
6989         
6990
6991 2005-04-20  Wim Taymans  <wim@fluendo.com>
6992
6993         * gst/base/gstbasesink.c: (gst_basesink_base_init),
6994         (gst_basesink_pad_getcaps), (gst_basesink_init),
6995         (gst_basesink_chain_unlocked):
6996         * gst/base/gsttypefindhelper.c: (helper_find_suggest),
6997         (gst_type_find_helper):
6998         * gst/elements/gsttypefindelement.c:
6999         (gst_type_find_element_have_type), (gst_type_find_element_init),
7000         (stop_typefinding), (gst_type_find_element_handle_event),
7001         (find_suggest), (gst_type_find_element_chain),
7002         (gst_type_find_element_checkgetrange),
7003         (gst_type_find_element_getrange), (do_typefind),
7004         (gst_type_find_element_activate):
7005         * gst/gstbuffer.c: (_gst_buffer_sub_free),
7006         (gst_buffer_default_free), (gst_buffer_default_copy),
7007         (gst_buffer_set_caps):
7008         * gst/gstcaps.c: (gst_caps_ref), (gst_caps_unref),
7009         (gst_caps_replace):
7010         * gst/gstmessage.c: (gst_message_new),
7011         (gst_message_new_state_changed):
7012         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
7013         (gst_pad_set_checkgetrange_function),
7014         (gst_pad_link_prepare_filtered), (gst_pad_relink_filtered),
7015         (gst_pad_set_caps), (gst_pad_check_pull_range),
7016         (gst_pad_pull_range), (gst_static_pad_template_get_caps):
7017         * gst/gstpad.h:
7018         * gst/gsttypefind.c: (gst_type_find_register):
7019         Make gst_caps_replace() work like other _replace() functions.
7020         Use _caps_replace() where possible.
7021         Make sure _message_new() initialises its field.
7022         Add gst_static_pad_template_get_caps()
7023
7024
7025 2005-04-18  Andy Wingo  <wingo@pobox.com>
7026
7027         * gst/gstelement.c (gst_element_pads_activate): Check pull_range
7028         on the peer, not the pad. I think that was a typo. Pass an extra
7029         arg to see if random access is possible. Activate the pads as
7030         PULL_RANGE if possible.
7031
7032         * gst/elements/gstfakesrc.c: s/ARG_/PROP_/.
7033
7034         * gst/base/gstbasesrc.c (gst_basesrc_set_property) 
7035         (gst_basesrc_get_property): BLOCKSIZE is a ULONG. Rename ARG_...
7036         to PROP_....
7037
7038 2005-04-14  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7039
7040         * docs/faq/using.xml:
7041           Add note on gstreamer-properties (#154996).
7042
7043 2005-04-13  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7044
7045         * docs/random/bbb/optional-properties:
7046           Some analysis on optional properties.
7047
7048 2005-04-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7049
7050         * docs/gst/tmpl/gstelementfactory.sgml:
7051         * gst/gstelement.h:
7052         * gst/gstelementfactory.c: (gst_element_factory_init),
7053         (gst_element_factory_cleanup), (gst_element_register),
7054         (__gst_element_factory_add_static_pad_template),
7055         (gst_element_factory_get_static_pad_templates),
7056         (gst_element_factory_can_src_caps),
7057         (gst_element_factory_can_sink_caps):
7058         * gst/registries/Makefile.am:
7059         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_get_type),
7060         (gst_xml_registry_class_init), (gst_xml_registry_init),
7061         (gst_xml_registry_new), (gst_xml_registry_set_property),
7062         (gst_xml_registry_get_property), (get_time), (make_dir),
7063         (gst_xml_registry_get_perms_func),
7064         (plugin_times_older_than_recurse), (plugin_times_older_than),
7065         (gst_xml_registry_open_func), (gst_xml_registry_load_func),
7066         (gst_xml_registry_save_func), (gst_xml_registry_close_func),
7067         (add_to_char_array), (read_string), (read_uint), (read_enum),
7068         (load_pad_template), (load_feature), (load_plugin), (load_paths),
7069         (gst_xml_registry_load), (gst_xml_registry_load_plugin),
7070         (gst_xml_registry_save_caps), (gst_xml_registry_save_pad_template),
7071         (gst_xml_registry_save_feature), (gst_xml_registry_save_plugin),
7072         (gst_xml_registry_save), (gst_xml_registry_rebuild_recurse),
7073         (gst_xml_registry_rebuild):
7074         * gst/registries/gstlibxmlregistry.h:
7075         * tools/gst-compprep.c: (main):
7076         * tools/gst-inspect.c: (print_pad_templates_info):
7077         * tools/gst-xmlinspect.c: (print_element_info):
7078           Use libxml2 for registry parsing, use staticpadtemplates in
7079           elementfactories. Makes gst_init() +/- 10x faster.
7080
7081 2005-04-12  Wim Taymans  <wim@fluendo.com>
7082
7083         * gst/base/Makefile.am:
7084         * gst/base/gstbasesink.c: (gst_basesink_base_init),
7085         (gst_basesink_pad_getcaps), (gst_basesink_init),
7086         (gst_basesink_event), (gst_basesink_change_state):
7087         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
7088         (gst_basesrc_init), (gst_basesrc_query),
7089         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
7090         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
7091         (gst_basesrc_check_get_range), (gst_basesrc_loop),
7092         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
7093         (gst_basesrc_stop), (gst_basesrc_activate),
7094         (gst_basesrc_change_state):
7095         * gst/base/gsttypefindhelper.c: (helper_find_peek),
7096         (helper_find_suggest), (gst_type_find_helper):
7097         * gst/base/gsttypefindhelper.h:
7098         * gst/elements/Makefile.am:
7099         * gst/elements/gstelements.c:
7100         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
7101         (gst_fakesink_get_times), (gst_fakesink_event),
7102         (gst_fakesink_preroll), (gst_fakesink_render):
7103         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
7104         (gst_fakesrc_init), (gst_fakesrc_event_handler),
7105         (gst_fakesrc_get_property), (gst_fakesrc_create),
7106         (gst_fakesrc_start), (gst_fakesrc_stop):
7107         * gst/elements/gstfakesrc.h:
7108         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init),
7109         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
7110         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
7111         (gst_filesrc_create_read), (gst_filesrc_create),
7112         (gst_filesrc_is_seekable), (gst_filesrc_get_size),
7113         (gst_filesrc_start):
7114         * gst/elements/gsttypefindelement.c:
7115         (gst_type_find_element_have_type), (gst_type_find_element_init),
7116         (start_typefinding), (stop_typefinding), (push_buffer_store),
7117         (gst_type_find_element_handle_event),
7118         (gst_type_find_element_chain),
7119         (gst_type_find_element_checkgetrange),
7120         (gst_type_find_element_getrange), (do_typefind),
7121         (gst_type_find_element_activate),
7122         (gst_type_find_element_change_state):
7123         * gst/elements/gsttypefindelement.h:
7124         * gst/gstpipeline.c: (pipeline_bus_handler):
7125         Added typefind helper.
7126         Small preroll fix in the base sink.
7127         Disable typefind code in basesrc.
7128         Crude port of typefindelement.
7129         Fakesrc cleanups.
7130
7131
7132 2005-04-11  Wim Taymans  <wim@fluendo.com>
7133
7134         * check/gst/gstbus.c: (gstbus_suite):
7135         * check/gst/gstdata.c: (thread_ref), (gst_data_suite):
7136         * check/gstcheck.h:
7137           Fix up the timeout so that the test does not fail.
7138
7139 2005-04-06  Wim Taymans  <wim@fluendo.com>
7140
7141         * gst/base/README:
7142         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
7143         (gst_basesrc_init), (gst_basesrc_get_formats), (gst_basesrc_query),
7144         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
7145         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
7146         (gst_basesrc_check_get_range), (gst_basesrc_loop),
7147         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
7148         (gst_basesrc_stop), (gst_basesrc_activate),
7149         (gst_basesrc_change_state), (basesrc_find_peek),
7150         (basesrc_find_suggest), (gst_basesrc_type_find):
7151         * gst/base/gstbasesrc.h:
7152         * gst/elements/gstfilesrc.c: (gst_filesrc_base_init),
7153         (gst_filesrc_class_init), (gst_filesrc_init),
7154         (gst_filesrc_finalize), (gst_filesrc_set_location),
7155         (gst_filesrc_set_property), (gst_filesrc_get_property),
7156         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
7157         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
7158         (gst_filesrc_create_read), (gst_filesrc_create),
7159         (gst_filesrc_get_size), (gst_filesrc_start), (gst_filesrc_stop):
7160         * gst/elements/gstfilesrc.h:
7161         * gst/gstelement.c: (gst_element_get_state_func),
7162         (gst_element_lost_state), (gst_element_pads_activate):
7163         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
7164         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
7165         (gst_pad_pull_range):
7166         * gst/gstpad.h:
7167         More work on the generic source base class, implement seeking,
7168         query.
7169         Make filesrc extend the base source class.
7170         Added gst_pad_set_checkgetrange_function to GstPad.
7171
7172 2005-04-06  Andy Wingo  <wingo@pobox.com>
7173
7174         * pkgconfig/gstreamer-base.pc.in:
7175         * pkgconfig/gstreamer-base-uninstalled.pc.in: New files.
7176
7177         * pkgconfig/Makefile.am:
7178         * configure.ac (AC_OUTPUT): Add gstreamer-base pkgconfig files.
7179
7180 2005-04-04  Wim Taymans  <wim@fluendo.com>
7181
7182         * gst/base/Makefile.am:
7183         * gst/base/README:
7184         * gst/base/gstbasesink.c: (gst_basesink_base_init),
7185         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
7186         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
7187         (gst_basesink_do_sync), (gst_basesink_chain_unlocked):
7188         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
7189         (gst_basesrc_base_init), (gst_basesrc_class_init),
7190         (gst_basesrc_init), (gst_basesrc_get_formats),
7191         (gst_basesrc_get_query_types), (gst_basesrc_query),
7192         (gst_basesrc_get_event_mask), (gst_basesrc_event_handler),
7193         (gst_basesrc_set_property), (gst_basesrc_get_property),
7194         (gst_basesrc_get_range_unlocked), (gst_basesrc_get_range),
7195         (gst_basesrc_loop), (gst_basesrc_activate),
7196         (gst_basesrc_change_state):
7197         * gst/base/gstbasesrc.h:
7198         * gst/elements/gstfakesrc.c: (gst_fakesrc_base_init),
7199         (gst_fakesrc_class_init), (gst_fakesrc_init),
7200         (gst_fakesrc_event_handler), (gst_fakesrc_set_property),
7201         (gst_fakesrc_get_property), (gst_fakesrc_create):
7202         * gst/elements/gstfakesrc.h:
7203         * gst/elements/gstfilesrc.c: (gst_filesrc_getrange),
7204         (gst_filesrc_open_file), (gst_filesrc_loop),
7205         (gst_filesrc_activate), (filesrc_find_peek),
7206         (gst_filesrc_type_find):
7207         Made base source class, make fakesrc extend it.
7208         Add comments to basesink class.
7209         Some filesrc cleanup.
7210
7211 2005-03-31  David Schleef  <ds@schleef.org>
7212
7213         * gst/gstplugin.c: (gst_plugin_check_file), (gst_plugin_load_file):
7214         Switch to using G_MODULE_BIND_LOCAL, which means plugins are now
7215         expected to link against libgstreamer.
7216         * gst/base/Makefile.am: link against libgstreamer
7217         * gst/elements/Makefile.am: same
7218
7219 2005-03-31  Andy Wingo  <wingo@pobox.com>
7220
7221         * tests/instantiate/Makefile.am:
7222         * tests/instantiate/caps.c: Add test to test speed of caps copy
7223         and free.
7224
7225         * tests/memchunk/gmemchunktest.c (main): Use alloc only on the
7226         GMemChunk to be fair.
7227
7228         * gst/gsttrashstack.h: Remove warning about using the fallback
7229         trash stack implementation, it's still faster than malloc.
7230
7231 2005-03-30  Andy Wingo  <wingo@pobox.com>
7232
7233         * tests/complexity.c: Add a copyright.
7234
7235 2005-03-31  Wim Taymans  <wim@fluendo.com>
7236
7237         * gst/base/gstbasetransform.c: (gst_base_transform_base_init),
7238         (gst_base_transform_class_init), (gst_base_transform_init),
7239         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
7240         (gst_base_transform_get_property),
7241         (gst_base_transform_sink_activate),
7242         (gst_base_transform_src_activate),
7243         (gst_base_transform_change_state):
7244         * gst/base/gstbasetransform.h:
7245         * gst/elements/gstidentity.c: (gst_identity_class_init),
7246         (gst_identity_event), (gst_identity_check_perfect),
7247         (gst_identity_transform), (gst_identity_start),
7248         (gst_identity_stop):
7249         Added start/stop methods to transform base class so subclasses 
7250         don't need to deal with state changes even.
7251
7252 2005-03-31  Wim Taymans  <wim@fluendo.com>
7253
7254         * gst/gstevent.c: (gst_event_new_discontinuous_valist),
7255         (gst_event_new_discontinuous), (gst_event_discont_get_value):
7256         * gst/gstevent.h:
7257         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
7258         (gst_pad_pull_range):
7259         Added rate to the discont event to prepare for variable speed
7260         and reverse playback.
7261
7262 2005-03-29  David Schleef  <ds@schleef.org>
7263
7264         * configure.ac:
7265         * testsuite/trigger/Makefile.am:
7266         * testsuite/trigger/trigger.c: A little example program to show
7267         how trigger-based elements can work.
7268
7269 2005-03-29  Wim Taymans  <wim@fluendo.com>
7270
7271         * gst/base/Makefile.am:
7272         * gst/base/README:
7273         * gst/base/gstbasesink.c: (gst_basesink_get_type),
7274         (gst_basesink_base_init), (gst_basesink_class_init),
7275         (gst_basesink_pad_getcaps), (gst_basesink_init),
7276         (gst_basesink_activate), (gst_basesink_change_state):
7277         * gst/base/gstbasesink.h:
7278         * gst/base/gstbasetransform.c: (gst_base_transform_get_type),
7279         (gst_base_transform_base_init), (gst_base_transform_finalize),
7280         (gst_base_transform_class_init), (gst_base_transform_init),
7281         (gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
7282         (gst_base_transform_event), (gst_base_transform_getrange),
7283         (gst_base_transform_chain), (gst_base_transform_handle_buffer),
7284         (gst_base_transform_set_property),
7285         (gst_base_transform_get_property),
7286         (gst_base_transform_sink_activate),
7287         (gst_base_transform_src_activate),
7288         (gst_base_transform_change_state):
7289         * gst/base/gstbasetransform.h:
7290         * gst/elements/gstidentity.c: (gst_identity_finalize),
7291         (gst_identity_class_init), (gst_identity_init),
7292         (gst_identity_event), (gst_identity_check_perfect),
7293         (gst_identity_transform), (gst_identity_set_property),
7294         (gst_identity_get_property), (gst_identity_change_state):
7295         * gst/elements/gstidentity.h:
7296         * gst/gstelement.c: (gst_element_get_state_func),
7297         (gst_element_lost_state), (gst_element_pads_activate):
7298         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
7299         (gst_pad_check_pull_range), (gst_pad_pull_range):
7300         * gst/gstpad.h:
7301         Simplify pad activation.
7302         Added function to check if pull_range can be performed.
7303         Error out when pulling inactive or flushing pads.
7304         Removed const from refcounted types as it does not make sense.
7305         Simplify pad templates in basesink
7306         Added base class for simple 1-to-1 transforms.
7307         Make identity subclass the base transform.
7308
7309 2005-03-29  Andy Wingo  <wingo@pobox.com>
7310
7311         * docs/libs/gstreamer-libs-overrides.txt: 
7312         * docs/gst/gstreamer-overrides.txt: Add these files to CVS. Now I
7313         really don't understand what's going on, but like whatever. I want
7314         green buildbot!
7315
7316         * docs/gst/Makefile.am:
7317         * docs/libs/Makefile.am: Dist the overrides files.
7318
7319         * check/Makefile.am (clean-local): Remove .libs directories.
7320
7321         * gst/elements/Makefile.am (EXTRA_DIST): Add all the attic
7322         elements to EXTRA_DIST, so po/ files are happy.
7323
7324         * po/POTFILES.in: Er, remove it here.
7325
7326         * po/POTFILES: Remove gstspider.c.
7327
7328         * configure.ac (AC_OUTPUT): Add missing testsuite makefiles.
7329
7330         * docs/libs/gstreamer-libs-docs.sgml: 
7331         * docs/libs/gstreamer-libs-sections.txt: Remove the section on
7332         bytestream.
7333
7334         * tests/complexity.c (main): Set the length of the preroll queue
7335         on the sinks to prevent a lockup.
7336
7337         * libs/gst/dataprotocol/Makefile.am: 
7338         * libs/gst/dataprotocol/dataprotocol-test.c: Remove test, it's
7339         the same as the one in check/gst-libs/gdp.c.
7340
7341         * po/, docs/gst/: Commit automatic changes to docs and po files.
7342
7343         * gst/elements/Makefile.am (libgstelements_la_LDFLAGS): Link to
7344         the versioned libgstbase.
7345
7346         * check/Makefile.am: Depend on an unversioned gst-register, seems
7347         to make autoconf happier.
7348
7349         * gst/base/Makefile.am: Make libgstbase a versioned lib.
7350
7351 2005-03-28  Wim Taymans  <wim@fluendo.com>
7352
7353         * configure.ac:
7354         * docs/design/part-gstelement.txt:
7355         * docs/design/part-negotiation.txt:
7356         * docs/design/part-preroll.txt:
7357         * docs/design/part-scheduling.txt:
7358         * docs/design/part-states.txt:
7359         * gst/Makefile.am:
7360         * gst/base/Makefile.am:
7361         * gst/base/README:
7362         * gst/base/gstbasesink.c: (gst_basesink_get_template),
7363         (gst_basesink_base_init), (gst_basesink_class_init),
7364         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
7365         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
7366         (gst_basesink_set_pad_functions),
7367         (gst_basesink_set_all_pad_functions), (gst_basesink_set_clock),
7368         (gst_basesink_set_property), (gst_basesink_get_property),
7369         (gst_base_sink_get_template), (gst_base_sink_get_caps),
7370         (gst_base_sink_set_caps), (gst_base_sink_buffer_alloc),
7371         (gst_basesink_preroll_queue_push),
7372         (gst_basesink_preroll_queue_empty),
7373         (gst_basesink_preroll_queue_flush), (gst_basesink_finish_preroll),
7374         (gst_basesink_event), (gst_basesink_get_times),
7375         (gst_basesink_do_sync), (gst_basesink_handle_buffer),
7376         (gst_basesink_chain_unlocked), (gst_basesink_chain),
7377         (gst_basesink_loop), (gst_basesink_activate),
7378         (gst_basesink_change_state):
7379         * gst/base/gstbasesink.h:
7380         * gst/elements/Makefile.am:
7381         * gst/elements/gstfakesink.c: (gst_fakesink_base_init),
7382         (gst_fakesink_class_init), (gst_fakesink_init),
7383         (gst_fakesink_set_property), (gst_fakesink_get_property),
7384         (gst_fakesink_get_times), (gst_fakesink_event),
7385         (gst_fakesink_preroll), (gst_fakesink_render),
7386         (gst_fakesink_change_state):
7387         * gst/elements/gstfakesink.h:
7388         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
7389         (gst_bin_get_state), (gst_bin_change_state), (gst_bin_send_event):
7390         * gst/gstelement.c: (gst_element_add_pad),
7391         (gst_element_get_state_func), (gst_element_abort_state),
7392         (gst_element_commit_state), (gst_element_lost_state),
7393         (gst_element_set_state), (gst_element_pads_activate):
7394         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_event_default):
7395         * gst/gstpipeline.c: (gst_pipeline_send_event),
7396         (gst_pipeline_change_state):
7397         Added state change code.
7398         Added/updated docs.
7399         Added sink base class, make fakesink extend the base class.
7400         Small cleanups in GstPipeline.
7401
7402 2005-03-26  David Schleef  <ds@schleef.org>
7403
7404         * gst/Makefile.am: remove gstcpu.[ch].  The gst_cpu functionality
7405         is broken and should be implemented in a different library.
7406         * gst/gst.c: (init_post): don't call _gst_cpu_initialize()
7407         * gst/gst.h: remove gstcpu.h
7408         * gst/gstcpu.c: remove
7409         * gst/gstcpu.h: remove
7410         * gst/Makefile.am.future: Remove this file.  It's ancient.
7411
7412 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7413
7414         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
7415         (gst_bin_send_event):
7416           Add default event/set_manager handlers. The set_manager handler
7417           takes care that the manager is distributed over kids that were
7418           already in the bin before the manager was set. The event handler
7419           is a utility virtual function that sends the event over all sinks,
7420           so that gst_element_send_event (bin, event); has the expected
7421           behaviour.
7422         * gst/gstpad.c: (gst_pad_event_default):
7423           Re-install default event handling for discontinuities, so that
7424           seeking works without requiring hacks in applications or extra
7425           code in sinks.
7426         * gst/gstpipeline.c: (gst_pipeline_class_init),
7427         (gst_pipeline_send_event):
7428           Half hack, half utility: set a pipeline to PAUSED for seek events,
7429           since that is the only way we can guarantee a/v sync. Means that
7430           you can do gst_element_seek (pipeline, method, pos); on a pipeline
7431           and it "just works".
7432
7433 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7434
7435         * gst/gstpipeline.c: (gst_pipeline_use_clock):
7436           Lock/unlock mismatch.
7437
7438 2005-03-25  Thomas Vander Stichele  <thomas at apestaart dot org>
7439
7440         * docs/faq/gst-uninstalled:
7441           add gst-plugins-base
7442         * docs/gst/Makefile.am:
7443           don't error out until docs are fixed
7444         * docs/gst/gstreamer.types:
7445           remove thread
7446
7447 2005-03-22  Wim Taymans  <wim@fluendo.com>
7448
7449         * check/Makefile.am:
7450         * check/gst/gstmessage.c: (START_TEST), (gst_data_suite), (main):
7451         * gst/gststructure.c: (gst_structure_set_valist),
7452         (gst_structure_copy_conditional):
7453         Activated more tests.
7454         Added message test.
7455         Added G_TYPE_POINTER to GstStructure.
7456         
7457
7458 2005-03-22  Wim Taymans  <wim@fluendo.com>
7459
7460         * docs/design/part-TODO.txt:
7461         * docs/design/part-events.txt:
7462         * docs/design/part-gstbin.txt:
7463         * docs/design/part-gstbus.txt:
7464         * docs/design/part-gstpipeline.txt:
7465         * docs/design/part-messages.txt:
7466         * gst/gstbus.c:
7467         * gst/gstmessage.c:
7468         Docs updates
7469
7470 2005-03-21  Wim Taymans  <wim@fluendo.com>
7471
7472         * gst/gstbus.c: (gst_bus_post):
7473         Fix copy-and-paste error.
7474
7475 2005-03-21  Wim Taymans  <wim@fluendo.com>
7476
7477         * check/Makefile.am:
7478         * gst/Makefile.am:
7479         * gst/elements/Makefile.am:
7480         * gst/elements/gstelements.c:
7481         * gst/elements/gstfakesink.c: (gst_fakesink_init),
7482         (gst_fakesink_event), (gst_fakesink_chain):
7483         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
7484         (gst_fakesrc_init), (gst_fakesrc_get_event_mask),
7485         (gst_fakesrc_event_handler), (gst_fakesrc_set_pad_functions),
7486         (gst_fakesrc_set_all_pad_functions), (gst_fakesrc_request_new_pad),
7487         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
7488         (gst_fakesrc_get_range_unlocked), (gst_fakesrc_get_range),
7489         (gst_fakesrc_loop), (gst_fakesrc_activate),
7490         (gst_fakesrc_change_state):
7491         * gst/elements/gstfakesrc.h:
7492         * gst/elements/gstfilesrc.c: (gst_filesrc_init),
7493         (gst_filesrc_get_read), (gst_filesrc_getrange), (gst_filesrc_get),
7494         (gst_filesrc_open_file), (gst_filesrc_loop),
7495         (gst_filesrc_activate), (gst_filesrc_change_state),
7496         (filesrc_find_peek), (filesrc_find_suggest),
7497         (gst_filesrc_type_find):
7498         * gst/elements/gstidentity.c: (gst_identity_finalize),
7499         (gst_identity_class_init), (gst_identity_init),
7500         (gst_identity_proxy_getcaps), (identity_queue_push),
7501         (identity_queue_pop), (identity_queue_flush), (gst_identity_event),
7502         (gst_identity_getrange), (gst_identity_chain),
7503         (gst_identity_sink_loop), (gst_identity_src_loop),
7504         (gst_identity_handle_buffer), (gst_identity_set_dataflow_funcs),
7505         (gst_identity_set_property), (gst_identity_get_property),
7506         (gst_identity_change_state):
7507         * gst/elements/gstidentity.h:
7508         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_init),
7509         (gst_tee_update_pad_functions), (gst_tee_request_new_pad),
7510         (gst_tee_set_property), (gst_tee_get_property), (gst_tee_do_push),
7511         (gst_tee_handle_buffer), (gst_tee_chain), (gst_tee_loop),
7512         (gst_tee_sink_activate):
7513         * gst/elements/gsttee.h:
7514         * gst/gst.c: (gst_register_core_elements), (init_post):
7515         * gst/gst.h:
7516         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_bus),
7517         (gst_bin_set_scheduler), (gst_bin_add_func), (gst_bin_add),
7518         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_get_state),
7519         (gst_bin_change_state):
7520         * gst/gstbin.h:
7521         * gst/gstbus.c: (gst_bus_get_type), (gst_bus_class_init),
7522         (gst_bus_init), (gst_bus_dispose), (gst_bus_set_property),
7523         (gst_bus_get_property), (gst_bus_new), (gst_bus_post),
7524         (gst_bus_have_pending), (gst_bus_pop), (gst_bus_peek),
7525         (gst_bus_set_sync_handler), (gst_bus_create_watch),
7526         (bus_watch_callback), (bus_watch_destroy),
7527         (gst_bus_add_watch_full), (gst_bus_add_watch), (poll_handler),
7528         (poll_timeout), (gst_bus_poll):
7529         * gst/gstbus.h:
7530         * gst/gstcaps.h:
7531         * gst/gstdata.h:
7532         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
7533         (gst_element_post_message), (gst_element_message_full),
7534         (gst_element_get_state_func), (gst_element_get_state),
7535         (gst_element_abort_state), (gst_element_commit_state),
7536         (gst_element_lost_state), (gst_element_set_state),
7537         (gst_element_pads_activate), (gst_element_change_state),
7538         (gst_element_dispose), (gst_element_set_manager_func),
7539         (gst_element_set_bus_func), (gst_element_set_scheduler_func),
7540         (gst_element_set_manager), (gst_element_get_manager),
7541         (gst_element_set_bus), (gst_element_get_bus),
7542         (gst_element_set_scheduler), (gst_element_get_scheduler):
7543         * gst/gstelement.h:
7544         * gst/gstevent.c: (gst_event_new_segment_seek),
7545         (gst_event_new_flush):
7546         * gst/gstevent.h:
7547         * gst/gstmessage.c: (_gst_message_initialize), (_gst_message_copy),
7548         (_gst_message_free), (gst_message_get_type), (gst_message_new),
7549         (gst_message_new_eos), (gst_message_new_error),
7550         (gst_message_new_warning), (gst_message_new_tag),
7551         (gst_message_new_state_changed), (gst_message_new_application),
7552         (gst_message_get_structure), (gst_message_parse_tag),
7553         (gst_message_parse_state_changed), (gst_message_parse_error),
7554         (gst_message_parse_warning):
7555         * gst/gstmessage.h:
7556         * gst/gstpad.c: (gst_real_pad_class_init), (gst_real_pad_init),
7557         (gst_real_pad_set_property), (gst_pad_set_active),
7558         (gst_pad_is_active), (gst_pad_set_blocked_async),
7559         (gst_pad_set_blocked), (gst_pad_is_blocked),
7560         (gst_pad_set_activate_function), (gst_pad_set_loop_function),
7561         (gst_pad_set_getrange_function), (gst_pad_set_acceptcaps_function),
7562         (gst_pad_set_fixatecaps_function), (gst_pad_set_setcaps_function),
7563         (gst_pad_unlink), (gst_pad_link_prepare_filtered),
7564         (gst_pad_link_filtered), (gst_pad_relink_filtered),
7565         (gst_real_pad_get_caps_unlocked), (gst_pad_get_caps),
7566         (gst_pad_peer_get_caps), (gst_pad_fixate_caps),
7567         (gst_pad_accept_caps), (gst_pad_peer_accept_caps),
7568         (gst_pad_set_caps), (gst_pad_configure_sink),
7569         (gst_pad_configure_src), (gst_pad_get_negotiated_caps),
7570         (gst_pad_get_filter_caps), (gst_pad_alloc_buffer),
7571         (gst_real_pad_dispose), (gst_real_pad_finalize),
7572         (handle_pad_block), (gst_pad_push), (gst_pad_pull_range),
7573         (gst_pad_event_default_dispatch), (gst_pad_event_default),
7574         (gst_pad_push_event), (gst_pad_send_event), (gst_pad_get_formats):
7575         * gst/gstpad.h:
7576         * gst/gstpipeline.c: (gst_pipeline_init), (is_eos),
7577         (pipeline_bus_handler), (gst_pipeline_change_state),
7578         (gst_pipeline_get_scheduler), (gst_pipeline_get_bus):
7579         * gst/gstpipeline.h:
7580         * gst/gstprobe.h:
7581         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_init),
7582         (gst_queue_finalize), (gst_queue_getcaps), (gst_queue_link_sink),
7583         (gst_queue_link_src), (gst_queue_bufferalloc),
7584         (gst_queue_locked_flush), (gst_queue_handle_sink_event),
7585         (gst_queue_is_empty), (gst_queue_is_filled), (gst_queue_chain),
7586         (gst_queue_loop), (gst_queue_handle_src_event),
7587         (gst_queue_handle_src_query), (gst_queue_src_activate),
7588         (gst_queue_change_state):
7589         * gst/gstqueue.h:
7590         * gst/gstscheduler.c: (gst_scheduler_init),
7591         (gst_scheduler_dispose), (gst_scheduler_create_task),
7592         (gst_scheduler_factory_create):
7593         * gst/gstscheduler.h:
7594         * gst/gststructure.c: (gst_structure_get_type),
7595         (gst_structure_copy_conditional):
7596         * gst/gststructure.h:
7597         * gst/gsttaginterface.h:
7598         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
7599         (gst_task_init), (gst_task_dispose), (gst_task_create),
7600         (gst_task_get_state), (gst_task_start), (gst_task_stop),
7601         (gst_task_pause):
7602         * gst/gsttask.h:
7603         * gst/gstthread.c:
7604         * gst/gstthread.h:
7605         * gst/gsttypes.h:
7606         * gst/schedulers/Makefile.am:
7607         * gst/schedulers/cothreads_compat.h:
7608         * gst/schedulers/entryscheduler.c:
7609         * gst/schedulers/faircothreads.c:
7610         * gst/schedulers/faircothreads.h:
7611         * gst/schedulers/fairscheduler.c:
7612         * gst/schedulers/gstbasicscheduler.c:
7613         * gst/schedulers/gstoptimalscheduler.c:
7614         * gst/schedulers/gthread-cothreads.h:
7615         * gst/schedulers/threadscheduler.c:
7616         (gst_thread_scheduler_task_get_type),
7617         (gst_thread_scheduler_task_class_init),
7618         (gst_thread_scheduler_task_init),
7619         (gst_thread_scheduler_task_start),
7620         (gst_thread_scheduler_task_stop),
7621         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_get_type),
7622         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
7623         (gst_thread_scheduler_init), (gst_thread_scheduler_create_task),
7624         (gst_thread_scheduler_setup), (gst_thread_scheduler_reset),
7625         (plugin_init):
7626         * libs/gst/Makefile.am:
7627         * libs/gst/bytestream/bytestream.c: (gst_bytestream_get_next_buf):
7628         * libs/gst/bytestream/filepad.c: (gst_file_pad_init),
7629         (gst_file_pad_parent_set):
7630         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
7631         (gst_dp_event_from_packet):
7632         * tests/complexity.c: (main):
7633         * tests/mass_elements.c: (main):
7634         * testsuite/states/locked.c: (message_received), (main):
7635         * testsuite/states/parent.c: (main):
7636         * tools/gst-inspect.c: (print_element_flag_info),
7637         (print_implementation_info), (print_pad_info):
7638         * tools/gst-launch.c: (check_intr), (play_handler), (event_loop),
7639         (main):
7640         * tools/gst-md5sum.c: (event_loop), (main):
7641         * tools/gst-typefind.c: (main):
7642         * tools/gst-xmlinspect.c: (print_element_info):
7643         Next big merge.
7644         Added GstBus for mainloop integration.
7645         Added GstMessage for sending notifications on the bus.
7646         Added GstTask as an abstraction for pipeline entry points.
7647         Removed GstThread.
7648         Removed Schedulers.
7649         Simplified GstQueue for multithreaded core.
7650         Made _link threadsafe, removed old capsnego.
7651         Added STREAM_LOCK and PREROLL_LOCK in GstPad.
7652         Added pad blocking functions.
7653         Reworked scheduling functions in GstPad to prepare for
7654         scheduling updates soon.
7655         Moved events out of data stream.
7656         Simplified GstEvent types.
7657         Added return values to push/pull.
7658         Removed clocking from GstElement.
7659         Added prototypes for state change function for next merge.
7660         Removed iterate from bins and state change management.
7661         Fixed some elements, disabled others for now.
7662         Fixed -inspect and -launch.
7663         Added check for GstBus.
7664
7665 2005-03-10  Wim Taymans  <wim@fluendo.com>
7666
7667         * docs/design/part-MT-refcounting.txt:
7668         * docs/design/part-clocks.txt:
7669         * docs/design/part-gstelement.txt:
7670         * docs/design/part-gstobject.txt:
7671         * docs/design/part-standards.txt:
7672         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
7673         (gst_bin_remove_func), (gst_bin_remove):
7674         * gst/gstbin.h:
7675         * gst/gstbuffer.c:
7676         * gst/gstcaps.h:
7677         * testsuite/clock/clock1.c: (main):
7678         * testsuite/clock/clock2.c: (gst_clock_debug), (element_wait),
7679         (main):
7680         * testsuite/dlopen/loadgst.c: (do_test):
7681         * testsuite/refcounting/bin.c: (add_remove_test1),
7682         (add_remove_test2), (main):
7683         * testsuite/refcounting/element.c: (main):
7684         * testsuite/refcounting/element_pad.c: (main):
7685         * testsuite/refcounting/pad.c: (main):
7686         * tools/gst-launch.c: (sigint_handler_sighandler):
7687         * tools/gst-typefind.c: (main):
7688         Doc updates.
7689         Added doc about clock.
7690         removed gst_bin_iterate_recurse_up(), marked methods
7691         for removal.
7692         Fix more testsuites.
7693
7694 2005-03-09  Wim Taymans  <wim@fluendo.com>
7695
7696         * gst/gstpad.c: (gst_pad_get_direction),
7697         (_gst_pad_default_fixate_foreach), (gst_pad_collectv),
7698         (gst_pad_collect_valist):
7699         * testsuite/bins/interface.c: (main):
7700         * testsuite/caps/audioscale.c: (test_caps):
7701         * testsuite/caps/caps.c: (test1), (test2), (test3):
7702         * testsuite/caps/deserialize.c: (main):
7703         * testsuite/caps/enumcaps.c: (main):
7704         * testsuite/caps/filtercaps.c: (main):
7705         * testsuite/caps/intersect2.c: (main):
7706         * testsuite/caps/random.c: (main):
7707         * testsuite/caps/renegotiate.c: (my_fixate), (main):
7708         * testsuite/caps/sets.c: (check_caps):
7709         * testsuite/caps/simplify.c: (check_caps), (main):
7710         * testsuite/caps/subtract.c: (check_caps):
7711         Fix _pad_get_direction wrt ghostpads.
7712         Fix caps testsuite.
7713
7714 2005-03-09  Wim Taymans  <wim@fluendo.com>
7715
7716         * check/Makefile.am:
7717         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite), (main):
7718         * check/gst/gstsystemclock.c: (START_TEST), (gst_clock_debug),
7719         (ok_callback), (error_callback), (gst_systemclock_suite), (main):
7720         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_index_func),
7721         (gst_bin_set_clock_func), (gst_bin_get_clock_func),
7722         (gst_bin_add_func), (gst_bin_add), (gst_bin_remove_func),
7723         (gst_bin_remove), (gst_bin_iterate_recurse_up),
7724         (bin_element_is_sink), (gst_bin_iterate_sinks),
7725         (gst_bin_iterate_all_by_interface):
7726         * gst/gstbin.h:
7727         * gst/gstelement.c: (gst_element_init), (gst_element_error_full),
7728         (gst_element_change_state), (gst_element_dispose),
7729         (gst_element_finalize), (gst_element_set_loop_function):
7730         * gst/gstelement.h:
7731         * gst/gstiterator.c: (find_custom_fold_func):
7732         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
7733         (gst_pad_collectv), (gst_pad_collect_valist),
7734         (gst_pad_template_new):
7735         * gst/gstpipeline.c: (gst_pipeline_class_init),
7736         (gst_pipeline_dispose), (gst_pipeline_set_property),
7737         (gst_pipeline_get_property), (gst_pipeline_get_clock_func),
7738         (gst_pipeline_get_clock), (gst_pipeline_use_clock),
7739         (gst_pipeline_set_clock), (gst_pipeline_auto_clock):
7740         * gst/gstutils.h:
7741         * gst/schedulers/entryscheduler.c:
7742         * gst/schedulers/gstbasicscheduler.c:
7743         (gst_basic_scheduler_cothreaded_chain),
7744         (gst_basic_scheduler_chain_add_element):
7745         * testsuite/bins/interface.c: (main):
7746         Added GstBin test.
7747         Added GstSystemClock test.
7748         Implemented clock distribution code in GstBin.
7749         Implemented iterate sinks method for future use.
7750         Rearranged gstelement.h
7751         Fix GstIterator comparison bug.
7752         Moved some code to GstPipeline, mostly clocking related.
7753
7754 2005-03-09  Wim Taymans  <wim@fluendo.com>
7755
7756         * configure.ac:
7757         * gst/gst_private.h:
7758         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
7759         (gst_bin_remove_func), (gst_bin_remove),
7760         (gst_bin_get_by_name_recurse_up):
7761         * gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
7762         (gst_clock_id_compare_func), (gst_clock_id_wait),
7763         (gst_clock_id_wait_async), (gst_clock_init),
7764         (gst_clock_adjust_unlocked), (gst_clock_get_time):
7765         * gst/gstelement.h:
7766         * gst/gstinfo.c: (_gst_debug_init):
7767         * gst/gstobject.h:
7768         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
7769         (gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
7770         * gst/gstpad.h:
7771         Bump version number, we're now 0.9.0
7772         Add future debugging category.
7773         Fix NULL _unref() in _get_by_name_recurse_up
7774         Rearrange gstpad.h.
7775         Update some docs.
7776
7777 2005-03-08  Wim Taymans  <wim@fluendo.com>
7778
7779         * gst/elements/gstaggregator.c: (gst_aggregator_class_init):
7780         * gst/elements/gstfakesink.c: (gst_fakesink_class_init):
7781         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
7782         * gst/elements/gstfdsink.c: (gst_fdsink_class_init):
7783         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init):
7784         * gst/elements/gstfilesink.c: (gst_filesink_class_init):
7785         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init):
7786         * gst/elements/gstidentity.c: (gst_identity_class_init):
7787         * gst/elements/gstmd5sink.c: (gst_md5sink_class_init):
7788         * gst/elements/gstmultifilesrc.c: (gst_multifilesrc_class_init):
7789         * gst/elements/gstshaper.c: (gst_shaper_class_init):
7790         * gst/elements/gststatistics.c: (gst_statistics_class_init):
7791         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_getcaps),
7792         (gst_tee_link):
7793         * gst/gstelement.c: (gst_element_class_init),
7794         (gst_element_base_class_init), (gst_element_init),
7795         (gst_element_get_random_pad), (gst_element_wait_state_change),
7796         (gst_element_change_state), (gst_element_dispose),
7797         (gst_element_finalize), (gst_element_set_loop_function):
7798         * gst/gstelement.h:
7799         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_link_src):
7800         * gst/gstthread.c: (gst_thread_class_init),
7801         (gst_thread_release_children_locks), (gst_thread_change_state):
7802         * gst/schedulers/gstbasicscheduler.c:
7803         (gst_basic_scheduler_loopfunc_wrapper),
7804         (gst_basic_scheduler_chain_wrapper),
7805         (gst_basic_scheduler_src_wrapper),
7806         (gst_basic_scheduler_remove_element):
7807         * gst/schedulers/gstoptimalscheduler.c: (schedule_group):
7808         Remove threadsafe properties. Fix elements because GObject
7809         complains when installing a property before declaring a
7810         set/get_property handler.
7811         Rearrange gstelement.h file, use STATE macros for state locks.
7812         Free mutexes in the finalize method instead of dispose.
7813
7814 2005-03-08  Wim Taymans  <wim@fluendo.com>
7815
7816         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
7817         * gst/gstthread.c: (gst_thread_release_children_locks):
7818         Added parentage check.
7819         Fix build og GstThread again.
7820
7821 2005-03-08  Wim Taymans  <wim@fluendo.com>
7822
7823         * docs/design/part-MT-refcounting.txt:
7824         * docs/design/part-conventions.txt:
7825         * docs/design/part-gstobject.txt:
7826         * docs/design/part-relations.txt:
7827         * docs/design/part-standards.txt:
7828         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
7829         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_iterate_recurse),
7830         (gst_bin_get_by_name), (gst_bin_get_by_interface),
7831         (gst_bin_iterate_all_by_interface):
7832         * gst/gstbuffer.h:
7833         * gst/gstclock.h:
7834         * gst/gstelement.c: (gst_element_class_init),
7835         (gst_element_change_state), (gst_element_set_loop_function):
7836         * gst/gstelement.h:
7837         * gst/gstiterator.c:
7838         * gst/gstobject.c: (gst_object_class_init), (gst_object_ref),
7839         (gst_object_unref), (gst_object_sink), (gst_object_dispose),
7840         (gst_object_dispatch_properties_changed), (gst_object_set_name),
7841         (gst_object_set_parent), (gst_object_unparent),
7842         (gst_object_check_uniqueness):
7843         * gst/gstobject.h:
7844         Docs updates, clean up some headers.
7845
7846 2005-03-07  Wim Taymans  <wim@fluendo.com>
7847
7848         * check/.cvsignore:
7849         * check/Makefile.am:
7850         * check/gst-libs/.cvsignore:
7851         * check/gst-libs/gdp.c: (START_TEST), (gst_object_suite), (main):
7852         * check/gst/.cvsignore:
7853         * check/gst/gstbus.c: (pound_bus_with_messages), (pull_messages),
7854         (START_TEST), (gstbus_suite), (main):
7855         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite), (main):
7856         * check/gst/gstdata.c: (START_TEST), (thread_ref), (thread_unref),
7857         (gst_data_suite), (main):
7858         * check/gst/gstiterator.c: (make_list_of_ints), (START_TEST),
7859         (add_fold_func), (gstiterator_suite), (main):
7860         * check/gst/gstobject.c: (gst_fake_object_get_type), (START_TEST),
7861         (thread_name_object), (thread_name_object_default),
7862         (gst_object_name_compare), (gst_object_suite), (main):
7863         * check/gst/gstpad.c: (START_TEST), (thread_link_unlink),
7864         (gst_pad_suite), (main):
7865         * check/gstcheck.c: (gst_check_log_message_func),
7866         (gst_check_log_critical_func), (gst_check_init):
7867         * check/gstcheck.h:
7868         * check/pipelines/simple_launch_lines.c: (setup_pipeline),
7869         (run_pipeline), (START_TEST), (simple_launch_lines_suite), (main):
7870         Added checks.
7871
7872 2005-03-07  Wim Taymans  <wim@fluendo.com>
7873
7874         * gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
7875         (gst_list_iterator_next), (gst_list_iterator_resync),
7876         (gst_list_iterator_free), (gst_iterator_new_list),
7877         (gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
7878         (gst_iterator_free), (gst_iterator_push), (filter_next),
7879         (filter_resync), (filter_uninit), (filter_free),
7880         (gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
7881         (gst_iterator_foreach), (find_custom_fold_func),
7882         (gst_iterator_find_custom):
7883         * gst/gstiterator.h:
7884         Added missing files.
7885
7886 2005-03-07  Wim Taymans  <wim@fluendo.com>
7887
7888         * Makefile.am:
7889         * configure.ac:
7890         * docs/design/part-MT-refcounting.txt:
7891         * docs/design/part-conventions.txt:
7892         * docs/design/part-gstobject.txt:
7893         * docs/design/part-relations.txt:
7894         * examples/mixer/mixer.c: (main):
7895         * examples/thread/thread.c: (eos), (main):
7896         * gst/Makefile.am:
7897         * gst/autoplug/gstsearchfuncs.c: (gst_autoplug_caps_intersect):
7898         * gst/autoplug/gstspider.c: (gst_spider_identity_plug),
7899         (gst_spider_plug_from_srcpad):
7900         * gst/autoplug/gstspideridentity.c: (gst_spider_identity_getcaps),
7901         (gst_spider_identity_change_state),
7902         (gst_spider_identity_sink_loop_type_finding):
7903         * gst/elements/gstfakesrc.c: (gst_fakesrc_loop):
7904         * gst/elements/gstidentity.c: (gst_identity_init):
7905         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_getcaps),
7906         (gst_tee_link), (gst_tee_request_new_pad), (gst_tee_chain):
7907         * gst/elements/gsttypefindelement.c: (free_entry):
7908         * gst/gst.c:
7909         * gst/gst.h:
7910         * gst/gstbin.c: (gst_bin_init), (gst_bin_get_clock_func),
7911         (gst_bin_set_clock_func), (gst_bin_auto_clock),
7912         (gst_bin_set_index), (gst_bin_set_element_sched),
7913         (gst_bin_unset_element_sched), (gst_bin_add_func), (gst_bin_add),
7914         (gst_bin_remove_func), (gst_bin_remove), (iterate_child),
7915         (gst_bin_iterate_elements), (iterate_child_recurse),
7916         (gst_bin_iterate_recurse), (gst_bin_dispose), (compare_name),
7917         (gst_bin_get_by_name), (gst_bin_get_by_name_recurse_up),
7918         (compare_interface), (gst_bin_get_by_interface),
7919         (gst_bin_iterate_all_by_interface), (gst_bin_iterate_func):
7920         * gst/gstbin.h:
7921         * gst/gstbuffer.c: (gst_buffer_get_type), (_gst_buffer_sub_free),
7922         (gst_buffer_default_free), (gst_buffer_default_copy),
7923         (gst_buffer_new), (gst_buffer_get_caps), (gst_buffer_set_caps),
7924         (gst_buffer_create_sub):
7925         * gst/gstbuffer.h:
7926         * gst/gstcaps.c: (gst_caps_get_type), (gst_caps_new_empty),
7927         (_gst_caps_free), (gst_caps_make_writable), (gst_caps_ref),
7928         (gst_caps_unref), (gst_static_caps_get),
7929         (gst_caps_remove_and_get_structure), (gst_caps_append),
7930         (gst_caps_append_structure), (gst_caps_remove_structure),
7931         (gst_caps_copy_nth), (gst_caps_set_simple),
7932         (gst_caps_set_simple_valist), (gst_caps_is_fixed_foreach),
7933         (gst_structure_is_equal_foreach), (gst_caps_is_subset),
7934         (gst_caps_structure_intersect_field), (gst_caps_intersect),
7935         (gst_caps_structure_subtract_field), (gst_caps_subtract),
7936         (gst_caps_normalize_foreach), (gst_caps_compare_structures),
7937         (gst_caps_structure_figure_out_union),
7938         (gst_caps_switch_structures), (gst_caps_do_simplify),
7939         (gst_caps_replace), (gst_caps_from_string),
7940         (gst_caps_copy_conditional):
7941         * gst/gstcaps.h:
7942         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_id_ref),
7943         (_gst_clock_id_free), (gst_clock_id_unref),
7944         (gst_clock_id_compare_func), (gst_clock_id_wait),
7945         (gst_clock_id_wait_async), (gst_clock_class_init),
7946         (gst_clock_init), (gst_clock_dispose), (gst_clock_adjust_unlocked),
7947         (gst_clock_get_time), (gst_clock_set_time_adjust),
7948         (gst_clock_set_property), (gst_clock_get_property):
7949         * gst/gstclock.h:
7950         * gst/gstcompat.h:
7951         * gst/gstcpu.c: (_gst_cpu_initialize_i386), (gst_cpu_get_flags):
7952         * gst/gstdata.c: (gst_data_is_writable), (gst_data_copy_on_write):
7953         * gst/gstdata.h:
7954         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
7955         (gst_element_requires_clock), (gst_element_provides_clock),
7956         (gst_element_set_clock), (gst_element_clock_wait),
7957         (gst_element_wait), (gst_element_set_time_delay),
7958         (gst_element_is_indexable), (gst_element_add_pad),
7959         (gst_element_add_ghost_pad), (gst_element_remove_pad),
7960         (pad_compare_name), (gst_element_get_static_pad),
7961         (gst_element_request_pad), (gst_element_get_request_pad),
7962         (gst_element_get_pad), (iterate_pad), (gst_element_iterate_pads),
7963         (gst_element_class_get_pad_template_list),
7964         (gst_element_class_get_pad_template), (gst_element_error_func),
7965         (gst_element_get_random_pad), (gst_element_get_event_masks),
7966         (gst_element_send_event), (gst_element_seek),
7967         (gst_element_get_query_types), (gst_element_query),
7968         (gst_element_get_formats), (gst_element_convert),
7969         (gst_element_is_locked_state), (gst_element_set_locked_state),
7970         (gst_element_sync_state_with_parent), (gst_element_change_state),
7971         (gst_element_finalize), (gst_element_yield),
7972         (gst_element_interrupt), (gst_element_set_scheduler),
7973         (gst_element_get_scheduler), (gst_element_set_loop_function):
7974         * gst/gstelement.h:
7975         * gst/gstevent.h:
7976         * gst/gstformat.c: (_gst_format_initialize), (gst_format_register),
7977         (gst_format_get_by_nick), (gst_format_get_details),
7978         (gst_format_iterate_definitions):
7979         * gst/gstformat.h:
7980         * gst/gstindex.c: (gst_index_gtype_resolver):
7981         * gst/gstinfo.c:
7982         * gst/gstinfo.h:
7983         * gst/gstmemchunk.c: (gst_mem_chunk_alloc), (gst_mem_chunk_alloc0),
7984         (gst_mem_chunk_free):
7985         * gst/gstobject.c: (gst_object_class_init), (gst_object_init),
7986         (gst_object_ref), (gst_object_unref), (gst_object_sink),
7987         (gst_object_replace), (gst_object_dispose), (gst_object_finalize),
7988         (gst_object_dispatch_properties_changed),
7989         (gst_object_set_name_default), (gst_object_set_name),
7990         (gst_object_get_name), (gst_object_set_name_prefix),
7991         (gst_object_get_name_prefix), (gst_object_set_parent),
7992         (gst_object_get_parent), (gst_object_unparent),
7993         (gst_object_check_uniqueness), (gst_object_save_thyself),
7994         (gst_object_restore_thyself), (gst_object_real_restore_thyself),
7995         (gst_object_set_property), (gst_object_get_property),
7996         (gst_object_get_path_string):
7997         * gst/gstobject.h:
7998         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
7999         (gst_real_pad_init), (gst_real_pad_get_property),
8000         (gst_pad_custom_new), (gst_pad_get_direction),
8001         (gst_pad_set_active), (gst_pad_is_active),
8002         (gst_pad_set_event_function), (gst_pad_is_linked),
8003         (gst_pad_link_free), (gst_pad_link_intersect),
8004         (gst_pad_link_fixate), (gst_pad_set_caps),
8005         (gst_pad_try_set_caps_nonfixed), (gst_pad_set_pad_template),
8006         (gst_pad_get_real_parent), (gst_pad_add_ghost_pad),
8007         (gst_pad_remove_ghost_pad), (_gst_pad_default_fixate_foreach),
8008         (gst_pad_link_unnegotiate), (gst_pad_proxy_fixate),
8009         (gst_pad_get_caps), (gst_pad_peer_get_caps),
8010         (gst_pad_get_pad_template_caps), (gst_pad_get_peer),
8011         (gst_pad_realize), (gst_pad_get_allowed_caps),
8012         (gst_real_pad_dispose), (gst_real_pad_finalize),
8013         (gst_pad_collectv), (gst_pad_collect_valist),
8014         (gst_pad_template_dispose), (gst_pad_template_new),
8015         (gst_pad_get_internal_links):
8016         * gst/gstpad.h:
8017         * gst/gstpipeline.c: (gst_pipeline_dispose),
8018         (gst_pipeline_change_state):
8019         * gst/gstpipeline.h:
8020         * gst/gstplugin.c:
8021         * gst/gstpluginfeature.c: (gst_plugin_feature_get_name),
8022         (gst_plugin_feature_set_rank), (gst_plugin_feature_get_rank):
8023         * gst/gstpluginfeature.h:
8024         * gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
8025         * gst/gstquery.c: (_gst_query_type_initialize),
8026         (gst_query_type_register), (gst_query_type_get_by_nick),
8027         (gst_query_type_get_details), (gst_query_type_iterate_definitions):
8028         * gst/gstquery.h:
8029         * gst/gstqueue.c: (gst_queue_link_sink), (gst_queue_link_src):
8030         * gst/gstscheduler.c: (gst_scheduler_add_element),
8031         (gst_scheduler_factory_create):
8032         * gst/gststructure.c: (gst_structure_set_parent_refcount),
8033         (gst_structure_free), (gst_structure_set_name),
8034         (gst_structure_id_set_value), (gst_structure_set_value),
8035         (gst_structure_set_valist), (gst_structure_remove_field),
8036         (gst_structure_remove_fields),
8037         (gst_structure_remove_fields_valist),
8038         (gst_structure_remove_all_fields), (gst_structure_foreach),
8039         (gst_structure_map_in_place),
8040         (gst_caps_structure_fixate_field_nearest_int),
8041         (gst_caps_structure_fixate_field_nearest_double):
8042         * gst/gststructure.h:
8043         * gst/gstsystemclock.c: (gst_system_clock_class_init),
8044         (gst_system_clock_init), (gst_system_clock_dispose),
8045         (gst_system_clock_async_thread),
8046         (gst_system_clock_id_wait_unlocked), (gst_system_clock_id_wait),
8047         (gst_system_clock_id_wait_async), (gst_system_clock_id_unschedule):
8048         * gst/gstsystemclock.h:
8049         * gst/gsttag.c: (gst_tag_list_add_value_internal),
8050         (gst_tag_list_copy_foreach), (structure_foreach_wrapper):
8051         * gst/gsttaginterface.c:
8052         * gst/gstthread.c: (gst_thread_dispose),
8053         (gst_thread_release_children_locks), (gst_thread_change_state),
8054         (gst_thread_main_loop):
8055         * gst/gsttrashstack.h:
8056         * gst/gsttypefind.c: (gst_type_find_factory_dispose):
8057         * gst/gsttypes.h:
8058         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
8059         (gst_element_request_pad), (gst_element_get_pad_from_template),
8060         (gst_element_request_compatible_pad),
8061         (gst_element_get_compatible_pad_filtered),
8062         (gst_element_get_compatible_pad), (gst_element_state_get_name),
8063         (gst_element_link_pads_filtered), (gst_element_link_filtered),
8064         (gst_element_link_many), (gst_element_link),
8065         (gst_element_link_pads), (gst_element_unlink_pads),
8066         (gst_element_unlink_many), (gst_element_unlink),
8067         (gst_pad_can_link_filtered), (gst_pad_can_link),
8068         (gst_pad_use_fixed_caps), (gst_pad_get_fixed_caps_func),
8069         (gst_object_default_error), (gst_bin_add_many),
8070         (gst_bin_remove_many), (gst_element_populate_std_props),
8071         (gst_element_class_install_std_props), (gst_buffer_merge),
8072         (gst_buffer_stamp), (intersect_caps_func), (gst_pad_proxy_getcaps),
8073         (link_fold_func), (gst_pad_proxy_setcaps):
8074         * gst/gstutils.h:
8075         * gst/gstvalue.c: (gst_value_deserialize_string):
8076         * gst/parse/grammar.y:
8077         * gst/schedulers/gstbasicscheduler.c:
8078         (gst_basic_scheduler_cothreaded_chain),
8079         (gst_basic_scheduler_chain_recursive_add),
8080         (gst_basic_scheduler_pad_link):
8081         * gst/schedulers/gstoptimalscheduler.c:
8082         (get_group_schedule_function),
8083         (gst_opt_scheduler_state_transition),
8084         (gst_opt_scheduler_add_element), (element_get_reachables_func):
8085         * libs/gst/bytestream/bytestream.c:
8086         * libs/gst/dataprotocol/dataprotocol.c:
8087         (gst_dp_header_from_buffer):
8088         * po/nb.po:
8089         * po/ru.po:
8090         * tests/threadstate/threadstate2.c: (eos):
8091         * tools/gst-compprep.c: (main):
8092         * tools/gst-inspect.c: (print_field), (print_element_flag_info),
8093         (print_pad_info), (print_children_info):
8094         * tools/gst-launch.c: (idle_func), (main):
8095         * tools/gst-md5sum.c: (idle_func), (main):
8096         * tools/gst-xmlinspect.c: (print_element_info):
8097         First THREADED backport attempt, focusing on adding locks and
8098         making sure the API is threadsafe. Needs more work. More docs
8099         follow this week.
8100
8101 2005-02-24  Andy Wingo  <wingo@pobox.com>
8102
8103         * tests/bench-complexity.scm:
8104         * tests/complexity.gnuplot: New files, good for running complexity
8105         benchmarks.
8106
8107         * tests/Makefile.am:
8108         * tests/complexity.c: New test, sets up N elements, at each level
8109         teeing into M streams per element. Eeeenteresting.
8110
8111         * tests/mass_elements.gnuplot: gnuplot file for the mass_elements
8112         benchmark. Run as gnuplot mass_elements.gnuplot > foo.ps, after
8113         running bench-mass_elements.scm.
8114
8115         * tests/bench-mass_elements.scm: New script, runs mass_elements
8116         for various numbers of identities, outputting the results to a
8117         file. Requires guile 1.6. Just for testing.
8118
8119 2005-02-23  Thomas Vander Stichele  <thomas at apestaart dot org>
8120
8121         * gst/schedulers/fairscheduler.c:
8122           compile with debug disabled
8123
8124 2005-02-22  Thomas Vander Stichele  <thomas at apestaart dot org>
8125
8126         * configure.ac:
8127           hunting season on 0.9 is now OPEN