gst/net/gstnetclientclock.c: Free remote and local time arrays.
[platform/upstream/gstreamer.git] / ChangeLog
1 2005-11-17  Wim Taymans  <wim@fluendo.com>
2
3         * gst/net/gstnetclientclock.c: (gst_net_client_clock_finalize):
4         Free remote and local time arrays.
5
6 2005-11-17  Wim Taymans  <wim@fluendo.com>
7
8         * gst/net/gstnetclientclock.c: (do_linear_regression),
9         (gst_net_client_clock_do_select), (gst_net_client_clock_thread):
10         Fix compilation, uninitialized vars and a forgotten continue.
11
12 2005-11-17  Andy Wingo  <wingo@pobox.com>
13
14         * check/Makefile.am (check_PROGRAMS): 
15         * check/net/gstnetclientclock.c: Add a most minimal test for the
16         net client clock. More to come later.
17
18         * gst/net/gstnet.h: 
19         * gst/net/Makefile.am: Add netclientclock.
20
21         * gst/net/gstnetclientclock.h:
22         * gst/net/gstnetclientclock.c: New files, implement an untested
23         GstClock that takes its time from a network time provider.
24         Implements the algorithm in network-clock.scm.
25
26         * tests/network-clock.scm (*window-size*): Rename from
27         *queue-length*.
28         * tests/network-clock.scm (network-time): 
29         * tests/network-clock-utils.scm (q-push): Update callers.
30
31 2005-11-17  Wim Taymans  <wim@fluendo.com>
32
33         * gst/gstbin.c: (gst_bin_provide_clock_func),
34         (gst_bin_sort_iterator_new):
35         And unref the child too..
36
37 2005-11-17  Wim Taymans  <wim@fluendo.com>
38
39         * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
40         (gst_bin_sort_iterator_new), (gst_bin_iterate_sorted):
41         Refactor the sort iterator so it can be used while holding the
42         LOCK too.
43         Make clock selection select a clock closest to the source.
44
45 2005-11-17  Michael Smith <msmith@fluendo.com>
46
47         * gst/gstclock.c: (gst_clock_init), (gst_clock_adjust_unlocked),
48         (gst_clock_set_rate_offset), (gst_clock_get_rate_offset):
49         * gst/gstclock.h:
50           Anonymous structs are a gcc (and some other compilers) extension, so
51           don't use them. Since this is only for ABI-compatibility, and our
52           API/ABI freeze is over in a few days, this whole thing will only
53           last a few days, so don't bother trying to think up a meaningful
54           name for the struct.
55
56 2005-11-17  Andy Wingo  <wingo@pobox.com>
57
58         * gst/gstclock.h (GstClock): Add rate and offset properties,
59         preserving ABI stability. Add rate/offset accessors. Will file bug
60         for the freeze break.
61
62         * gst/gstclock.c (gst_clock_adjust_unlocked): Implement using rate
63         and offset, trying to keep precision and avoiding
64         underflow/overflow.
65         (gst_clock_set_rate_offset, gst_clock_get_rate_offset): New
66         functions. Make gst_clock_set_time_adjust obsolete.
67         (gst_clock_set_time_adjust): Note that this function is obsolete.
68         Will file bug soon.
69
70         * gst/base/gstbasetransform.h: Make the ABI-stability hack
71         greppable by using GST_PADDING-1+1.
72
73 2005-11-17  Torsten Schoenfeld  <kaffeetisch at gmx dot net>
74
75         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
76
77         * gst/gstmessage.c: (gst_message_parse_clock_lost):
78           Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648).
79
80         * gst/gstpadtemplate.h:
81         * gst/gstpluginfeature.h:
82           Don't use c++ style comments in headers (#321638).
83
84 2005-11-16  Andy Wingo  <wingo@pobox.com>
85
86         * gst/net/gstnettimepacket.c (gst_net_time_packet_send): Free
87         buffer.
88
89         * check/net/gstnettimeprovider.c: Check to see that the time
90         provider actually provides times. Works, yo!
91
92 2005-11-16  Wim Taymans  <wim@fluendo.com>
93
94         * check/Makefile.am:
95         Enable more tests.
96
97         * check/elements/fakesrc.c: (GST_START_TEST):
98         Set element to NULL before disposing it.
99
100 2005-11-16  Andy Wingo  <wingo@pobox.com>
101
102         * gst/net/Makefile.am:
103         * gst/net/gstnet.h:
104         * gst/net/gstnettimeprovider.c: 
105         * gst/net/gstnettimeprovider.h: Use the timepacket stuff in the
106         provider, include it from gstnet.h, and add it to the build.
107
108         * gst/net/gstnettimepacket.h: 
109         * gst/net/gstnettimepacket.c: New files, abstracts out the packet
110         sending and receiving.
111
112 2005-11-16  Wim Taymans  <wim@fluendo.com>
113
114         * check/Makefile.am:
115         Enable valgrind check.
116
117         * gst/elements/gstfakesrc.c: (gst_fake_src_alloc_parent),
118         (gst_fake_src_alloc_buffer):
119         Fix memleak.
120
121 2005-11-16  Wim Taymans  <wim@fluendo.com>
122
123         * gst/net/gstnettimeprovider.c: (gst_net_time_provider_finalize):
124         Call parent finalize too.
125
126 2005-11-16  Wim Taymans  <wim@fluendo.com>
127
128         * check/Makefile.am:
129         Enable valgrind check that should work fine now.
130
131         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
132         * gst/gstqueue.c: (gst_queue_init):
133         Fix memleaks in pad allocation.
134
135 2005-11-16  Andy Wingo  <wingo@pobox.com>
136
137         * gst/net/Makefile.am:
138         * gst/net/gstnet.h: New part of core to hold network elements and
139         objects. Put in core because it exposes API that applications want
140         to use. The library is named libgstnet-tempname right now because
141         of the existing libgstnet in gst-plugins-base. Solution is
142         probably to rename the one in plugins-base; will file a bug for
143         the freeze break.
144
145         * gst/net/gstnettimeprovider.c: 
146         * gst/net/gstnettimeprovider.h: New object to export a GstClock's
147         get_time call over the network.
148
149         * configure.ac: 
150         * gst/Makefile.am (lib_LTLIBRARIES): Add gstnet to the build.
151
152         * check/Makefile.am:
153         * check/net/gstnettimeprovider.c: A most minimal test suite. Will
154         get additions shortly.
155
156 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
157
158         * gst/gstpad.c: (gst_pad_new_from_static_template):
159         * gst/gstpad.h:
160           add gst_pad_new_from_static_template functions
161         * gst/check/gstcheck.c: (gst_check_setup_src_pad),
162         (gst_check_setup_sink_pad):
163         * gst/elements/gsttee.c: (gst_tee_init):
164           and use them
165
166 2005-11-16  Wim Taymans  <wim@fluendo.com>
167
168         * gst/gstpad.c: (gst_pad_pause_task):
169         Removed warning, it's not really an error either.
170
171 2005-11-16  Wim Taymans  <wim@fluendo.com>
172
173         * gst/base/gstbasetransform.c:
174         (gst_base_transform_prepare_output_buf),
175         (gst_base_transform_event):
176         Check if the caps are NULL, this can happen if the element
177         is shutting down and the pad caps are set to NULL.
178
179 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
180
181         * gst/elements/gsttee.c: (gst_tee_init):
182           fix pad tempalte leak in tee
183
184 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
185
186         * gst/glib-compat.c: (g_value_dup_gst_object):
187         * gst/glib-compat.h:
188         * gst/gstpad.c: (gst_pad_set_property):
189           use gst_object_ref when setting the pad template; this will
190           trigger the pad template leaks on GLib 2.6 and the slaves
191
192 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
193
194         * gst/glib-compat.c: (gst_flags_get_first_value):
195         * gst/glib-compat.h:
196         * gst/gstregistryxml.c:
197           remove functions copied from GLib 2.6
198
199 2005-11-16  Michael Smith <msmith@fluendo.com>
200
201         * gst/Makefile.am:
202           Don't link against VALGRIND_LIBS. That was always the wrong thing to
203           do, but only breaks with newer valgrind versions. We're not a
204           valgrind tool, we have no link-time dependencies on libcoregrind.
205
206 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
207
208         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
209           some debug changes
210         * gst/gstmessage.h:
211           typo fixes
212
213 2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
214
215         * gst/base/gstbasesrc.c: (gst_base_src_init):
216         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
217         * gst/gstqueue.c: (gst_queue_init):
218         * gst/gstregistryxml.c: (load_feature):
219           Revert all these unrefs, they don't even pass make check !
220
221 2005-11-15  Johan Dahlin  <johan@gnome.org>
222
223         * gst/base/gstbasesrc.c: (gst_base_src_init):
224         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
225         * gst/gstqueue.c: (gst_queue_init): 
226         Free pad templates, fixes a couple of leaks.
227
228 2005-11-15  Daniel Fischer  <dan at f3c dot com>
229
230         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
231
232         * gst/gstpad.c: (gst_pad_get_property):
233           GST_PAD_PAD_TEMPLATE(pad) gets the pad template, while
234           GST_PAD_TEMPLATE(pad) does a cast. We want the former here.
235           (#321452)
236
237 2005-11-15  Wim Taymans  <wim@fluendo.com>
238
239         * gst/gstevent.c:
240         Small doc update.
241
242 2005-11-15  Andy Wingo  <wingo@pobox.com>
243
244         * gst/gstelement.c (gst_element_set_base_time): Add debugging.
245
246         * gst/gstpipeline.c (gst_pipeline_set_new_stream_time): Document
247         using GST_CLOCK_TIME_NONE to disable base time management.
248         (do_pipeline_seek, gst_pipeline_change_state): Don't reset stream
249         time if it was NONE before.
250         (gst_pipeline_change_state): Only munge the base time if
251         stream_time != GST_CLOCK_TIME_NONE.
252
253         * check/gst/gstpipeline.c (test_base_time): Punt around the
254         problem of the probe not being called, because that's not the
255         issue I'm looking at. Add a check that setting stream_time to NONE
256         disables base time management.
257         
258 2005-11-15  Wim Taymans  <wim@fluendo.com>
259
260         * gst/base/gstbasesink.c: (gst_base_sink_change_state):
261         segment_stop == -1 at startup.
262
263         * gst/base/gstbasetransform.c: (gst_base_transform_event),
264         (gst_base_transform_change_state):
265         Init segment values at start.
266
267 2005-11-15  Wim Taymans  <wim@fluendo.com>
268
269         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
270         0 segment values are 0 in any format.
271
272         * gst/base/gstbasetransform.c: (gst_base_transform_event):
273         * gst/base/gstbasetransform.h:
274         Parse newsegment correctly in basetransform
275
276         * gst/elements/gstidentity.c: (gst_identity_transform_ip):
277         Sync to clock using updated segment values.
278
279 2005-11-15  Andy Wingo  <wingo@pobox.com>
280
281         * check/gst/gstpipeline.c (test_base_time): Add check that the
282         base time and stream time are reset correctly.
283
284 2005-11-15  Wim Taymans  <wim@fluendo.com>
285
286         * docs/design/part-TODO.txt:
287         Some more TODO items.
288
289 2005-11-15  Andy Wingo  <wingo@pobox.com>
290
291         * gst/elements/gstfakesrc.c (gst_fake_src_create): It's not an
292         error if the user selected "no clock" as the clocking method.
293
294         * check/gst/gstpipeline.c (test_base_time): New test for buffer
295         timestamps with live capture.
296
297         * gst/elements/gstfakesrc.c (gst_fake_src_create): If the datarate
298         is 0 but we are a live source, timestamp the buffers using the
299         element's clock.
300
301 2005-11-14  Stefan Kost  <ensonic@users.sf.net>
302
303         * docs/gst/gstreamer-sections.txt:
304         * gst/gsterror.c:
305         * gst/gstghostpad.c:
306         * gst/gstobject.h:
307         * gst/gstxml.c:
308           more section docs
309
310 2005-11-14  Wim Taymans  <wim@fluendo.com>
311
312         * common/gst.supp:
313           add suppressions from Wim's Debian machine
314
315 2005-11-14  Thomas Vander Stichele  <thomas at apestaart dot org>
316
317         * common/gst.supp:
318           add suppressions from Andy's AMD64 Ubuntu machine
319
320 2005-11-14  Andy Wingo  <wingo@pobox.com>
321
322         * gst/gstpad.c (gst_pad_set_active): Change docs; parent's
323         STATE_LOCK not necessary. Fixes #311489.
324
325         * gst/gsterror.c (FILE_A_BUG): Be polite *and* helpful. Fixes
326         #305291.
327
328         * gst/gstindex.c (gst_index_add_object): Note in the docs that
329         this function is not implemented.
330
331 2005-11-14  Julien MOUTTE  <julien@moutte.net>
332
333         * gst/base/gstbasetransform.c:
334         (gst_base_transform_prepare_output_buf):
335         Ref the source pad caps while we need them.
336         Fixes (#321386)
337
338 2005-11-11  Wim Taymans  <wim@fluendo.com>
339
340         * docs/gst/gstreamer-sections.txt:
341         Added some docs for GstCollectData.
342
343         * gst/base/gstadapter.c:
344         Some small code example fix.
345
346         * gst/base/gstcollectpads.c:
347         * gst/base/gstcollectpads.h:
348         Document some more.
349
350 2005-11-11  Thomas Vander Stichele  <thomas at apestaart dot org>
351
352         * configure.ac: back to HEAD
353
354 === release 0.9.5 ===
355
356 2005-11-11  Thomas Vander Stichele <thomas at apestaart dot org>
357
358         * configure.ac:
359           releasing 0.9.5, "Bike Lunch Day"
360
361 2005-11-11  Wim Taymans  <wim@fluendo.com>
362
363         * gst/gstbuffer.c: (_gst_buffer_copy):
364         Copy more flags.
365
366         * gst/gstcaps.c: (gst_caps_is_equal):
367         Fix some docs.
368         Make _is_equal fast in the trivial cases.
369
370         * gst/gstminiobject.c:
371         * gst/gstminiobject.h:
372         More docs. Spifify .h file.
373
374         * gst/gstutils.c:
375         Small doc update.
376
377 2005-11-11  Wim Taymans  <wim@fluendo.com>
378
379         * gst/base/gstbasetransform.c:
380         (gst_base_transform_prepare_output_buf),
381         (gst_base_transform_handle_buffer):
382         Small cleanups.
383         If we're processing a buffer and need to allocate an output
384         buffer, we cannot accept a format change. If we did get a 
385         format change, we have to alloc a buffer ourselves of the 
386         right size.
387
388 2005-11-11  Wim Taymans  <wim@fluendo.com>
389
390         * gst/gstpad.c: (gst_pad_get_caps), (gst_pad_peer_get_caps):
391         While checking the flag for reentrancy in the gstcaps function
392         is nice to detect recursive invocations, it also makes it 
393         impossible to call getcaps from multiple threads, which must be
394         possible. So, checking for recursive calls has to go.
395
396 2005-11-11  Michael Smith <msmith@fluendo.com>
397
398         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
399           Don't sync on buffers that fall partially outside our current
400           segment. Prevents an assertion failure/abort playing some files.
401
402 2005-11-10  Andy Wingo  <wingo@pobox.com>
403
404         * check/gst/gstbin.c (test_message_state_changed_children): Style
405         fix..
406
407         * gst/gstbus.c (poll_destroy, poll_func, gst_bus_poll): Implement
408         gst_bus_poll with the signal watch. Ensures that poll and a signal
409         watch see the same messages.
410
411         * check/gst/gstbus.c (test_watch_with_poll): New test, checks that
412         a poll and a watch at the same time get the same messages.
413
414 2005-11-10  Thomas Vander Stichele  <thomas at apestaart dot org>
415
416         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps):
417         * gst/gstcaps.c: (gst_caps_intersect):
418           Don't call gst_caps_do_simplify - it doesn't respect order of caps
419           and it's not needed.
420
421 2005-11-10  Wim Taymans  <wim@fluendo.com>
422
423         * docs/design/part-TODO.txt:
424         Updated todo.
425
426 2005-11-10  Wim Taymans  <wim@fluendo.com>
427
428         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
429         * gst/base/gstbasesrc.c: (gst_base_src_wait),
430         (gst_base_src_do_sync), (gst_base_src_get_range):
431         Implement clock sync in base class.
432
433 2005-11-10  Thomas Vander Stichele  <thomas at apestaart dot org>
434
435         patch by: Tim-Philipp Müller <tim at centricular dot net>
436
437         * gst/gststructure.c: (gst_structure_parse_field),
438         (gst_structure_from_string):
439           Forward-port a 0.8 patch to handle escaped spaces in structure string,
440           so that gst_parse_launch() can deal with spaces in filtered link
441           caps (fixes #164479)
442         * check/gst/capslist.h:
443         * check/gst/gststructure.c: (GST_START_TEST):
444           add unit tests for this change
445
446 2005-11-10  Wim Taymans  <wim@fluendo.com>
447
448         * docs/gst/gstreamer-sections.txt:
449         * gst/gstelement.c:
450         * gst/gstelement.h:
451         Fix docs, move some STATE macros to private.
452
453 2005-11-10  Wim Taymans  <wim@fluendo.com>
454
455         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
456         Added check for bug #317341
457
458         * gst/gstbuffer.c:
459         * gst/gstbuffer.h:
460         Some more spiffifying.
461
462         * gst/gstghostpad.c: (gst_ghost_pad_do_link):
463         Call peer linkfunction if we are a source pad. Totally fixes
464         #317341
465
466         * gst/gstpad.c:
467         Update docs, source pads should call the peer linkfunction
468         so they can atomically perform the pad link.
469
470 2005-11-09  Wim Taymans  <wim@fluendo.com>
471
472         * gst/gstbuffer.c:
473         * gst/gstbuffer.h:
474         Uber-spiffy-spiffify some more.
475
476 2005-11-09  Tim-Philipp Müller  <tim at centricular dot net>
477
478         * gst/base/gstcollectpads.c: (gst_collectpads_add_pad):
479         * gst/elements/gstfilesink.c: (gst_file_sink_init):
480         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
481         * gst/gstghostpad.c: (gst_ghost_pad_set_internal),
482         (gst_ghost_pad_init), (gst_ghost_pad_new_notarget):
483         * gst/gstpad.c: (gst_pad_init):
484           Use GST_DEBUG_FUNCPTR() more extensively.
485
486 2005-11-09  Wim Taymans  <wim@fluendo.com>
487
488         * gst/gstobject.c: (gst_object_class_init):
489         * gst/gstobject.h:
490         Documentation fixes.
491
492 2005-11-09  Edward Hervey  <edward@fluendo.com>
493
494         * gst/gsttypefindfactory.c:
495         Fix docs.
496         
497 2005-11-09  Edward Hervey  <edward@fluendo.com>
498
499         * gst/base/gsttypefindhelper.c:
500         * gst/gsttypefind.c:
501         * gst/gsttypefind.h:
502         Fix docs.
503
504 2005-11-09  Wim Taymans  <wim@fluendo.com>
505
506         * gst/gstiterator.c:
507         Fix revision data.
508
509         * gst/gsttask.c:
510         * gst/gsttask.h:
511         Fix docs.
512
513 2005-11-09  Wim Taymans  <wim@fluendo.com>
514
515         * gst/gstevent.h:
516         * gst/gsturi.h:
517         Fix docs.
518
519 2005-11-09  Wim Taymans  <wim@fluendo.com>
520
521         * docs/gst/gstreamer-sections.txt:
522         Moved the message async delivery private lock and cond
523         to the private section.
524
525         * gst/gstmessage.c:
526         * gst/gstmessage.h:
527         Fixed docs.
528
529 2005-11-09  Edward Hervey  <edward@fluendo.com>
530
531         * docs/gst/gstreamer-sections.txt:
532         * gst/gsturi.c:
533         * gst/gsturi.h:
534         Document GstURIHandler
535
536 2005-11-09  Wim Taymans  <wim@fluendo.com>
537
538         * gst/gstiterator.c: (gst_iterator_fold), (gst_iterator_foreach),
539         (gst_iterator_find_custom):
540         * gst/gstiterator.h:
541         Fix iterator docs.
542
543 2005-11-09  Wim Taymans  <wim@fluendo.com>
544
545         * gst/gstbin.h:
546         Document another field.
547
548         * gst/gststructure.c:
549         * gst/gststructure.h:
550         Document.
551
552 2005-11-09  Wim Taymans  <wim@fluendo.com>
553
554         * gst/gstbin.h:
555         Documented structs.
556
557 2005-11-09  Wim Taymans  <wim@fluendo.com>
558
559         * docs/gst/gstreamer-sections.txt:
560         Added some new macros.
561
562         * gst/gstclock.c:
563         * gst/gstclock.h:
564         * gst/gstobject.h:
565         Docs updates.
566
567 2005-11-09  Wim Taymans  <wim@fluendo.com>
568
569         * docs/design/part-TODO.txt:
570         Some more items for the TODO
571
572         * gst/gstcaps.c:
573         * gst/gstcaps.h:
574         Document GstCaps.
575
576 2005-11-09  Andy Wingo  <wingo@pobox.com>
577
578         * gst/base/gstbasesink.c: Add the beginning of docs here -- have
579         to work on something else now tho...
580
581         * gst/base/gstadapter.c: More adapter docs.
582
583         * gst/elements/gstfilesink.c (gst_file_sink_start) 
584         (gst_file_sink_stop): New functions, replace the state change
585         handler.
586         (gst_file_sink_class_init): Hook up the start and stop functions.
587         (gst_file_sink_base_init): Don't set the state change handler any
588         more. It was a bit ugly too, being set from here...
589         (gst_file_sink_get_property, gst_file_sink_set_property):
590         Cleanups...
591         (gst_file_sink_set_location): More robust check that doesn't call
592         GST_STATE. Ugggggg.
593
594 2005-11-08  Tim-Philipp Müller  <tim at centricular dot net>
595
596         * gst/base/gstbasetransform.c: (gst_base_transform_event):
597           Hold STREAM_LOCK while pushing newsegment or tag events as well.
598
599 2005-11-08  Wim Taymans  <wim@fluendo.com>
600
601         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
602         (gst_base_sink_do_sync), (gst_base_sink_handle_event),
603         (gst_base_sink_chain), (gst_base_sink_change_state):
604         * gst/base/gstbasesink.h:
605         * gst/base/gstbasesrc.h:
606         * gst/gstelement.h:
607         * gst/gstevent.h:
608         Avoid excessive typechecking in macros.
609
610         * gst/gstminiobject.c: (gst_mini_object_get_type),
611         (gst_mini_object_init), (gst_mini_object_new),
612         (gst_mini_object_free):
613         * gst/gstobject.c: (gst_object_class_init), (gst_object_init),
614         (gst_object_finalize):
615         Remove cruft code, optimize alloc_trace.
616
617 2005-11-07  Thomas Vander Stichele  <thomas at apestaart dot org>
618
619         * docs/faq/gst-uninstalled:
620           fix up PS1 for systems that try to reset it
621
622 2005-11-07  Wim Taymans  <wim@fluendo.com>
623
624         * gst/base/gstbasesrc.c: (gst_base_src_init),
625         (gst_base_src_get_range):
626         Set the segment_end to -1 initially. Fixed typefind.
627
628 2005-11-07  Tim-Philipp Müller  <tim at centricular dot net>
629
630         * gst/base/gstadapter.c:
631           Debug category should be 'adapter', not 'GstAdapter'.
632           
633         * gst/base/gstcollectpads.c: (gst_collectpads_base_init),
634         (gst_collectpads_class_init), (gst_collectpads_init),
635         (gst_collectpads_peek), (gst_collectpads_pop),
636         (gst_collectpads_event), (gst_collectpads_chain):
637           Add debug category and some debugging output. Use boilerplate
638           macros. Remove some extraneous words from docs.
639
640 2005-11-05  Andy Wingo  <wingo@pobox.com>
641
642         * gst/base/gstpushsrc.c: Shorten by 30% via use of boilerplate
643         macro.
644
645 2005-11-04  Stefan Kost  <ensonic@users.sf.net>
646
647         * docs/gst/gstreamer-sections.txt:
648         * gst/gstcaps.h:
649         * gst/gstinfo.c:
650         * gst/gstminiobject.h:
651         * gst/gstobject.h:
652         * gst/gstutils.h:
653           more docs added
654
655 2005-11-04  Wim Taymans  <wim@fluendo.com>
656
657         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
658         Small update to stop at the configured segment_end
659         position.
660
661 2005-11-04  Stefan Kost  <ensonic@users.sf.net>
662
663         * gst/gstregistry.c:
664         * gst/gstregistry.h:
665           added missing docs
666
667 2005-11-04  Edward Hervey  <edward@fluendo.com>
668
669         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
670         Check if we are doing a segment seek and have arrived at the
671         end of that segment.
672
673 2005-11-04  Wim Taymans  <wim@fluendo.com>
674
675         * gst/gstbus.c: (gst_bus_post), (gst_bus_set_sync_handler):
676         Don't leak a mutex unlock in case of an error.
677
678         * gst/gstbus.h:
679         Doc fixes.
680
681 2005-11-04  Wim Taymans  <wim@fluendo.com>
682
683         * gst/gstbus.c: (gst_bus_class_init), (gst_bus_init),
684         (gst_bus_post):
685         Get the context to wake up only once.
686
687 2005-11-03  Wim Taymans  <wim@fluendo.com>
688
689         * check/states/sinks.c: (GST_START_TEST):
690         Uncomment fixed check.
691
692         * docs/design/part-TODO.txt:
693         Updated TODO.
694
695         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
696         (gst_base_sink_handle_object), (gst_base_sink_do_sync),
697         (gst_base_sink_get_position):
698         If we are going to PLAYING, post the right pending state
699         when we post the intermediate paused message.
700
701         * gst/gstelement.c: (gst_element_continue_state),
702         (gst_element_set_state_func), (gst_element_change_state):
703         Don't post state changes that were between the same state
704         and were not ASYNC.
705
706 2005-11-03  Stefan Kost  <ensonic@users.sf.net>
707
708         * docs/gst/gstreamer-sections.txt:
709         * gst/gstcaps.h:
710         * gst/gstinfo.c:
711         * gst/gstminiobject.h:
712         * gst/gstobject.h:
713         * gst/gstutils.h:
714           more docs and doc style fixes
715
716 2005-11-03  Stefan Kost  <ensonic@users.sf.net>
717
718         * docs/gst/gstreamer-sections.txt:
719         * gst/gstelement.c:
720         * gst/gstminiobject.c:
721         doc fixes
722
723 2005-11-03  Andy Wingo  <wingo@pobox.com>
724
725         * check/states/sinks.c (test_livesrc_sink): Add checks that the
726         state-changed messages actually have the right order and the right
727         values.
728
729 2005-11-03  Wim Taymans  <wim@fluendo.com>
730
731         * check/states/sinks.c: (GST_START_TEST), (gst_object_suite):
732         Added some more checks. Specifically the case where NO_PREROLL
733         elements are in the pipeline.
734
735         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
736         (gst_base_sink_handle_object), (gst_base_sink_do_sync),
737         (gst_base_sink_get_position):
738         Post READY->PAUSED state change messages too.
739         Fix bug where VOID was posted as pending state...
740
741         * gst/gstbin.c: (gst_bin_recalc_state):
742         use _element_continue_state() to continue the state change.
743
744         * gst/gstelement.c: (gst_element_continue_state),
745         (gst_element_commit_state), (gst_element_set_state_func),
746         (gst_element_change_state), (gst_element_change_state_func):
747         Lots of state change cleanups, assign the STATE_RETURN in
748         a new continue_state() function that also propagates the
749         last return value from a state change to the app.
750         Update some debug statements with proper category.
751
752 2005-11-03  Wim Taymans  <wim@fluendo.com>
753
754         * docs/design/part-events.txt:
755         * docs/design/part-gstpipeline.txt:
756         * docs/design/part-messages.txt:
757         * docs/design/part-overview.txt:
758         * docs/design/part-seeking.txt:
759         * docs/design/part-states.txt:
760         * docs/design/part-trickmodes.txt:
761         * docs/manual/advanced-position.xml:
762         Small docs updates.
763
764         * gst/gstobject.h:
765         People think !! is ugly, this looks better.
766
767         * gst/gstpad.c: (gst_pad_set_blocked_async):
768         Remove !! since it's fixed elsewhere now.
769
770 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
771
772         * gst/gstminiobject.h:
773         * gst/gstobject.h:
774           Add !! to _FLAG_IS_SET macros to make the result boolean.
775
776 2005-11-03  Edward Hervey  <edward@fluendo.com>
777
778         * gst/gstpad.c: (gst_pad_set_blocked_async):
779         comparing a flag and a gboolean rarely returns coherent results...
780         Added two characters (!!) to make that work correctly.
781         
782 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
783
784         * gst/gstbus.c: (gst_bus_class_init):
785           Fix some typos.
786           
787         * gst/gstqueue.c: (gst_queue_loop):
788           Don't assume a miniobject that isn't a buffer is an
789           event (it could be that there is a refcounting
790           problem somewhere and the pointer is stale and
791           refers to an already destroyed miniobject).
792
793 2005-11-03  Julien MOUTTE  <julien@moutte.net>
794
795         * gst/gstpad.c: (gst_pad_alloc_buffer): Fix some typos.
796
797 2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
798
799         * docs/manual/advanced-position.xml:
800           Update seek example and explanations to current 0.9 API.
801
802         * gst/elements/gsttypefindelement.c:
803         (gst_type_find_element_activate):
804           Remove FIXME comment now that the found caps
805           are unreffed.
806
807 2005-11-03  Thomas Vander Stichele  <thomas at apestaart dot org>
808
809         * gst/gstregistryxml.c: (load_feature):
810           Add another GST_STR_NULL instance
811
812 2005-11-02  Edward Hervey  <edward@fluendo.com>
813
814         * gst/gstpad.c: (handle_pad_block):
815         Follow-up to Wim's patch, solves deadlock for blocked and flushing pads
816         
817 2005-11-02  Wim Taymans  <wim@fluendo.com>
818
819         * gst/gstbin.c:
820         Fix typo in docs.
821
822         * gst/gstelement.c: (gst_element_commit_state):
823         Remove unused value.
824
825         * gst/gstiterator.c:
826         Mention that the returned element is reffed in the docs.
827
828 2005-11-02  Wim Taymans  <wim@fluendo.com>
829
830         * gst/gstpad.c: (gst_pad_alloc_buffer), (handle_pad_block),
831         (gst_pad_push), (gst_pad_push_event):
832         Unlock blocked pads when they are flushed.
833
834 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
835
836         * docs/README:
837         * docs/gst/gstreamer-sections.txt:
838         * gst/gstbin.c:
839           doc updates
840         * gst/gstregistry.c: (gst_registry_scan_path_level):
841           fix for a nasty little missed situation where an installed plug-in
842           which was in the cache did not get overridden by an uninstalled one
843           which was earlier in the plugin path because the newly created plugin
844           for the uninstalled one (not in the registry) didn't get its
845           ->registered set to TRUE
846
847 2005-11-02  Tim-Philipp Müller  <tim at centricular dot net>
848
849         * gst/base/gstcollectpads.c: (gst_collectpads_set_function),
850         (gst_collectpads_add_pad), (gst_collectpads_remove_pad),
851         (gst_collectpads_is_active), (gst_collectpads_collect),
852         (gst_collectpads_collect_range), (gst_collectpads_start),
853         (gst_collectpads_stop), (gst_collectpads_peek),
854         (gst_collectpads_pop), (gst_collectpads_available),
855         (gst_collectpads_read), (gst_collectpads_flush):
856           Guard public API with assertions.
857         
858         * gst/gstpad.c:
859           Fix docs for gst_pad_set_link_function().
860
861 2005-11-02  Johan Dahlin  <johan@gnome.org>
862
863         * gst/elements/gsttypefindelement.c (gst_type_find_element_activate): 
864         Unref found_caps after we used it.
865
866 2005-11-02  Tim-Philipp Müller  <tim at centricular dot net>
867
868         * gst/base/gstcollectpads.c: (gst_collectpads_peek):
869           Don't try to ref NULL.
870
871 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
872
873         * win32/common/config.h.in:
874           provide a GST_FUNCTION that just gives a string for now
875
876 2005-11-02  Thomas Vander Stichele  <thomas at apestaart dot org>
877
878         * win32/common/gstenumtypes.c: (register_gst_object_flags),
879         (gst_object_flags_get_type), (register_gst_bin_flags),
880         (gst_bin_flags_get_type), (register_gst_buffer_flag),
881         (gst_buffer_flag_get_type), (register_gst_bus_flags),
882         (gst_bus_flags_get_type), (register_gst_bus_sync_reply),
883         (gst_bus_sync_reply_get_type), (register_gst_clock_return),
884         (gst_clock_return_get_type), (register_gst_clock_entry_type),
885         (gst_clock_entry_type_get_type), (register_gst_clock_flags),
886         (gst_clock_flags_get_type), (register_gst_state),
887         (gst_state_get_type), (register_gst_state_change_return),
888         (gst_state_change_return_get_type), (register_gst_state_change),
889         (gst_state_change_get_type), (register_gst_element_flags),
890         (gst_element_flags_get_type), (register_gst_core_error),
891         (gst_core_error_get_type), (register_gst_library_error),
892         (gst_library_error_get_type), (register_gst_resource_error),
893         (gst_resource_error_get_type), (register_gst_stream_error),
894         (gst_stream_error_get_type), (register_gst_event_type),
895         (gst_event_type_get_type), (register_gst_seek_type),
896         (gst_seek_type_get_type), (register_gst_seek_flags),
897         (gst_seek_flags_get_type), (register_gst_format),
898         (gst_format_get_type), (register_gst_index_certainty),
899         (gst_index_certainty_get_type), (register_gst_index_entry_type),
900         (gst_index_entry_type_get_type),
901         (register_gst_index_lookup_method),
902         (gst_index_lookup_method_get_type), (register_gst_assoc_flags),
903         (gst_assoc_flags_get_type), (register_gst_index_resolver_method),
904         (gst_index_resolver_method_get_type), (register_gst_index_flags),
905         (gst_index_flags_get_type), (register_gst_debug_level),
906         (gst_debug_level_get_type), (register_gst_debug_color_flags),
907         (gst_debug_color_flags_get_type), (register_gst_iterator_result),
908         (gst_iterator_result_get_type), (register_gst_iterator_item),
909         (gst_iterator_item_get_type), (register_gst_message_type),
910         (gst_message_type_get_type), (register_gst_mini_object_flags),
911         (gst_mini_object_flags_get_type), (register_gst_pad_link_return),
912         (gst_pad_link_return_get_type), (register_gst_flow_return),
913         (gst_flow_return_get_type), (register_gst_activate_mode),
914         (gst_activate_mode_get_type), (register_gst_pad_direction),
915         (gst_pad_direction_get_type), (register_gst_pad_flags),
916         (gst_pad_flags_get_type), (register_gst_pad_presence),
917         (gst_pad_presence_get_type), (register_gst_pad_template_flags),
918         (gst_pad_template_flags_get_type), (register_gst_pipeline_flags),
919         (gst_pipeline_flags_get_type), (register_gst_plugin_error),
920         (gst_plugin_error_get_type), (register_gst_plugin_flags),
921         (gst_plugin_flags_get_type), (register_gst_rank),
922         (gst_rank_get_type), (register_gst_query_type),
923         (gst_query_type_get_type), (register_gst_tag_merge_mode),
924         (gst_tag_merge_mode_get_type), (register_gst_tag_flag),
925         (gst_tag_flag_get_type), (register_gst_task_state),
926         (gst_task_state_get_type), (register_gst_alloc_trace_flags),
927         (gst_alloc_trace_flags_get_type),
928         (register_gst_type_find_probability),
929         (gst_type_find_probability_get_type), (register_gst_uri_type),
930         (gst_uri_type_get_type), (register_gst_parse_error),
931         (gst_parse_error_get_type):
932         * win32/common/gstversion.h:
933           update win32 copies
934
935 2005-11-01  Luca Ognibene  <luogni@tin.it>
936
937         * gst/gst.c:
938           fix docs. popt is dead, long live GOption.
939
940 2005-10-31  Wim Taymans  <wim@fluendo.com>
941
942         * gst/gstbuffer.h:
943         Small doc fix.
944
945 2005-10-31  Andy Wingo  <wingo@pobox.com>
946
947         * Boo!
948
949         * gst/gstqueue.c (gst_queue_chain): Fix downstream leaky mode.
950
951         * gst/gstobject.c (gst_object_dispatch_properties_changed): No
952         need to serialize property notifications on GLib 2.8. GLib 2.6 has
953         the possibility of deadlocks here if code calling notify() or
954         set() has a lock that can be taken in another notify handler (ABBA
955         with class lock and e.g. python GIL state lock).
956
957 2005-10-28  Julien MOUTTE  <julien@moutte.net>
958
959         * gst/gstbus.c: Doc updates.
960
961 2005-10-28  Wim Taymans  <wim@fluendo.com>
962
963         * docs/design/part-TODO.txt:
964         * gst/gstiterator.c:
965         * gst/gstsystemclock.c:
966         * gst/gstsystemclock.h:
967         Doc updates.
968
969 2005-10-28  Edward Hervey  <edward@fluendo.com>
970
971         * docs/gst/gstreamer-docs.sgml:
972         * docs/gst/gstreamer-sections.txt:
973         the GstURIType documentation page is private, it only defines GstURIType
974         which should be defined in the GstURIHandler page
975         
976 2005-10-28  Thomas Vander Stichele  <thomas at apestaart dot org>
977
978         * gst/gstbin.c: (gst_bin_class_init):
979         * gst/gstbin.h:
980         * gst/gstutils.c:
981         Documentation updates.
982
983 2005-10-28  Wim Taymans  <wim@fluendo.com>
984
985         * docs/gst/gstreamer-sections.txt:
986         * gst/gstclock.c:
987         * gst/gstclock.h:
988         Documented the clocks.
989
990 2005-10-28  Stefan Kost  <ensonic@users.sf.net>
991
992         * docs/gst/gstreamer-sections.txt:
993           move some macros to private sections
994         * gst/gstminiobject.c:
995         * gst/gstminiobject.h:
996           add descriptions provided by ds and some more
997         * gst/gstpad.h:
998           mark macro as to be removed
999
1000 2005-10-28  Wim Taymans  <wim@fluendo.com>
1001
1002         * docs/design/part-TODO.txt:
1003         Add an item to TODO.
1004
1005         * gst/gstiterator.c: (gst_iterator_fold),
1006         (gst_iterator_find_custom):
1007         * gst/gstiterator.h:
1008         Add iterator docs.
1009
1010 2005-10-28  Wim Taymans  <wim@fluendo.com>
1011
1012         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
1013         (gst_base_transform_init):
1014         Don't leak class.
1015
1016         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_loop):
1017         An EOS event marks the queue as completely filled.
1018
1019 2005-10-27  Wim Taymans  <wim@fluendo.com>
1020
1021         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
1022         (gst_base_sink_do_sync), (gst_base_sink_get_position):
1023         Some more debugging.
1024
1025         * gst/base/gstbasetransform.c: (gst_base_transform_finalize),
1026         (gst_base_transform_init), (gst_base_transform_buffer_alloc),
1027         (gst_base_transform_event), (gst_base_transform_getrange),
1028         (gst_base_transform_chain):
1029         * gst/base/gstbasetransform.h:
1030         Fix debugging,
1031         Protect transform and concurrent buffer alloc with a new lock.
1032         Try not to break ABI/API.
1033
1034 2005-10-27  Wim Taymans  <wim@fluendo.com>
1035
1036         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
1037         (gst_base_src_init), (gst_base_src_query),
1038         (gst_base_src_default_newsegment),
1039         (gst_base_src_configure_segment), (gst_base_src_do_seek),
1040         (gst_base_src_send_event), (gst_base_src_event_handler),
1041         (gst_base_src_pad_get_range), (gst_base_src_loop),
1042         (gst_base_src_unlock), (gst_base_src_default_negotiate),
1043         (gst_base_src_start), (gst_base_src_deactivate),
1044         (gst_base_src_activate_push), (gst_base_src_change_state):
1045         Move some stuff around and cleanup things.
1046
1047 2005-10-27  Tim-Philipp Müller  <tim at centricular dot net>
1048
1049         * gst/base/gstbasesrc.c: (gst_base_src_query):
1050           Add missing break statements.
1051
1052 2005-10-27  Wim Taymans  <wim@fluendo.com>
1053
1054         * check/gst/gstbin.c: (GST_START_TEST):
1055         An extra refcount is taken in basesrc.
1056
1057         * gst/base/gstbasesrc.c: (gst_base_src_init), (gst_base_src_query),
1058         (gst_base_src_get_range), (gst_base_src_pad_get_range),
1059         (gst_base_src_loop):
1060         Small cleanups, check for flushing after being unlocked from the 
1061         LIVE_LOCK. take refcounts correctly (not yet everywhere).
1062         Don't send out EOS when going to READY.
1063
1064 2005-10-27  Wim Taymans  <wim@fluendo.com>
1065
1066         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
1067         (gst_base_sink_get_position):
1068         Some more debug.
1069
1070         * gst/gstbin.c: (message_check), (bin_replace_message),
1071         (bin_remove_messages), (is_eos), (gst_bin_add_func),
1072         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
1073         (bin_query_duration_init), (bin_query_duration_fold),
1074         (bin_query_duration_done), (bin_query_generic_fold),
1075         (gst_bin_query):
1076         * tools/gst-launch.c: (main):
1077         Remove old option.
1078
1079 2005-10-26  Stefan Kost  <ensonic@users.sf.net>
1080
1081         * examples/controller/audio-example.c: (main):
1082         * examples/queue/queue.c: (event_loop):
1083         * gst/base/gstbasetransform.h:
1084         * gst/gstelement.c: (gst_element_send_event):
1085         * gst/gstevent.h:
1086         * gst/gstpad.c: (gst_pad_send_event):
1087           fixing examples
1088           fixing docs typos
1089           changing log priority in error situations
1090
1091 2005-10-25  Wim Taymans  <wim@fluendo.com>
1092
1093         * gst/gstbin.c: (message_check), (bin_replace_message),
1094         (bin_remove_messages), (is_eos), (gst_bin_add_func),
1095         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
1096         (bin_query_duration_init), (bin_query_duration_fold),
1097         (bin_query_duration_done), (bin_query_generic_fold),
1098         (gst_bin_query):
1099         Some doc and debug updates.
1100         Cache previously requested query DURATION for speed. invalidate
1101         cached duration if element posts a DURATION message.
1102
1103 2005-10-25  Wim Taymans  <wim@fluendo.com>
1104
1105         * docs/design/part-TODO.txt:
1106         Update TODO.
1107
1108         * gst/gstbin.c: (message_check), (bin_replace_message),
1109         (bin_remove_messages), (is_eos), (gst_bin_add_func),
1110         (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
1111         (bin_query_duration_init), (bin_query_duration_fold),
1112         (bin_query_duration_done), (bin_query_generic_fold),
1113         (gst_bin_query):
1114         Handle SEGMENT_START/DONE messages correctly.
1115         More evolved query algorithm that handles duration queries
1116         correctly.
1117
1118         * gst/gstelement.c: (gst_element_send_event), (gst_element_query),
1119         (gst_element_get_state_func), (gst_element_abort_state),
1120         (gst_element_commit_state), (gst_element_lost_state):
1121         Some more debugging.
1122
1123         * gst/gstmessage.h:
1124         Added doc.
1125
1126 2005-10-25  Wim Taymans  <wim@fluendo.com>
1127
1128         * gst/base/gstbasesink.c: (gst_base_sink_get_position):
1129         Don't use invalid stream_time.
1130
1131         * gst/gstevent.c: (gst_event_new_newsegment):
1132         stream_time in newsegment cannot be undefined.
1133
1134 2005-10-24  Wim Taymans  <wim@fluendo.com>
1135
1136         * gst/gstbus.c:
1137         Doc fix.
1138
1139         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
1140         (gst_queue_loop):
1141         Fix potential deadlock when QUEUE_LOCK is taken before STREAM_LOCK.
1142
1143 2005-10-24  Stefan Kost  <ensonic@users.sf.net>
1144
1145         * docs/libs/tmpl/gstdparam.sgml:
1146         * docs/libs/tmpl/gstdplinint.sgml:
1147         * docs/libs/tmpl/gstdpman.sgml:
1148         * docs/libs/tmpl/gstdpsmooth.sgml:
1149         * docs/libs/tmpl/gstunitconvert.sgml:
1150           these are obsolete
1151
1152 2005-10-24  Thomas Vander Stichele  <thomas at apestaart dot org>
1153
1154         * configure.ac:
1155           back to HEAD
1156
1157 === release 0.9.4 ===
1158
1159 2005-10-23  Thomas Vander Stichele  <thomas at apestaart dot org>
1160
1161         * configure.ac:
1162           releasing 0.9.4, "Tyrannosaurus Rex"
1163
1164 2005-10-23  Tim-Philipp Müller  <tim at centricular dot net>
1165
1166         * gst/elements/gstfilesink.c: (gst_file_sink_do_seek),
1167         (gst_file_sink_get_current_offset):
1168           Use fseeko() and ftello() if available. When falling back on
1169           lseek() to get the current offset, fflush() first to make sure
1170           everything is up-to-date and we get the right offset.
1171
1172 2005-10-23  Thomas Vander Stichele  <thomas at apestaart dot org>
1173
1174         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
1175         * gst/base/gstbasesrc.c: (gst_base_src_loop):
1176         * gst/gsterror.c: (_gst_stream_errors_init):
1177         * gst/gsterror.h:
1178         * gst/gstqueue.c: (gst_queue_loop):
1179         * po/POTFILES.in:
1180           remove prematurely added error category and clean up the instances
1181
1182 2005-10-21  Wim Taymans  <wim@fluendo.com>
1183
1184         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1185         (gst_base_sink_get_position), (gst_base_sink_query),
1186         (gst_base_sink_change_state):
1187         Simply set the right flag when going to playing, that's all
1188         we need to do instead of calling a function inside the object
1189         lock (that could take the lock as well and deadlock)
1190
1191 2005-10-21  Wim Taymans  <wim@fluendo.com>
1192
1193         * gst/base/gstbasesrc.c: (gst_base_src_do_seek),
1194         (gst_base_src_loop):
1195         Don't warn, the peer element knows what to do best when
1196         the seek failed, it might try something else.
1197
1198 2005-10-21  Wim Taymans  <wim@fluendo.com>
1199
1200         * gst/base/gstbasesrc.c: (gst_base_src_init),
1201         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start):
1202         Fix seeking.
1203
1204 2005-10-21  Wim Taymans  <wim@fluendo.com>
1205
1206         * docs/design/part-segments.txt:
1207         More docs.
1208
1209         * gst/elements/gstcapsfilter.c: (gst_capsfilter_prepare_buf):
1210         Correctly set caps, even on the subbufer.
1211
1212 2005-10-21  Wim Taymans  <wim@fluendo.com>
1213
1214         * docs/gst/gstreamer-docs.sgml:
1215         * docs/gst/gstreamer-sections.txt:
1216         * gst/gstelement.h:
1217         * gst/gstevent.c:
1218         * gst/gstevent.h:
1219         * gst/gstmessage.h:
1220         * gst/gstpad.h:
1221         * gst/gstparse.h:
1222         * gst/gsttask.c: (gst_task_finalize), (gst_task_func):
1223         * gst/gsttask.h:
1224         * gst/gstutils.c:
1225         * gst/gstutils.h:
1226         And 2% more doc coverage.
1227
1228 2005-10-21  Andy Wingo  <wingo@pobox.com>
1229
1230         * gst/base/gstbasesrc.c (gst_base_src_query): Clean up percent
1231         position reporting.
1232
1233 2005-10-20  Wim Taymans  <wim@fluendo.com>
1234
1235         * gst/gsterror.c: (gst_error_get_message):
1236         * gst/gstparse.h:
1237         * gst/gstquery.h:
1238         * gst/gststructure.c:
1239         * gst/gsttrace.c:
1240         * gst/gstutils.c:
1241         More docs.
1242
1243 2005-10-20  Wim Taymans  <wim@fluendo.com>
1244
1245         * gst/gstbuffer.h:
1246         * gst/gstpad.c:
1247         * gst/gstparse.c:
1248         Another 1% more coverage.
1249
1250 2005-10-20  Wim Taymans  <wim@fluendo.com>
1251
1252         * docs/gst/gstreamer-sections.txt:
1253         * gst/gstelement.c: (gst_element_get_state_func),
1254         (gst_element_abort_state), (gst_element_commit_state),
1255         (gst_element_lost_state):
1256         * gst/gstevent.h:
1257         * gst/gstquery.c: (gst_query_set_position),
1258         (gst_query_parse_position), (gst_query_set_duration),
1259         (gst_query_parse_duration), (gst_query_new_convert):
1260         * gst/gstutils.c:
1261         Yay! 1% more docs coverage.
1262
1263 2005-10-20  Wim Taymans  <wim@fluendo.com>
1264
1265         * gst/gstpad.h:
1266         * gst/gstquery.c: (gst_query_set_position),
1267         (gst_query_parse_position), (gst_query_set_duration),
1268         (gst_query_parse_duration), (gst_query_new_convert):
1269         * gst/gstquery.h:
1270         * gst/gstutils.c: (gst_element_query_convert):
1271         * gst/gstutils.h:
1272         Docs and consistency fixes.
1273
1274 2005-10-20  Wim Taymans  <wim@fluendo.com>
1275
1276         * gst/gsttask.c:
1277         * gst/gsttask.h:
1278         More docs.
1279
1280 2005-10-20  Wim Taymans  <wim@fluendo.com>
1281
1282         * gst/gstbin.c: (message_check), (bin_replace_message),
1283         (bin_remove_messages), (is_eos), (gst_bin_add_func),
1284         (update_degree), (gst_bin_sort_iterator_next),
1285         (gst_bin_change_state_func), (gst_bin_dispose), (bin_bus_handler):
1286         Reworked the message handling a bit, cache the messages instead of
1287         only the senders. alows us to do more in the future.
1288
1289 2005-10-20  Wim Taymans  <wim@fluendo.com>
1290
1291         * docs/design/part-TODO.txt:
1292         Update TODO
1293
1294         * gst/base/gstbasesink.c: (gst_base_sink_get_position),
1295         (gst_base_sink_query):
1296         Don't use clock time to report position when in EOS.
1297
1298 2005-10-20  Tim-Philipp Müller  <tim at centricular dot net>
1299
1300         * tools/gst-inspect.c: (print_interfaces),
1301         (print_element_properties_info), (print_element_info):
1302           Fix interface output with gst-inspect -a; don't print
1303           newlines after double/float properties.
1304
1305 2005-10-20  Wim Taymans  <wim@fluendo.com>
1306
1307         * gst/base/gstbasesink.c: (gst_base_sink_get_position),
1308         (gst_base_sink_query):
1309         Speed up current position calculation.
1310
1311         * gst/base/gstbasesrc.c: (gst_base_src_query),
1312         (gst_base_src_default_newsegment):
1313         Correctly set stream position in newsegment.
1314
1315         * gst/gstbin.c: (gst_bin_add_func), (add_to_queue),
1316         (update_degree), (gst_bin_sort_iterator_next),
1317         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free):
1318         * gst/gstmessage.c: (gst_message_new_custom):
1319         Clean up debugging info
1320
1321         * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
1322         (gst_queue_loop), (gst_queue_handle_src_query):
1323         Pause task faster.
1324
1325 2005-10-19  Wim Taymans  <wim@fluendo.com>
1326
1327         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1328         (gst_base_sink_handle_object), (gst_base_sink_query), (do_playing):
1329         Fix query handling again.
1330
1331 2005-10-19  Wim Taymans  <wim@fluendo.com>
1332
1333         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1334         (gst_base_sink_handle_object), (gst_base_sink_query), (do_playing):
1335         * gst/base/gstbasesrc.c: (gst_base_src_query):
1336         * gst/elements/gstfilesink.c: (gst_file_sink_query):
1337         * gst/elements/gsttypefindelement.c:
1338         (gst_type_find_handle_src_query), (find_element_get_length),
1339         (gst_type_find_element_activate):
1340         API change fix.
1341
1342         * gst/gstquery.c: (gst_query_new_position),
1343         (gst_query_set_position), (gst_query_parse_position),
1344         (gst_query_new_duration), (gst_query_set_duration),
1345         (gst_query_parse_duration), (gst_query_set_segment),
1346         (gst_query_parse_segment):
1347         * gst/gstquery.h:
1348         Bundling query position/duration is not a good idea since duration
1349         does not change much and we don't want to recalculate it for every
1350         position query, so they are separated again..
1351         Base value in segment query is not needed.
1352
1353         * gst/gstqueue.c: (gst_queue_handle_src_query):
1354         * gst/gstutils.c: (gst_element_query_position),
1355         (gst_element_query_duration), (gst_pad_query_position),
1356         (gst_pad_query_duration):
1357         * gst/gstutils.h:
1358         Updates for query API change.
1359         Added some docs here and there.
1360
1361 2005-10-19  Thomas Vander Stichele  <thomas at apestaart dot org>
1362
1363         * check/gst/gstbin.c: (GST_START_TEST):
1364         * check/gst/gstghostpad.c: (GST_START_TEST):
1365         * check/pipelines/cleanup.c: (GST_START_TEST):
1366           wait on thread to die so we can check refcount correctly
1367
1368 2005-10-18  Wim Taymans  <wim@fluendo.com>
1369
1370         * check/pipelines/stress.c: (GST_START_TEST):
1371         Make check a little more time consuming.
1372
1373 2005-10-18  Wim Taymans  <wim@fluendo.com>
1374
1375         * check/Makefile.am:
1376         * check/pipelines/stress.c: (GST_START_TEST),
1377         (simple_launch_lines_suite), (main):
1378         Small state change torture test.
1379
1380         * docs/design/part-states.txt:
1381         * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
1382         (gst_base_sink_handle_object), (gst_base_sink_event), (do_playing),
1383         (gst_base_sink_change_state):
1384         Never take state lock from streaming thread, clean up ugly
1385         hacks. Unfortunatly core does not yet support nice ways to
1386         async commit state.
1387         
1388         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_recalc_state),
1389         (bin_bus_handler):
1390         Start state recalc if a STATE_DIRTY message is posted, but only
1391         on the toplevel bin.
1392
1393         * gst/gstelement.c: (gst_element_sync_state_with_parent),
1394         (gst_element_get_state_func), (gst_element_abort_state),
1395         (gst_element_commit_state), (gst_element_lost_state),
1396         (gst_element_set_state_func), (gst_element_change_state):
1397         * gst/gstelement.h:
1398         State variables are now protected with the LOCK, the state
1399         lock is only used to serialize _set_state().
1400
1401 2005-10-18  Wim Taymans  <wim@fluendo.com>
1402
1403         * check/gst/gstbin.c: (GST_START_TEST):
1404         * check/gst/gstmessage.c: (GST_START_TEST):
1405         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
1406         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_recalc_func),
1407         (bin_bus_handler):
1408         * gst/gstelement.c: (gst_element_abort_state),
1409         (gst_element_commit_state), (gst_element_lost_state):
1410         * gst/gstmessage.c: (gst_message_new_state_changed),
1411         (gst_message_new_state_dirty), (gst_message_new_segment_start),
1412         (gst_message_new_segment_done), (gst_message_new_duration),
1413         (gst_message_parse_state_changed),
1414         (gst_message_parse_segment_start),
1415         (gst_message_parse_segment_done), (gst_message_parse_duration):
1416         * gst/gstmessage.h:
1417         * tools/gst-launch.c: (event_loop):
1418         Seriously, this is better than a previous commit as we only need
1419         to notify the fact that an element changed state in a streaming
1420         thread, marking the state of the parents dirty, hence the 
1421         STATE_DIRTY message instead of abusing a boolean in a STATE_CHANGE
1422         message.
1423
1424 2005-10-18  Wim Taymans  <wim@fluendo.com>
1425
1426         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_get_state_func),
1427         (gst_bin_recalc_func):
1428         * gst/gstelement.c: (gst_element_set_clock),
1429         (gst_element_abort_state), (gst_element_lost_state):
1430         Cleanups, prepare for state change fixes.
1431
1432 2005-10-18  Wim Taymans  <wim@fluendo.com>
1433
1434         * gst/gstbin.h:
1435         * gst/gstelement.c: (gst_element_class_init),
1436         (gst_element_set_state), (gst_element_set_state_func):
1437         * gst/gstelement.h:
1438         Pending ABI changes.
1439         GThreadPool in GstBinClass to monitor async state changes.
1440         state_cookie in GstElement to detect concurrent gst/set state.
1441         set_state is now virtual too in case a very complicated element
1442         has to be constructed.
1443
1444 2005-10-18  Wim Taymans  <wim@fluendo.com>
1445
1446         * check/gst/gstbin.c: (GST_START_TEST):
1447         * check/gst/gstmessage.c: (GST_START_TEST):
1448         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
1449         * gst/gstbin.c: (bin_bus_handler):
1450         * gst/gstelement.c: (gst_element_commit_state),
1451         (gst_element_lost_state):
1452         * gst/gstmessage.c: (gst_message_new_state_changed),
1453         (gst_message_new_segment_start), (gst_message_new_segment_done),
1454         (gst_message_new_duration), (gst_message_parse_state_changed),
1455         (gst_message_parse_segment_start),
1456         (gst_message_parse_segment_done), (gst_message_parse_duration):
1457         * gst/gstmessage.h:
1458         * tools/gst-launch.c: (event_loop):
1459         Make messages future proof.
1460         state-change gets a flag if it was a message comming from the
1461         streaming thread.
1462         segment-start/stop can also be specified in other formats.
1463         A message to notify an app that a pipeline changed playback 
1464         duration.
1465         Also fix a GstMessage leak in -launch
1466
1467 2005-10-18  Andy Wingo  <wingo@pobox.com>
1468
1469         * gst/gstelement.c (gst_element_dispose): More helpful message.
1470
1471 2005-10-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1472
1473         reviewed by: <delete if not using a buddy>
1474
1475         * common/gtk-doc.mak:
1476
1477 2005-10-18  Thomas Vander Stichele  <thomas at apestaart dot org>
1478
1479         * gst/gstregistry.c: (gst_registry_scan_path_level):
1480           unref a plug-in we get that was already initialized
1481
1482 2005-10-18  Stefan Kost  <ensonic@users.sf.net>
1483
1484         * docs/gst/gstreamer-sections.txt:
1485         * docs/libs/gstreamer-libs-sections.txt:
1486         * gst/gstelement.h:
1487           add new api entries
1488           hide internal macro
1489
1490 2005-10-17  Andy Wingo  <wingo@pobox.com>
1491
1492         * gst/base/gstcollectpads.c (gst_collectpads_chain): Slight
1493         cleanup.
1494
1495         * gst/Makefile.am (gstenumtypes.c): Threadsafe now.
1496
1497         * gst/gstevent.c (gst_event_new, gst_event_finalize): LOG.
1498
1499         * gst/gstelement.c (gst_element_get_state_func): s/INFO/DEBUG/.
1500         (gst_element_get_state_func): Better debug message.
1501         (gst_element_commit_state): s/INFO/DEBUG/.
1502         (gst_element_lost_state, gst_element_change_state): 
1503
1504         * gst/gstmessage.c (gst_message_init): s/INFO/LOG/.
1505         (gst_message_new_custom): s/INFO/LOG/.
1506
1507 2005-10-17  Michael Smith <msmith@fluendo.com>
1508
1509         * gst/base/gstbasesink.c: (gst_base_sink_do_sync):
1510           Check if end time is valid using end time, not start time.
1511
1512 2005-10-17  Stefan Kost  <ensonic@users.sf.net>
1513
1514         * check/gst-libs/controller.c: (GST_START_TEST),
1515         (gst_controller_suite):
1516         * libs/gst/controller/gstcontroller.c:
1517         (gst_controlled_property_set_interpolation_mode):
1518         * libs/gst/controller/gstcontroller.h:
1519         * libs/gst/controller/gstinterpolation.c:
1520         * testsuite/controller/.cvsignore:
1521         * testsuite/controller/Makefile.am:
1522         * testsuite/controller/interpolator.c:
1523           merge controller testsuites
1524           fix broken tests
1525           remove mem-chunk from docs
1526
1527 2005-10-17  Thomas Vander Stichele  <thomas at apestaart dot org>
1528
1529         * gst/gstmemchunk.c:
1530         * gst/gstmemchunk.h:
1531         * gst/gsttrashstack.c:
1532         * gst/gsttrashstack.h:
1533           out.  get out.  you're fired.  to the Attic !
1534
1535 2005-10-17  Thomas Vander Stichele  <thomas at apestaart dot org>
1536
1537         * gst/gstcaps.c: (gst_caps_intersect):
1538           fix signedness issues in a (hopefully) correct way
1539         * gst/gstelement.c: (gst_element_pads_activate):
1540           some debugging
1541         * gst/gstobject.c: (gst_object_set_parent):
1542           some debugging
1543
1544 2005-10-17  Julien MOUTTE  <julien@moutte.net>
1545
1546         * gst/gstvalue.h: Fix prototypes.
1547
1548 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1549
1550         * docs/gst/gstreamer-sections.txt:
1551         * gst/gst.c: (gst_version_string):
1552         * gst/gst.h:
1553         * gst/gstversion.h.in:
1554         * win32/common/libgstreamer.def:
1555           add gst_version_string ()
1556
1557 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1558
1559         * configure.ac:
1560           clean up further
1561         * gst/gst.c: (init_post):
1562         * win32/common/config.h.in:
1563           it's PLUGINDIR now
1564         * gst/gstcaps.c: (gst_caps_intersect):
1565           use gint64, the range could be bigger than a guint
1566
1567 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1568
1569         * gst/gstclock.h:
1570           document potential problem in 2038
1571
1572 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1573
1574         * gst/gstcaps.c: (gst_caps_intersect):
1575           Fix guint j diving under 0
1576
1577 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1578
1579         * configure.ac:
1580         * win32/common/config.h:
1581         * win32/common/config.h.in:
1582           check for process.h, declares getpid() on Windows
1583         * gst/gstinfo.c:
1584           include process.h if we have it
1585         * gst/gstmemchunk.c: (populate), (gst_mem_chunk_new):
1586         * gst/gstmemchunk.h:
1587           fix signedness issues
1588         * win32/common/libgstreamer.def:
1589           fix get_type's
1590
1591 2005-10-16  Julien MOUTTE  <julien@moutte.net>
1592
1593         * gst/gstcaps.c: (gst_caps_intersect): Fix a bad bug with a simple
1594         fix. Because of unsigned ints, caps intersection was going nuts and
1595         trying to access structures with G_MAXUINT index. That fixes
1596         videotestsrc ! ffmpegcolorspace ! fakesink
1597         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked): logs
1598         consistency.
1599
1600 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1601
1602         * configure.ac:
1603           use the gettext macro
1604         * gst/elements/gstelements.c:
1605         * gst/gst.c:
1606         * gst/indexers/gstindexers.c:
1607           update for GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN
1608         * win32/common/config.h:
1609           updated config.h
1610         * win32/common/config.h.in:
1611           add the template to generate config.h
1612         * win32/common/gstenumtypes.c:
1613         * win32/common/gstversion.h:
1614           updated copies
1615
1616 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
1617
1618         * gst/gst.c: (gst_version):
1619         * gst/gstversion.h.in:
1620           add the nano
1621
1622 2005-10-15  Tim-Philipp Müller  <tim at centricular dot net>
1623
1624         * gst/gstevent.h:
1625           Oops, add missing closing bracket.
1626
1627 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1628
1629         * configure.ac:
1630           use common m4's for argument checking
1631
1632 2005-10-15  Tim-Philipp Müller  <tim at centricular dot net>
1633
1634         * docs/gst/gstreamer-sections.txt:
1635         * gst/gstevent.h:
1636           Add GST_EVENT_TYPE_NAME() macro.
1637
1638 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1639
1640         * gst/gstinfo.c:
1641         * gst/gstpluginfeature.c:
1642         * gst/gsttask.c:
1643           privatize more symbols
1644
1645 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1646
1647         * configure.ac:
1648           add srcdir, builddir includes to GST_ALL_CFLAGS, since
1649           everything that uses GStreamer API should have the includes
1650
1651 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1652
1653         * docs/gst/gstreamer-sections.txt:
1654         * gst/gstvalue.c: (gst_date_get_type), (_gst_value_initialize):
1655         * gst/gstvalue.h:
1656           give each value a _get_type, removes the DATA exports
1657
1658 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1659
1660         * gst/gst.c:
1661         * gst/gst.h:
1662           remove _gst_registry_auto_load, not used anymore
1663         * gst/gstbin.c: (gst_bin_get_type):
1664         * gst/gstbin.h:
1665         * gst/gstelement.c: (gst_element_get_type):
1666         * gst/gstelement.h:
1667         * gst/gstobject.c: (gst_object_get_type):
1668         * gst/gstobject.h:
1669         * gst/gstpad.c: (gst_pad_get_type):
1670         * gst/gstpad.h:
1671           make _get_type functions similar, fixes data export from library
1672
1673 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1674
1675         * configure.ac:
1676           correctly make conditionals
1677         * gst/elements/Makefile.am:
1678         * gst/elements/gstelements.c:
1679           fix typo causing fdsrc not to build
1680
1681 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1682
1683         * testsuite/Makefile.am:
1684         * testsuite/bytestream/.cvsignore:
1685         * testsuite/bytestream/Makefile.am:
1686         * testsuite/bytestream/filepadsink.c:
1687         * testsuite/bytestream/gstbstest.c:
1688         * testsuite/bytestream/test1.c:
1689         * testsuite/bytestream/testfile1:
1690         * testsuite/caps/normalisation.c:
1691         * testsuite/caps/random.c: (main):
1692         * testsuite/cleanup/.cvsignore:
1693         * testsuite/cleanup/Makefile.am:
1694         * testsuite/cleanup/cleanup1.c:
1695         * testsuite/cleanup/cleanup2.c:
1696         * testsuite/cleanup/cleanup3.c:
1697         * testsuite/cleanup/cleanup4.c:
1698         * testsuite/cleanup/cleanup5.c:
1699         * testsuite/controller/interpolator.c:
1700         * testsuite/debug/printf_extension.c: (main):
1701         * testsuite/elements/tee.c:
1702         * testsuite/negotiation/.cvsignore:
1703         * testsuite/negotiation/Makefile.am:
1704         * testsuite/negotiation/pad_link.c:
1705         * testsuite/pad/Makefile.am:
1706         * testsuite/pad/chainnopull.c:
1707         * testsuite/pad/getnopush.c:
1708         * testsuite/pad/link.c:
1709         * testsuite/refcounting/sched.c: (create_pipeline):
1710         * testsuite/registry/Makefile.am:
1711         * testsuite/registry/gst-print-formats.c:
1712         * testsuite/schedulers/.cvsignore:
1713         * testsuite/schedulers/142183-2.c:
1714         * testsuite/schedulers/142183.c:
1715         * testsuite/schedulers/143777-2.c:
1716         * testsuite/schedulers/143777.c:
1717         * testsuite/schedulers/147713.c:
1718         * testsuite/schedulers/147819.c:
1719         * testsuite/schedulers/147894-2.c:
1720         * testsuite/schedulers/147894.c:
1721         * testsuite/schedulers/Makefile.am:
1722         * testsuite/schedulers/group_link.c:
1723         * testsuite/schedulers/queue_link.c:
1724         * testsuite/schedulers/relink.c:
1725         * testsuite/schedulers/unlink.c:
1726         * testsuite/schedulers/unref.c:
1727         * testsuite/schedulers/useless_iteration.c:
1728         * testsuite/states/bin.c:
1729           clean out/remove some stuff from the testsuite directories
1730
1731 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1732
1733         * configure.ac:
1734           check for some headers
1735         * gst/elements/Makefile.am:
1736         * gst/elements/gstelements.c:
1737           don't compile fdsrc without sys/socket.h
1738         * gst/indexers/Makefile.am:
1739         * gst/indexers/gstindexers.c: (plugin_init):
1740           don't compile fileindex without mmap
1741
1742 2005-10-15  Thomas Vander Stichele  <thomas at apestaart dot org>
1743
1744         * configure.ac:
1745           reorganize
1746           clean up
1747           document more
1748           remove cruft
1749         * check/Makefile.am:
1750         * docs/gst/Makefile.am:
1751         * examples/helloworld/Makefile.am:
1752         * gst/Makefile.am:
1753         * gst/base/Makefile.am:
1754         * gst/check/Makefile.am:
1755         * gst/elements/Makefile.am:
1756         * gst/indexers/Makefile.am:
1757         * gst/parse/Makefile.am:
1758         * libs/gst/controller/Makefile.am:
1759         * libs/gst/dataprotocol/Makefile.am:
1760         * examples/helloworld/helloworld.c: (event_loop):
1761           compile fixes, though it's not being compiled currently
1762
1763 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
1764
1765         * check/gst/gsttag.c: (test_date_tags), (gst_tag_suite):
1766           Add some simple tests for the new taglist date API.
1767
1768 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
1769
1770         * gst/elements/gstfakesink.c: (gst_fake_sink_render):
1771         * gst/elements/gstfakesrc.c: (gst_fake_src_create):
1772           Beautify 'last-message' output: print 'none' for buffer timestamps
1773           and durations if none is set; improve alignment with next messages.
1774
1775 2005-10-14  Tim-Philipp Müller  <tim at centricular dot net>
1776
1777         * gst/gstpluginfeature.c: (gst_plugin_feature_check_version):
1778         * gst/gstpluginfeature.h:
1779         * gst/gstregistry.c: (gst_default_registry_check_feature_version):
1780         * gst/gstregistry.h:
1781         * docs/gst/gstreamer-sections.txt:
1782           Add new API to check plugin feature version requirements.
1783
1784         * check/gst/gstplugin.c: (test_version_checks), (gst_plugin_suite):
1785           Some basic tests for the above.         
1786
1787 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1788
1789         * gst/gststructure.c: (gst_structure_to_string):
1790           guard against NULL printf - happens when for example
1791           a message structure with GstClock gets serialized
1792
1793 2005-10-13  Tim-Philipp Müller  <tim at centricular dot net>
1794
1795         * gst/base/gstcollectpads.c: (gst_collectpads_event):
1796           Fix presumable copy'n'pasto.
1797
1798 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1799
1800         * gst/elements/gstfakesrc.h:
1801         * gst/elements/gstfilesrc.c: (gst_file_src_create_read):
1802         * gst/elements/gsttypefindelement.c:
1803           fix some signedness
1804         * gst/elements/gstfilesink.c: (gst_file_sink_render):
1805           I wonder if this could actually write +2GB files before
1806
1807 2005-10-13  Andy Wingo  <wingo@pobox.com>
1808
1809         * libs/gst/dataprotocol/dataprotocol.c (gst_dp_packet_from_caps):
1810         Fix Timmeke Waymans bug.
1811         (gst_dp_caps_from_packet): Make sure we pass a NUL-terminated
1812         string of the proper length to gst_caps_from_string. There's a
1813         potential for, before this fix, that this could cause someone
1814         connecting over the network to cause a segfault if the payload is
1815         not NUL-terminated.
1816
1817 2005-10-13  Stefan Kost  <ensonic@users.sf.net>
1818
1819         * docs/design/draft-push-pull.txt:
1820         * docs/design/part-overview.txt:
1821         * docs/random/TODO-pre-0.9:
1822         * docs/random/old/ChangeLog.gstreamer:
1823         * gst/base/gstpushsrc.c:
1824         * gst/gstclock.c:
1825           fixed typos
1826
1827 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1828
1829         * gst/glib-compat.c: (gst_flags_get_first_value):
1830         * gst/glib-compat.h:
1831         * gst/gstvalue.c: (gst_value_deserialize_int_helper),
1832         (gst_value_compare_double), (gst_value_serialize_flags):
1833           GLib 2.6 g_flags_get_first_value has a bug that triggers an
1834           infinite loop
1835
1836 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1837
1838         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
1839         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
1840           fix up debugging
1841         * tools/gst-launch.c: (event_loop):
1842           print out clock nicely
1843
1844 2005-10-13  Tim-Philipp Müller  <tim at centricular dot net>
1845
1846         * docs/gst/gstreamer-sections.txt:
1847         * gst/gsttaglist.h:
1848         * gst/gsttaglist.c: (_gst_tag_initialize), (gst_tag_list_get_date),
1849         (gst_tag_list_get_date_index):
1850           Added gst_tag_list_get_date() and gst_tag_list_get_date_index().
1851           GST_TAG_DATE now has a tag type of GST_TYPE_DATE (#170777).
1852
1853 2005-10-13  Julien MOUTTE  <julien@moutte.net>
1854
1855         * gst/base/gstcollectpads.c: (gst_collectpads_event),
1856         (gst_collectpads_chain):
1857         * gst/base/gstcollectpads.h: Handle newsegment and store informations
1858         in CollectData.
1859
1860 2005-10-13  Stefan Kost  <ensonic@users.sf.net>
1861
1862         * docs/gst/gstreamer-sections.txt:
1863         * gst/gst.c:
1864         * gst/gsterror.h:
1865         * tools/gst-inspect.c: (main):
1866         * tools/gst-launch.c: (main):
1867         * tools/gst-run.c: (main):
1868         * tools/gst-xmlinspect.c: (main):
1869           fix GOption context leaks
1870           doc fixes
1871
1872 2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>
1873
1874         * gst/gstbus.c:
1875           use HAVE_UNISTD_H
1876         * win32/common/config.h:
1877           update config
1878         * win32/vs6/grammar.dsp:
1879         * win32/vs6/libgstelements.dsp:
1880         * win32/vs6/libgstreamer.dsp:
1881           update vs6 files
1882
1883 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1884
1885         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
1886         * gst/base/gstbasesrc.c: (gst_base_src_query):
1887           fix more guint64<->gdouble conversions
1888
1889 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1890
1891         * Makefile.am:
1892           add win32-update target
1893         * win32/common/gstconfig.h:
1894         * win32/common/gstenumtypes.c:
1895         * win32/common/gstenumtypes.h:
1896         * win32/common/gstversion.h:
1897           add files that visual studio can't generate
1898
1899 2005-10-12  Thomas Vander Stichele  <thomas at apestaart dot org>
1900
1901         * Makefile.am:
1902           add a win32-update target
1903         * configure.ac:
1904
1905 2005-10-12  Wim Taymans  <wim@fluendo.com>
1906
1907         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
1908         (reset_degree), (gst_bin_dispose), (bin_bus_handler):
1909         * gst/gstelement.c: (gst_element_commit_state),
1910         (gst_element_set_state):
1911         Protect flags with proper lock.
1912         unref provided cached clock in dispose.
1913
1914 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
1915
1916         * gst/gst.c:
1917         * gst/gstminiobject.h:
1918         * gst/gstpad.h:
1919         * win32/gstenumtypes.c: (gst_mini_object_flags_get_type):
1920           removed unused flags from miniobject
1921           doc fixes
1922
1923 2005-10-12  Wim Taymans  <wim@fluendo.com>
1924
1925         * gst/elements/gstfilesink.c: (gst_file_sink_do_seek),
1926         (gst_file_sink_event), (gst_file_sink_render):
1927         Flush before seeking.
1928
1929 2005-10-12  Andy Wingo  <wingo@pobox.com>
1930
1931         * gst/gst.c (gst_init_check): Ignore unknown options, as has
1932         always been the case.
1933
1934 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
1935
1936         * check/gst/gstbin.c: (GST_START_TEST):
1937         * docs/gst/gstreamer-sections.txt:
1938         * gst/base/gstbasesink.c: (gst_base_sink_init):
1939         * gst/base/gstbasesrc.c: (gst_base_src_init),
1940         (gst_base_src_get_range), (gst_base_src_check_get_range),
1941         (gst_base_src_start), (gst_base_src_stop):
1942         * gst/base/gstbasesrc.h:
1943         * gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
1944         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
1945         (bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
1946         (bin_bus_handler):
1947         * gst/gstbin.h:
1948         * gst/gstbuffer.h:
1949         * gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
1950         * gst/gstbus.h:
1951         * gst/gstelement.c: (gst_element_is_locked_state),
1952         (gst_element_set_locked_state), (gst_element_commit_state),
1953         (gst_element_set_state):
1954         * gst/gstelement.h:
1955         * gst/gstindex.c: (gst_index_init):
1956         * gst/gstindex.h:
1957         * gst/gstminiobject.h:
1958         * gst/gstobject.c: (gst_object_init), (gst_object_sink),
1959         (gst_object_set_parent):
1960         * gst/gstobject.h:
1961         * gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
1962         (gst_pad_get_caps_unlocked), (gst_pad_set_caps):
1963         * gst/gstpad.h:
1964         * gst/gstpadtemplate.h:
1965         * gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
1966         (gst_pipeline_use_clock), (gst_pipeline_auto_clock):
1967         * gst/gstpipeline.h:
1968         * gst/indexers/gstfileindex.c: (gst_file_index_load),
1969         (gst_file_index_commit):
1970         * testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
1971         * testsuite/pad/link.c: (gst_test_src_init),
1972         (gst_test_filter_init), (gst_test_sink_init):
1973         * testsuite/states/locked.c: (main):
1974           renamed GST_FLAGS macros to GST_OBJECT_FLAGS
1975           moved bitshift from macro to enum definition
1976
1977 2005-10-12  Wim Taymans  <wim@fluendo.com>
1978
1979         * gst/base/gstbasesink.c: (gst_base_sink_handle_buffer):
1980         * gst/elements/gstfilesink.c: (gst_file_sink_event),
1981         (gst_file_sink_render):
1982         Some more debugging info.
1983
1984 2005-10-12  Wim Taymans  <wim@fluendo.com>
1985
1986         * docs/design/part-states.txt:
1987         * tools/gst-launch.c: (main):
1988         Some doc updates.
1989         Revert non-intentional change.
1990
1991 2005-10-12  Wim Taymans  <wim@fluendo.com>
1992
1993         * check/gst/gstbin.c: (GST_START_TEST):
1994         * check/gst/gstelement.c: (GST_START_TEST):
1995         * check/gst/gstevent.c: (GST_START_TEST), (test_event):
1996         * check/gst/gstghostpad.c: (GST_START_TEST):
1997         * check/gst/gstpipeline.c: (GST_START_TEST):
1998         * check/pipelines/simple_launch_lines.c: (run_pipeline):
1999         * check/states/sinks.c: (GST_START_TEST):
2000         * gst/elements/gsttypefindelement.c: (stop_typefinding):
2001         * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
2002         (gst_bin_remove_func), (gst_bin_get_state_func),
2003         (gst_bin_recalc_state), (gst_bin_change_state_func),
2004         (bin_bus_handler):
2005         * gst/gstelement.c: (gst_element_get_state_func),
2006         (gst_element_get_state), (gst_element_abort_state),
2007         (gst_element_commit_state), (gst_element_set_state),
2008         (gst_element_change_state), (gst_element_change_state_func):
2009         * gst/gstelement.h:
2010         * gst/gstpipeline.c: (gst_pipeline_class_init), (do_pipeline_seek),
2011         (gst_pipeline_provide_clock_func):
2012         * gst/gstutils.c: (gst_element_link_pads_filtered):
2013         * tools/gst-launch.c: (main):
2014         * tools/gst-typefind.c: (main):
2015         Use GstClockTime in _get_state() instead of GTimeVal.
2016         Remove old code in gstutils.c
2017
2018 2005-10-12  Andy Wingo  <wingo@pobox.com>
2019
2020         * gst/gstregistry.h (gst_registry_scan_paths): Not implemented, so
2021         removed.
2022
2023         * gst/gstpad.c (gst_pad_pause_task): Actually return FALSE if
2024         there is no task. Shouldn't affect any code, as nothing in our
2025         plugins checks this return value.
2026         (gst_pad_stop_task): Also take the stream lock if the pad has no
2027         task. Docs updated.
2028
2029 2005-10-12  Wim Taymans  <wim@fluendo.com>
2030
2031         * gst/gstpad.c: (pre_activate), (post_activate),
2032         (gst_pad_activate_pull), (gst_pad_activate_push):
2033         Cleanup activation code. Reset old state if
2034         activation failed.
2035
2036 2005-10-12  Wim Taymans  <wim@fluendo.com>
2037
2038         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2039         (gst_base_sink_change_state):
2040         No need to prerol after receiving EOS.
2041
2042         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
2043         * gst/elements/gstfakesrc.c: (gst_fake_src_event_handler):
2044         * gst/elements/gstidentity.c: (gst_identity_event):
2045         Print events more verbosely.
2046
2047 2005-10-12  Wim Taymans  <wim@fluendo.com>
2048
2049         * check/Makefile.am:
2050         * check/states/sinks.c: (GST_START_TEST), (gst_object_suite):
2051         * check/states/sinks2.c:
2052         Moved sinks2 testcode in sinks check.
2053
2054         * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
2055         (gst_bin_remove_func), (gst_bin_recalc_state),
2056         (gst_bin_change_state_func), (bin_bus_handler):
2057         Fix potential race condition when _get_state() iterated over an
2058         ASYNC element right before it posted a state completion.
2059
2060         * gst/gstclock.h:
2061         Do proper cast here.
2062
2063         * gst/gstevent.c: (gst_event_new_newsegment),
2064         (gst_event_parse_newsegment):
2065         A playback rate of 0.0 is not allowed.
2066
2067 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2068
2069         * win32/common/config.h:
2070         * win32/common/dirent.c: (_topendir), (_treaddir), (_tclosedir),
2071         (_trewinddir), (_ttelldir), (_tseekdir):
2072         * win32/common/dirent.h:
2073         * win32/common/gtchar.h:
2074         * win32/common/libgstbase.def:
2075         * win32/common/libgstreamer.def:
2076         * win32/vs6/grammar.dsp:
2077         * win32/vs6/gst_inspect.dsp:
2078         * win32/vs6/gst_launch.dsp:
2079         * win32/vs6/gstreamer.dsw:
2080         * win32/vs6/libgstbase.dsp:
2081         * win32/vs6/libgstelements.dsp:
2082         * win32/vs6/libgstreamer.dsp:
2083           Visual Studio 6 project files, and a new common directory.
2084           Phear.
2085
2086 2005-10-11  Wim Taymans  <wim@fluendo.com>
2087
2088         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2089         (gst_base_sink_do_sync), (gst_base_sink_query),
2090         (gst_base_sink_change_state):
2091         * gst/base/gstbasesink.h:
2092         Correctly parse newsegment info.
2093
2094 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2095
2096         * gst/gst.c: (init_post):
2097           split plugin paths correctly
2098
2099 2005-10-11  Wim Taymans  <wim@fluendo.com>
2100
2101         * check/gst/gstevent.c: (GST_START_TEST):
2102         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2103         (gst_base_sink_change_state):
2104         * gst/base/gstbasesrc.c: (gst_base_src_default_newsegment):
2105         * gst/base/gstbasetransform.c: (gst_base_transform_event):
2106         * gst/elements/gstfilesink.c: (gst_file_sink_event):
2107         * gst/gstevent.c: (gst_event_new_newsegment),
2108         (gst_event_parse_newsegment):
2109         * gst/gstevent.h:
2110         Added extra flag to newsegment for future API freeze.
2111         Updated check and base elements.
2112
2113 2005-10-11  Julien MOUTTE  <julien@moutte.net>
2114
2115         * gst/base/gstcollectpads.c: (gst_collectpads_init),
2116         (gst_collectpads_add_pad), (gst_collectpads_pop),
2117         (gst_collectpads_event), (gst_collectpads_chain):
2118         * gst/base/gstcollectpads.h: Handle EOS correctly.
2119
2120 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2121
2122         * tools/gst-launch.c: (main):
2123           more null protecting
2124
2125 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2126
2127         * gst/gst-i18n-lib.h:
2128           check for ENABLE_NLS, not GETTEXT_PACKAGE
2129         * gst/gstregistry.c: (gst_registry_add_plugin),
2130         (gst_registry_scan_path_level),
2131         (_gst_registry_remove_cache_plugins):
2132           protect possibly NULL strings
2133         * gst/parse/types.h:
2134           config.h already included before
2135         * tools/gst-inspect.c: (main):
2136           sys/wait.h also doesn�t exist on mingw, so change the ifdef check
2137           check for ENABLE_NLS, not GETTEXT_PACKAGE
2138         * tools/gst-launch.c: (main):
2139           check for ENABLE_NLS, not GETTEXT_PACKAGE
2140
2141 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2142
2143         * configure.ac:
2144           if we don't have glib, fail before testing 2.8
2145         * gst/base/gstbasetransform.c: (gst_base_transform_change_state):
2146           fix a leak, should fix plugins-base testsuite
2147
2148 2005-10-11  Andy Wingo  <wingo@pobox.com>
2149
2150         * gst/gstpad.c (pre_activate): Renamed from pre_activate_switch,
2151         take the mode we're going to as an arg. Go head and set the mode
2152         and flushing flags now, so that if the activate function starts a
2153         thread all the flags will be in the right state.
2154         (post_activate): Renamed also. Just handle making sure streaming
2155         finishes for the deactivation case, and setting the deactivated
2156         mode.
2157         (gst_pad_set_active): Complain loudly if deactivation fails.
2158         (gst_pad_activate_pull): Adapt to pre/post_activate changes.
2159         (gst_pad_activate_push): Adapt to pre/post_activate changes,
2160         remove the terrible hack.
2161
2162 2005-10-11  Wim Taymans  <wim@fluendo.com>
2163
2164         * gst/gstbin.c: (gst_bin_init), (gst_bin_provide_clock_func),
2165         (is_eos), (gst_bin_add_func), (gst_bin_remove_func),
2166         (gst_bin_recalc_state), (gst_bin_change_state_func),
2167         (gst_bin_dispose), (bin_bus_handler):
2168         * gst/gstbin.h:
2169         Prepare to make current EOS message queue more generic.
2170         Fix some typos.
2171
2172         * gst/gstevent.c: (gst_event_new_newsegment),
2173         (gst_event_parse_newsegment):
2174         * gst/gstevent.h:
2175         Rename base to stream_time.
2176
2177         * gst/gstmessage.h:
2178         Fix typo in docs.
2179
2180 2005-10-11  Wim Taymans  <wim@fluendo.com>
2181
2182         * gst/gstbin.c: (gst_bin_init), (gst_bin_provide_clock_func),
2183         (gst_bin_add_func), (gst_bin_remove_func), (gst_bin_recalc_state),
2184         (gst_bin_change_state_func), (bin_bus_handler):
2185         * gst/gstbin.h:
2186         Work on proper clock selection.
2187
2188 2005-10-11  Edward Hervey  <edward@fluendo.com>
2189
2190         * libs/gst/controller/gstcontroller.c: (gst_controller_remove_properties_list): 
2191         * libs/gst/controller/gstcontroller.h:
2192         Added GList* version of _remove_properties() in order to be able to wrap
2193         it in bindings.
2194
2195 2005-10-11  Wim Taymans  <wim@fluendo.com>
2196
2197         * docs/design/part-states.txt:
2198         Some more docs.
2199
2200         * gst/gstbin.c: (gst_bin_set_clock_func), (gst_bin_recalc_state),
2201         (gst_bin_change_state_func), (bin_bus_handler):
2202         Doc updates. Don't distribute the same clock over and over again.
2203
2204         * gst/gstclock.c:
2205         * gst/gstclock.h:
2206         Doc updates.
2207
2208         * gst/gstpad.c: (gst_flow_get_name), (gst_flow_to_quark),
2209         (gst_pad_get_type), (gst_pad_push), (gst_pad_push_event),
2210         (gst_pad_send_event):
2211         * gst/gstpad.h:
2212         Make probe emission threadsafe again.
2213         Register quarks and move _get_name() from utils.
2214         Doc updates.
2215
2216         * gst/gstpipeline.c: (gst_pipeline_class_init),
2217         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func):
2218         Only redistribute the clock of it changed.
2219
2220         * gst/gstsystemclock.h:
2221         Doc updates. 
2222
2223         * gst/gstutils.c:
2224         * gst/gstutils.h:
2225         Moved the _flow_get_name() to GstPad.
2226
2227 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2228
2229         * check/gst-libs/gdp.c: (GST_START_TEST):
2230         * check/gst/gstcaps.c: (GST_START_TEST):
2231         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc),
2232         (gst_dp_dump_byte_array), (gst_dp_header_from_buffer),
2233         (gst_dp_packet_from_caps):
2234           fix more valgrind warnings before turning up the heat
2235
2236 2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
2237
2238         * gst/parse/grammar.y:
2239           some cleanup before the hacking
2240
2241 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
2242
2243         * gst/base/gstbasesrc.c: (gst_base_src_query):
2244           use conversions
2245         * gst/gstutils.c: (gst_guint64_to_gdouble),
2246         (gst_gdouble_to_guint64), (gst_util_uint64_scale):
2247         * gst/gstutils.h:
2248           externalize, basesrc uses it
2249           obviously the implementation needs testing
2250
2251 2005-10-10  Wim Taymans  <wim@fluendo.com>
2252
2253         * tests/sched/Makefile.am:
2254         * tests/sched/sort.c: (make_pipeline1), (make_pipeline2),
2255         (make_pipeline3), (make_pipeline4), (print_elem), (main):
2256
2257 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
2258
2259         * gst/gstutils.c: (guint64_to_gdouble), (gst_util_uint64_scale):
2260           apparently converting from guint64 to double is not implemented
2261           on MSVC
2262
2263 2005-10-10  Wim Taymans  <wim@fluendo.com>
2264
2265         * check/Makefile.am:
2266         * check/generic/states.c: (GST_START_TEST):
2267         * check/gst/gstbin.c: (GST_START_TEST):
2268         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
2269         * check/states/sinks.c: (GST_START_TEST):
2270         * check/states/sinks2.c: (GST_START_TEST), (gst_object_suite),
2271         (main):
2272         Check fixes, use API as stated in design docs, remove hacks.
2273
2274         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2275         (gst_base_sink_change_state):
2276         Catch stopping our task while we're shutting down.
2277
2278         * gst/gstbin.c: (gst_bin_init), (gst_bin_add_func),
2279         (gst_bin_remove_func), (gst_bin_get_state_func),
2280         (gst_bin_recalc_state), (gst_bin_change_state_func),
2281         (bin_bus_handler):
2282         * gst/gstbin.h:
2283         * gst/gstelement.c: (gst_element_init),
2284         (gst_element_get_state_func), (gst_element_abort_state),
2285         (gst_element_commit_state), (gst_element_lost_state),
2286         (gst_element_set_state), (gst_element_change_state),
2287         (gst_element_change_state_func):
2288         * gst/gstelement.h:
2289         New state change algorithm (see #318116)
2290
2291         * gst/gstpipeline.c: (gst_pipeline_class_init),
2292         (gst_pipeline_init), (gst_pipeline_set_property),
2293         (gst_pipeline_get_property), (do_pipeline_seek),
2294         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func):
2295         * gst/gstpipeline.h:
2296         Remove crude state change hacks.
2297
2298         * gst/gstutils.h:
2299         Remove crude hacks.
2300
2301         * tools/gst-launch.c: (main):
2302         Fixes for state change. Needs some more work to fully use the
2303         new stuff.
2304
2305 2005-10-10  Andy Wingo  <wingo@pobox.com>
2306
2307         * tests/Makefile.am (noinst_PROGRAMS): No more init.c.
2308
2309         * gst/gst.c (G_OPTION_FLAG_NO_ARG): Apparently GLib 2.8 requires
2310         this flag, but it's not even in GLib 2.6. Odd. Hack around the
2311         issue.
2312
2313 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
2314
2315         * gst/gstiterator.c: (gst_iterator_new):
2316           Fix my previous commit: GTypes passed to gst_iterator_new()
2317           can be fundamental types.
2318
2319 2005-10-10  Wim Taymans  <wim@fluendo.com>
2320
2321         * gst/gstelement.c: (gst_element_iterate_pad_list),
2322         (gst_element_iterate_pads), (gst_element_iterate_src_pads),
2323         (gst_element_iterate_sink_pads):
2324         Use src/sink pads lists for the respective iterators instead
2325         of filtering.
2326
2327 2005-10-10  Andy Wingo  <wingo@pobox.com>
2328
2329         Merged in popt removal + GOption addition patch from Ronald, bug
2330         #169772.
2331
2332         * docs/gst/gstreamer-sections.txt: Add STATE_(UN)LOCK_FULL, move
2333         GstElement macros around, remove popt-related symbols, add goption
2334         stuff.
2335
2336         * configure.ac: Remove popt checks, require GLib 2.6 for GOption.
2337         
2338         * docs/gst/Makefile.am:
2339         * docs/libs/Makefile.am: No POPT_CFLAGS.
2340         
2341         * examples/manual/Makefile.am:
2342         * docs/manual/basics-init.xml: Doc updates with an example.
2343         
2344         * gst/gst.c: (gst_init_get_option_group), (gst_init_check),
2345         (gst_init), (parse_one_option), (parse_goption_arg):
2346         * gst/gst.h: Removed gst_init_with_popt_table and friends. Took a
2347         bit of hand merging and debugging to get the GOption stuff working
2348         tho.
2349         
2350         * tests/Makefile.am:
2351         * tools/Makefile.am:
2352         * tools/gst-inspect.c: (main):
2353         * tools/gst-launch.c: (main):
2354         * tools/gst-run.c: (main):
2355         * tools/gst-xmlinspect.c: (main): Thanks Ronald!
2356
2357 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
2358
2359         * gst/gstiterator.c: (gst_iterator_new):
2360           Add assertions to make sure passed GType is likely to really
2361           be a GType (as the compiler won't catch it if the size and
2362           GType arguments get mixed up, see #318447).
2363
2364 2005-10-10  Josef Zlomek  <josef dot zlomek at xeris dot cz>
2365
2366         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
2367
2368         * gst/gstbin.c: (gst_bin_iterate_sorted):
2369           Pass GType and size arguments to gst_iterator_new() in the right
2370           order (maybe we should make _new() take the GType as first argument
2371           just like _new_list()?) (#318447).
2372           
2373
2374 2005-10-10  Wim Taymans  <wim@fluendo.com>
2375
2376         * gst/gstelement.c: (gst_element_finalize):
2377         And free the GStaticRecMutex too
2378
2379 2005-10-10  Andy Wingo  <wingo@pobox.com>
2380
2381         * gst/gstelement.c (gst_element_init, gst_element_finalize):
2382         Allocate and free the mutex properly.
2383
2384         * gst/gstelement.h (GST_STATE_UNLOCK_FULL, GST_STATE_LOCK_FULL):
2385         New macros.
2386         (GstElement): The state_lock is now recursive. Rebuild your
2387         plugins, suckers. Old macros adapted.
2388
2389         * docs/gst/gstreamer-sections.txt: Doc updates.
2390
2391         * gst/gstutils.h:
2392         * gst/gstutils.c (g_static_rec_cond_timed_wait) 
2393         (g_static_rec_cond_wait): Ported from state changes patch, while
2394         we wait on bug #317802 to be solved in a well-distributed GLib.
2395
2396         * gst/gstelement.c (gst_element_change_state_func): Renamed from
2397         gst_element_change_state, variable name changes.
2398         (gst_element_change_state): Split out of gst_element_set_state in
2399         preparation for the state change merge. Doesn't pay attention to
2400         the 'transition' argument.
2401         (gst_element_set_state): Updates, hopefully purely cosmetic.
2402         (gst_element_sync_state_with_parent): MT-safety. Ported from the
2403         state change patch.
2404         (gst_element_get_state_func): Renamed from get_state, cosmetic
2405         changes.
2406
2407 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
2408
2409         * gst/elements/gstelements.c:
2410         * win32/GStreamer.vcproj:
2411         * win32/config.h:
2412         * win32/dirent.c: (_tseekdir):
2413         * win32/gst-inspect.vcproj:
2414         * win32/gst-launch.vcproj:
2415         * win32/gstconfig.h:
2416         * win32/gstelements.vcproj:
2417         * win32/gstenumtypes.c: (gst_object_flags_get_type):
2418         * win32/gstreamer.def:
2419         * win32/msvc71.sln:
2420           updates for the win32 build (patch from Sebastien Moutte)
2421
2422 2005-10-10  Andy Wingo  <wingo@pobox.com>
2423
2424         * gst/gstbin.c (gst_bin_get_state_func): Renamed from
2425         gst_bin_get_state, cleaned up (but no logic changes).
2426         (bin_element_is_sink): Comment updates.
2427         (sink_iterator_filter): Remove needless cast.
2428         (gst_bin_iterate_sinks): Doc update.
2429         (gst_bin_change_state_func): Renamed from gst_bin_change_state,
2430         cleaned up (but no logic changes).
2431
2432         * check/states/sinks.c (test_src_sink): Cleanups from the state
2433         change patch.
2434         (test_livesrc_sink): Sync on the state.
2435
2436         * check/pipelines/simple_launch_lines.c (run_pipeline): Merge from
2437         the state change patch.
2438
2439         * check/gst/gstghostpad.c (test_ghost_pads): Merge from the state
2440         change patch.
2441
2442         * check/gst/gstbin.c: Merge in some style fixes and additional
2443         checks from Wim's state change patch.
2444
2445 2005-10-10  Tim-Philipp Müller  <tim at centricular dot net>
2446
2447         * gst/base/gsttypefindhelper.c: (helper_find_peek),
2448         (gst_type_find_helper):
2449           Check whether we have the requested data already in our list of
2450           cached buffers before pulling a new buffer; also make the buffer
2451           list a GSList. Speeds up typefinding by ca. 5-10% altogether.
2452
2453 2005-10-10  Thomas Vander Stichele  <thomas at apestaart dot org>
2454
2455         * gst/gstcaps.c:
2456         * gst/gstevent.c:
2457           doc updates
2458         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
2459           don't use long long, it's not portable.  Replacing with
2460           gint64 seems to work; let's hope no skeletons fall out of the closet.
2461
2462 2005-10-10  Andy Wingo  <wingo@pobox.com>
2463
2464         * autogen.sh (CONFIGURE_DEF_OPT): No more --plugin-buiddir, yay
2465
2466 2005-10-09  Stefan Kost  <ensonic@users.sf.net>
2467
2468         * docs/gst/gstreamer-sections.txt:
2469         * gst/gstevent.c:
2470         * gst/gstevent.h:
2471         * gst/gstinfo.c:
2472         * gst/gstinfo.h:
2473         * gst/gstmessage.c: (gst_message_parse_state_changed):
2474         * gst/gstpad.c:
2475         * gst/gstpad.h:
2476           more docs, fix compilation
2477
2478 2005-10-09  Philippe Khalaf <burger@speedy.org>
2479         * gst/gstmessage.c:
2480           Fixed a few forgotten variables on previous commit
2481
2482 2005-10-09  Tim-Philipp Müller  <tim at centricular dot net>
2483
2484         * gst/base/gsttypefindhelper.c: (helper_find_peek):
2485           Fix evil typefind crasher: getrange() might return a short
2486           buffer at the end of a file, but gst_type_find_peek() must
2487           either return the full data as requested or NULL, but
2488           never a short buffer.
2489
2490 2005-10-09  Thomas Vander Stichele  <thomas at apestaart dot org>
2491
2492         * gst/gstmessage.c: (gst_message_new_state_changed),
2493         (gst_message_parse_state_changed):
2494         * gst/gstmessage.h:
2495           don't use "new", it's a C++ keyword
2496
2497 2005-10-08  Wim Taymans  <wim@fluendo.com>
2498
2499         * gst/gstbin.c: (is_eos), (update_degree), (gst_bin_query):
2500         * gst/gstelement.c: (gst_element_post_message):
2501         * gst/gstpipeline.c: (gst_pipeline_change_state):
2502         Small docs and debug updates.
2503
2504 2005-10-08  Stefan Kost  <ensonic@users.sf.net>
2505
2506         * docs/gst/gstreamer-sections.txt:
2507         * gst/gstelementfactory.c:
2508         * gst/gstevent.c:
2509         * gst/gsttaglist.c:
2510           more docs
2511
2512 2005-10-08  Wim Taymans  <wim@fluendo.com>
2513
2514         * gst/gstbin.c: (is_eos), (update_degree), (gst_bin_change_state),
2515         (gst_bin_dispose), (bin_bus_handler):
2516         Fix typos, add comments.
2517         Clear EOS list when going to PAUSED from any direction and do it
2518         in a threadsafe way.
2519         Get base time in a threadsafe way too.
2520         Fix confusing debug in the change_state function.
2521         Various other small cleanups.
2522         
2523         * gst/gstelement.c: (gst_element_post_message):
2524         Fix very verbose bus posting code.
2525
2526         * gst/gstpipeline.c: (gst_pipeline_class_init),
2527         (gst_pipeline_set_property), (gst_pipeline_get_property),
2528         (gst_pipeline_change_state):
2529         Small ARG_ -> PROP_ cleanup
2530
2531 2005-10-08  Wim Taymans  <wim@fluendo.com>
2532
2533         * gst/gstbin.c: (is_eos), (bin_bus_handler):
2534         Do a less CPU demanding EOS check because we can.
2535
2536 2005-10-08  Wim Taymans  <wim@fluendo.com>
2537
2538         * libs/gst/dataprotocol/dataprotocol.c:
2539         (gst_dp_header_from_buffer), (gst_dp_packet_from_caps),
2540         (gst_dp_packet_from_event):
2541         * libs/gst/dataprotocol/dataprotocol.h:
2542         * libs/gst/dataprotocol/dp-private.h:
2543         It's about time we bump the version number.
2544         Since event types don't fit in the guint8 anymore describing
2545         the payload type, make payload type 16 bits wide.
2546
2547 2005-10-08  Wim Taymans  <wim@fluendo.com>
2548
2549         * docs/design/part-TODO.txt:
2550         * docs/design/part-clocks.txt:
2551         * docs/design/part-events.txt:
2552         * docs/design/part-gstbin.txt:
2553         * docs/design/part-gstelement.txt:
2554         * docs/design/part-gstpipeline.txt:
2555         * docs/design/part-live-source.txt:
2556         * docs/design/part-messages.txt:
2557         * docs/design/part-overview.txt:
2558         * docs/design/part-states.txt:
2559         Many doc updates.
2560
2561 2005-10-08  Wim Taymans  <wim@fluendo.com>
2562
2563         * gst/gstevent.c:
2564         * gst/gstevent.h:
2565         Fix event quark registration.
2566         Add some space between events so we can insert them in the
2567         right groups.
2568
2569 2005-10-08  Wim Taymans  <wim@fluendo.com>
2570
2571         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2572         (gst_base_sink_handle_buffer):
2573         Better log message.
2574
2575         * gst/gstbus.h:
2576         * gst/gstelement.h:
2577         More docs.
2578
2579         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_init),
2580         (gst_queue_set_property), (gst_queue_get_property):
2581         * gst/gstqueue.h:
2582         Remove old unused properties.
2583
2584 2005-10-08  Stefan Kost  <ensonic@users.sf.net>
2585         * docs/gst/gstreamer-sections.txt:
2586         * gst/gstmessage.c:
2587         * gst/gstmessage.h:
2588         * gst/gstminiobject.c:
2589         * gst/gstminiobject.h:
2590         * gst/gstobject.h:
2591         * gst/gstpad.h:
2592         * gst/gstutils.h:
2593           lots of new docs and doc fixes
2594
2595 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
2596
2597         * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_load_file):
2598         * gst/gstplugin.h:
2599         * gst/gstregistry.c: (gst_registry_lookup_locked),
2600         (gst_registry_scan_path_level):
2601         * gst/gstregistryxml.c: (load_plugin):
2602           Only ever load one plugin for a given plugin basename.
2603           This ensures correct overriding of GST_PLUGIN_PATH over
2604           GST_PLUGIN_SYSTEM_PATH and of home dir plugins over
2605           system installed plugins.
2606
2607 2005-10-08  Wim Taymans  <wim@fluendo.com>
2608
2609         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
2610         (gst_base_sink_do_sync), (gst_base_sink_handle_buffer):
2611         Prepare for doing QOS.
2612
2613 2005-10-08  Wim Taymans  <wim@fluendo.com>
2614
2615         * check/gst/gstbin.c: (GST_START_TEST):
2616         * check/pipelines/cleanup.c: (GST_START_TEST):
2617         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
2618         Allow new clock message too.
2619
2620 2005-10-08  Wim Taymans  <wim@fluendo.com>
2621
2622         * gst/gstmessage.c: (gst_message_new_error),
2623         (gst_message_new_warning), (gst_message_new_tag),
2624         (gst_message_new_state_changed), (gst_message_new_clock_provide),
2625         (gst_message_new_clock_lost), (gst_message_new_new_clock),
2626         (gst_message_new_segment_start), (gst_message_new_segment_done),
2627         (gst_message_parse_state_changed),
2628         (gst_message_parse_clock_provide), (gst_message_parse_clock_lost),
2629         (gst_message_parse_new_clock):
2630         * gst/gstmessage.h:
2631         Also carry the clock in question.
2632
2633 2005-10-08  Wim Taymans  <wim@fluendo.com>
2634
2635         * gst/gstmessage.c: (gst_message_new_custom),
2636         (gst_message_new_eos), (gst_message_new_error),
2637         (gst_message_new_warning), (gst_message_new_tag),
2638         (gst_message_new_state_changed), (gst_message_new_clock_provide),
2639         (gst_message_new_new_clock), (gst_message_new_segment_start),
2640         (gst_message_new_segment_done), (gst_message_parse_state_changed),
2641         (gst_message_parse_clock_provide), (gst_message_parse_new_clock):
2642         * gst/gstmessage.h:
2643         Clean up.
2644         Added clock related messages.
2645
2646         * gst/gstpipeline.c: (gst_pipeline_change_state):
2647         Post message when the clock changed.
2648
2649         * tools/gst-launch.c: (event_loop):
2650         Print new clock.
2651
2652 2005-10-08  Tim-Philipp Müller  <tim at centricular dot net>
2653
2654         * tools/gst-inspect.c: (print_element_properties_info):
2655           Can't pass NULL strings to g_print() on windows.
2656
2657 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
2658
2659         * docs/Makefile.am:
2660         * docs/gst/Makefile.am:
2661         * docs/gst/gstreamer-docs.sgml:
2662         * docs/gst/running.xml:
2663         * docs/version.entities.in:
2664           add a chapter on running GStreamer.
2665           document GST_DEBUG and GST_PLUGIN* env vars
2666
2667 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
2668
2669         * Makefile.am:
2670           remove include dir
2671         * configure.ac:
2672           remove PLUGINS_BUILDDIR stuff
2673         * gst/gst.c: (init_post):
2674           reorder parsing of GST_PLUGIN_PATH and GST_PLUGIN_SYSTEM_PATH
2675         * idiottest.mak:
2676           remove, it was condescending and not needed
2677
2678 2005-10-08  Wim Taymans  <wim@fluendo.com>
2679
2680         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_flush),
2681         (gst_base_sink_handle_object), (gst_base_sink_event),
2682         (gst_base_sink_wait), (gst_base_sink_handle_event),
2683         (gst_base_sink_change_state):
2684         * gst/base/gstbasesink.h:
2685         Repost EOS message while going to PLAYING if still EOS.
2686         Make sure that when receiving a FLUSH_START we don't attempt
2687         to sync on the clock anymore.
2688
2689 2005-10-08  Wim Taymans  <wim@fluendo.com>
2690
2691         * tools/gst-launch.c: (event_loop):
2692         Better message printout.
2693
2694 2005-10-08  Wim Taymans  <wim@fluendo.com>
2695
2696         * gst/gstbin.c: (gst_bin_child_proxy_get_child_by_index),
2697         (gst_bin_child_proxy_get_children_count):
2698         * gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
2699         (gst_child_proxy_lookup), (gst_child_proxy_get_property),
2700         (gst_child_proxy_get_valist), (gst_child_proxy_set_property),
2701         (gst_child_proxy_set_valist):
2702         * gst/parse/grammar.y:
2703         Make ChildProxy threadsafe and fix mem leaks.
2704
2705 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
2706
2707         * gst/gst.c: (init_post):
2708           debug the GST_PLUGIN_ env vars
2709
2710 2005-10-08  Wim Taymans  <wim@fluendo.com>
2711
2712         * check/gst/gstbin.c: (GST_START_TEST):
2713         * check/gst/gstmessage.c: (GST_START_TEST):
2714         * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
2715         * gst/gstelement.c: (gst_element_commit_state),
2716         (gst_element_lost_state):
2717         * gst/gstmessage.c: (gst_message_new_state_changed),
2718         (gst_message_parse_state_changed):
2719         * gst/gstmessage.h:
2720         * tools/gst-launch.c: (event_loop):
2721         Added extra field to STATE_CHANGE message with the pending
2722         state, which will be different from the new state soon.
2723
2724 2005-10-08  Wim Taymans  <wim@fluendo.com>
2725
2726         * gst/gstbus.c: (gst_bus_pop):
2727         * gst/gstclock.c:
2728         * gst/gstsystemclock.c: (gst_system_clock_async_thread):
2729         Small cleanups and doc updates.
2730
2731 2005-10-08  Thomas Vander Stichele  <thomas at apestaart dot org>
2732
2733         * gst/gst.c: (init_pre):
2734         * gst/gstbin.c: (gst_bin_add_func):
2735           log distributing clocks and base time
2736         * gst/gstregistry.c: (gst_registry_add_plugin),
2737         (gst_registry_scan_path_level), (gst_registry_scan_path):
2738           clean up the debugging output a little
2739         * gst/gstutils.c: (gst_element_state_get_name):
2740           warn about a memleak (I've actually seen this be used, though
2741           it was probably a bug)
2742
2743 2005-10-07  Wim Taymans  <wim@fluendo.com>
2744
2745         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
2746         (gst_base_src_init), (gst_base_src_default_newsegment),
2747         (gst_base_src_newsegment), (gst_base_src_do_seek),
2748         (gst_base_src_loop), (gst_base_src_start):
2749         * gst/base/gstbasesrc.h:
2750         Make the newsegment event customizable by subclasses.
2751
2752 2005-10-07  Wim Taymans  <wim@fluendo.com>
2753
2754         * gst/gstevent.c: (gst_event_new_buffersize),
2755         (gst_event_parse_buffersize):
2756         * gst/gstevent.h:
2757         New event for future idea.
2758
2759 2005-10-07  Andy Wingo  <wingo@pobox.com>
2760
2761         * gst/gstelement.c (gst_element_post_message): Doc update.
2762
2763         * docs/gst/gstreamer-sections.txt: Update.
2764
2765         * gst/gstmessage.c (gst_message_new_application): Made into a
2766         function like honest API calls.
2767         (gst_message_new_element): New message type.
2768
2769         * gst/gstmessage.h (enum): Add GST_MESSAGE_ELEMENT type.
2770
2771         * check/elements/fakesrc.c (test_no_preroll): New check, checks
2772         that setting a live fakesrc to PAUSED returns NO_PREROLL both
2773         times.
2774
2775         * gst/base/gstbasesrc.c (gst_base_src_change_state): Allow a
2776         NO_PREROLL from gst_element_change_state to fall through.
2777
2778 2005-10-07  Wim Taymans  <wim@fluendo.com>
2779
2780         * gst/gstghostpad.c: (gst_ghost_pad_get_internal),
2781         (gst_ghost_pad_do_activate_push):
2782         Activating a ghostpad with no internal pad in push mode
2783         is ok.
2784
2785 2005-10-07  Thomas Vander Stichele  <thomas at apestaart dot org>
2786
2787         * gst/gstobject.h:
2788           there's no point in wrapping FLAG_SET/_UNSET in STMT macros.
2789           Fixes compilation on Windows.
2790
2791 2005-10-07  Michael Smith <msmith@fluendo.com>
2792
2793         * tools/gst-inspect.c:
2794           Print out feature and plugin count at the end when printing out
2795           all features.
2796
2797 2005-10-04  Michael Smith <msmith@fluendo.com>
2798
2799         * gst/gsterror.c: (_gst_stream_errors_init):
2800           Add another error string used in a few existing plugins.
2801
2802         * gst/gstplugin.c:
2803         * gst/gstpluginfeature.c: (gst_plugin_feature_load):
2804         * tools/gst-inspect.c: (print_element_info):
2805           When a feature disappears from a plugin (and the feature exists in
2806           the cached registry file), things went horribly wrong. This isn't a
2807           complete fix, we should actually be removing the 'missing' features
2808           from the features list when we load the actual plugin. That's not
2809           yet implemented. 
2810
2811 2005-10-04  Johan Dahlin  <johan@gnome.org>
2812
2813         * check/gst/gstiterator.c: (GST_START_TEST):
2814         * gst/gstbin.c: (gst_bin_iterate_elements),
2815         (gst_bin_iterate_recurse), (gst_bin_iterate_sorted):
2816         * gst/gstelement.c: (gst_element_iterate_pads):
2817         * gst/gstformat.c: (gst_format_iterate_definitions):
2818         * gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
2819         (gst_iterator_new_list), (gst_iterator_filter):
2820         * gst/gstiterator.h:
2821         * gst/gstquery.c: (gst_query_type_iterate_definitions):
2822         Add a GType to GstIterator, update callsites and tests.
2823
2824 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
2825
2826         * gst/gstpad.c: (gst_pad_event_default_dispatch):
2827           give events a chance to be handled by event probes when the pad
2828           is not linked
2829
2830 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
2831
2832         * gst/gstevent.c: (gst_event_type_get_name),
2833         (gst_event_type_to_quark), (gst_event_finalize), (gst_event_new):
2834         * gst/gstevent.h:
2835           add string representations for event types
2836
2837 2005-10-06  Wim Taymans  <wim@fluendo.com>
2838
2839         * gst/elements/gstfilesink.c: (gst_file_sink_close_file):
2840         Don't use NULL pointers.
2841
2842 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
2843
2844         * gst/gst_private.h:
2845         * gst/gstbus.c:
2846         * gst/gstelement.c:
2847         * gst/gstinfo.c:
2848         * gst/gstpluginfeature.c:
2849           widen the debug category in output to fit the biggest one we have
2850           add a bus category and use it
2851           play with the colors
2852           fix up some categories
2853
2854 2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>
2855
2856         * gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
2857           add push activation of sink ghost pads.
2858           Andye, please verify
2859
2860 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
2861
2862         * gst/gstutils.c: (gst_element_link_pads):
2863           fix a bug in the case where neither element has a pad
2864         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
2865           add a test for that case
2866
2867 2005-10-05  Thomas Vander Stichele  <thomas at apestaart dot org>
2868
2869         * gst/gstpad.c: (gst_pad_push), (gst_pad_push_event):
2870           emit have-data before checking for peers.  This allows
2871           for probe handlers to connect elements.  This helps autopluggers.
2872         * check/gst/gstpad.c: (GST_START_TEST), (_probe_handler),
2873         (gst_pad_suite):
2874           add six checks, linked/unlinked with no/true/false probe
2875
2876 2005-10-04  Wim Taymans  <wim@fluendo.com>
2877
2878         * gst/elements/gstfakesink.c: (gst_fake_sink_get_property),
2879         (gst_fake_sink_event), (gst_fake_sink_preroll),
2880         (gst_fake_sink_render), (gst_fake_sink_change_state):
2881         * gst/elements/gstfakesrc.c: (gst_fake_src_event_handler),
2882         (gst_fake_src_get_property), (gst_fake_src_create),
2883         (gst_fake_src_stop):
2884         * gst/elements/gstidentity.c: (gst_identity_stop):
2885         Protect last_message with lock.
2886
2887 2005-10-04  Edward Hervey  <edward@fluendo.com>
2888
2889         * gst/gstformat.h: 
2890         Added precision in the comments for GST_FORMAT_DEFAULT
2891
2892 2005-10-04  Tim-Philipp Müller  <tim at centricular dot net>
2893
2894         * tools/gst-launch.c: (main):
2895           Don't try to run erroneous pipelines.
2896
2897 2005-10-04  Julien MOUTTE  <julien@moutte.net>
2898
2899         * gst/gstbus.c: We don't need this header.
2900
2901 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
2902
2903         * configure.ac:
2904           back to development
2905
2906 === release 0.9.3 ===
2907
2908 2005-10-03  Thomas Vander Stichele  <thomas at apestaart dot org>
2909
2910         * README:
2911         * configure.ac:
2912           Releasing 0.9.3, "Unregistered"
2913
2914 2005-10-03  Andy Wingo  <wingo@pobox.com>
2915
2916         * gst/gstpad.c (gst_pad_activate_push): There is a race condition
2917         whereby calling a pad's activatepush() function can start a thread
2918         that starts to push or pull before the pad gets the FLUSHING flag
2919         unset. Hack around it by holding the stream lock until the flag is
2920         set. Need to replace this with a proper solution. Together with
2921         the ghost pad fixes, this fixes mp3 playing/tagreading.
2922
2923         * docs/design/part-gstghostpad.txt: Add a note about activation of
2924         proxy pads outside of ghost pads.
2925
2926         * gst/gstghostpad.c: Implement the ghost pad activation design.
2927
2928 2005-10-02  Andy Wingo  <wingo@pobox.com>
2929
2930         * gst/gstobject.h (GST_OBJECT_REFCOUNT_VALUE): Just use the int.
2931         It is volatile, after all.
2932
2933         * docs/design/part-gstghostpad.txt: Flesh out activation with
2934         ghost pads.
2935
2936         * gst/base/gstbasesrc.c (gst_base_src_init): Use
2937         GST_DEBUG_FUNCPTR.
2938
2939 2005-10-02  Tim-Philipp Müller  <tim at centricular dot net>
2940
2941         * configure.ac:
2942           Fix (unused) AM_CONDITIONAL tests.
2943
2944 2005-10-01  Alessandro Decina  <alessandro at nnva dot org>
2945
2946         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
2947
2948         * gst/gstutils.c: (gst_pad_query_convert):
2949           Add assertion that makes sure src_val is >=0, just like
2950           gst_query_new_convert() has. (#315895)
2951
2952 2005-09-30  Edward Hervey  <edward@fluendo.com>
2953
2954         * gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer):
2955         Let's not iterate pads we're not interested in, it avoids getting 
2956         sky-high refcounts on sinkpad.
2957
2958 2005-09-30  Wim Taymans  <wim@fluendo.com>
2959
2960         * gst/gstelement.c: (gst_element_set_state),
2961         (gst_element_change_state):
2962         Small tweak, element in ASYNC remains ASYNC.
2963
2964 2005-09-30  Wim Taymans  <wim@fluendo.com>
2965
2966         * gst/base/gstbasesink.c: (gst_base_sink_change_state):
2967         Only error is an error.
2968
2969         * gst/gstbin.c: (gst_bin_change_state):
2970         Better debugging.
2971
2972         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_chain):
2973         Also call pad_block in pad alloc.
2974
2975         * gst/gstutils.c: (gst_flow_get_name):
2976         Better debugging.
2977
2978 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
2979
2980         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
2981         (gst_base_src_get_range):
2982           Fix documentation typos. Add some more debug info.
2983
2984 2005-09-29  David Schleef  <ds@schleef.org>
2985
2986         * gst/gstplugin.c: (gst_plugin_load_file): Make some error messages
2987           more end-user friendly.
2988         * tools/gst-inspect.c: (main): Check if command-line argument is
2989           a file and attempt to load that file as a plugin.
2990
2991 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
2992
2993         * check/gst/gstbin.c:
2994         * check/states/sinks.c:
2995           fix tests for the new warning
2996         * check/gst/gstpipeline.c:
2997           add a test for pipeline and bus interaction
2998         * gst/gstelement.c:
2999           elements should be NULL if they get disposed; add a warning if not
3000
3001 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
3002
3003         * gst/gstobject.c:
3004           for 2.6 refcounting, make debug log more correct by printing
3005           the actual refcounts at the time of swap (Wim)
3006
3007 2005-09-29  Andy Wingo  <wingo@pobox.com>
3008
3009         * gst/gstbus.c (gst_bus_remove_signal_watch): New function,
3010         removes signal watches previously added via
3011         gst_bus_add_signal_watch.
3012         (gst_bus_add_signal_watch): Don't return the source id, just store
3013         it on the bus if there wasn't an id already.
3014
3015         * gst/gstbus.h (GstBus): Add a couple new fields. API changes for
3016         add_signal_watch and remove_signal_watch.
3017
3018 2005-09-29  Edward Hervey  <edward@fluendo.com>
3019
3020         * libs/gst/controller/gstcontroller.c: (gst_controller_new_list): 
3021         Better if we actually iterate the list :)
3022
3023 2005-09-29  Wim Taymans  <wim@fluendo.com>
3024
3025         * check/gst/gstbin.c: (GST_START_TEST):
3026         Change for new bus API.
3027
3028         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
3029         (send_messages), (GST_START_TEST), (gstbus_suite):
3030         Change for new bus signal API.
3031
3032         * gst/gstbus.c: (gst_bus_class_init), (gst_bus_have_pending),
3033         (gst_bus_source_prepare), (gst_bus_source_check),
3034         (gst_bus_create_watch), (gst_bus_add_watch_full),
3035         (gst_bus_add_watch), (gst_bus_poll), (gst_bus_async_signal_func),
3036         (gst_bus_sync_signal_handler), (gst_bus_add_signal_watch):
3037         * gst/gstbus.h:
3038         Remove support for multiple GSources operating on different
3039         message types as it is too complex and unneeded when using
3040         signals.
3041         Added support for receiving signals from the bus.
3042
3043 2005-09-29  Thomas Vander Stichele  <thomas at apestaart dot org>
3044
3045         * docs/libs/tmpl/gstdataprotocol.sgml:
3046         * docs/manual/advanced-dataaccess.xml:
3047         * gst/elements/gstcapsfilter.c:
3048         * gst/gstutils.c:
3049           rename filter-caps to caps property
3050
3051 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
3052
3053         * gst/gstvalue.c: (gst_value_deserialize_fraction):
3054           More robust fraction string parsing.
3055
3056         * docs/pwg/appendix-porting.xml:
3057           Mention gst_pad_use_explicit_caps() => gst_pad_use_fixed_caps()
3058
3059 2005-09-29  Tim-Philipp Müller  <tim at centricular dot net>
3060
3061         * gst/gstcaps.c: (gst_caps_do_simplify):
3062           Thou shalt not free a structure and then continue using it
3063           in the next loop iteration.
3064
3065         * check/gst/gstcaps.c: (check_fourcc_list), (test_simplify),
3066         (gst_caps_suite):
3067           Add test case for caps simplification.
3068
3069 2005-09-29  Wim Taymans  <wim@fluendo.com>
3070
3071         * check/gst/gstbin.c: (GST_START_TEST):
3072         Oops.
3073
3074 2005-09-29  Wim Taymans  <wim@fluendo.com>
3075
3076         * check/gst/gstbin.c: (GST_START_TEST):
3077         Add bus to bin.
3078
3079         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init),
3080         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
3081         (find_element), (gst_bin_sort_iterator_next),
3082         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
3083         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
3084         (gst_bin_change_state), (gst_bin_dispose):
3085         A bin does not have a bus, it gets the bus from the parent.
3086
3087         * gst/gstelement.c: (gst_element_requires_clock),
3088         (gst_element_provides_clock), (gst_element_is_indexable),
3089         (gst_element_is_locked_state), (gst_element_change_state),
3090         (gst_element_set_bus_func):
3091         Small cleanups.
3092
3093         * gst/gstpipeline.c: (gst_pipeline_class_init),
3094         (gst_pipeline_init), (gst_pipeline_provide_clock_func):
3095         The pipeline provides a bus.
3096
3097 2005-09-28  Johan Dahlin  <johan@gnome.org>
3098
3099         * gst/gstmessage.c (gst_message_parse_state_changed): Use
3100         gst_structure_get_enum instead of gst_structure_get_int
3101
3102         * gst/gststructure.c (gst_structure_get_enum): Impl.
3103
3104         * gst/gststructure.h (gst_structure_get_enum): Add
3105
3106         * docs/gst/gstreamer-sections.txt: Ditto
3107
3108         * gst/gstmessage.c (gst_message_new_state_changed): Use
3109         GST_TYPE_STATE instead of G_TYPE_INT, mainly for language bindings
3110         which does introspection.
3111         Reviewed by Christian Schaller
3112
3113 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
3114
3115         * gst/gstinfo.c: (gst_debug_log_default):
3116           don't do dummy g_strdup()s
3117         * libs/gst/controller/gstcontroller.c:
3118         (on_object_controlled_property_changed),
3119         (gst_controlled_property_new), (gst_controller_new_valist),
3120         (gst_controller_new_list),
3121         (gst_controller_remove_properties_valist), (gst_controller_set),
3122         (gst_controller_get), (gst_controller_sync_values),
3123         (gst_controller_get_value_array), (_gst_controller_class_init),
3124         (gst_controller_get_type):
3125         * libs/gst/controller/gstcontroller.h:
3126         * libs/gst/controller/gstinterpolation.c:
3127         (gst_controlled_property_find_timed_value_node):
3128           convert // to /**/ comments
3129
3130 2005-09-28  Wim Taymans  <wim@fluendo.com>
3131
3132         * gst/gstbus.c: (marshal_VOID__MINIOBJECT), (gst_bus_class_init),
3133         (gst_bus_post), (poll_func), (gst_bus_async_signal_func),
3134         (gst_bus_sync_signal_handler):
3135         * gst/gstbus.h:
3136         Added async-message and sync-message signals to the bus.
3137         Added helper BusFunc to emit signals for all posted messages.
3138
3139         * gst/gstmessage.c: (gst_message_type_get_name),
3140         (gst_message_type_to_quark), (gst_message_get_type):
3141         * gst/gstmessage.h:
3142         Register quarks for message names.
3143
3144 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
3145
3146         * docs/libs/gstreamer-libs-sections.txt:
3147         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist),
3148         (gst_controller_new_list):
3149         * libs/gst/controller/gstcontroller.h:
3150           added another constructor for language bindings
3151
3152 2005-09-28  Thomas Vander Stichele  <thomas at apestaart dot org>
3153
3154         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
3155           add another check
3156         * gst/gstbus.c:
3157           add some doc
3158         * gst/gstinfo.c: (_gst_debug_init):
3159           slightly more readable color for refcount debugging
3160
3161 2005-09-28  Wim Taymans  <wim@fluendo.com>
3162
3163         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_provide_clock_func),
3164         (add_to_queue), (clear_queue), (reset_degree), (update_degree),
3165         (find_element), (gst_bin_sort_iterator_next),
3166         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
3167         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
3168         (gst_bin_change_state), (gst_bin_dispose):
3169         Small doc fixes. get_clock -> provide_clock.
3170
3171         * gst/gstelement.c: (gst_element_class_init),
3172         (gst_element_provides_clock), (gst_element_provide_clock),
3173         (gst_element_get_clock), (gst_element_commit_state),
3174         (gst_element_lost_state):
3175         * gst/gstelement.h:
3176         Make get/set_clock() symetric. Add provide_clock vmethod since
3177         that is actually what this function does.
3178
3179         * gst/gstpipeline.c: (gst_pipeline_class_init),
3180         (gst_pipeline_change_state), (gst_pipeline_provide_clock_func),
3181         (gst_pipeline_get_clock):
3182         get_clock -> provide_clock.
3183
3184 2005-09-28  Andy Wingo  <wingo@pobox.com>
3185
3186         * gst/base/gstbasesrc.c (gst_base_src_unlock): Comment a bit in
3187         lieu of real docs...
3188
3189         * gst/elements/gstfdsrc.c: Cleaned up a bit.
3190
3191 2005-09-28  Tim-Philipp Müller  <tim at centricular dot net>
3192
3193         * gst/elements/gstcapsfilter.c:
3194         * gst/elements/gstfakesink.c:
3195         * gst/elements/gstfakesrc.c:
3196         * gst/elements/gstfdsink.c:
3197         * gst/elements/gstfdsrc.c:
3198         * gst/elements/gstfilesink.c:
3199         * gst/elements/gstfilesrc.c:
3200         * gst/elements/gstidentity.c:
3201         * gst/elements/gsttee.c:
3202         * gst/elements/gsttypefindelement.c:
3203           Make element details static.
3204
3205 2005-09-28  Wim Taymans  <wim@fluendo.com>
3206
3207         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
3208         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
3209         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
3210         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
3211         (gst_bin_change_state), (gst_bin_dispose):
3212         Some documentation updates.
3213         Clean up dispose handlers.
3214
3215         * gst/gstobject.c: (gst_object_ref), (gst_object_unref):
3216         * gst/gstpad.c: (gst_pad_dispose):
3217         Clean up dispose handler.
3218
3219         * gst/gstpipeline.c: (gst_pipeline_change_state):
3220         Removed spurious UNLOCK.
3221
3222 2005-09-27  Stefan Kost  <ensonic@users.sf.net>
3223
3224         * docs/gst/gstreamer-sections.txt:
3225         * gst/base/gstbasesrc.h:
3226         * gst/gstelement.h:
3227         * gst/gstevent.h:
3228         * gst/gstobject.h:
3229         * gst/gstpad.h:
3230         * gst/gstpipeline.c:
3231         * gst/gstpipeline.h:
3232         * gst/gstutils.h:
3233         * gst/gstxml.h:
3234           added two new functions to the docs
3235                 documents all undocumented GstXXXFlags
3236                 completed some incomplete docs 
3237
3238 2005-09-27  Thomas Vander Stichele  <thomas at apestaart dot org>
3239
3240         * gst/gstbin.c: (gst_bin_dispose):
3241         * gst/gstelement.c: (gst_element_dispose):
3242           remove now useless and leaky resurrection code in dispose
3243         * gst/base/gstbasesrc.c: (gst_base_src_init):
3244         * gst/gstelementfactory.c: (gst_element_factory_create):
3245         * gst/gstobject.c: (gst_object_set_parent):
3246           add some debugging
3247
3248 2005-09-27  Wim Taymans  <wim@fluendo.com>
3249
3250         * docs/design/part-TODO.txt:
3251         Update TODO.
3252
3253         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
3254         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
3255         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
3256         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
3257         (gst_bin_change_state):
3258         * gst/gstelement.h:
3259         Remove element variable, we keep element info in the iterator now.
3260
3261 2005-09-27  Andy Wingo  <wingo@pobox.com>
3262
3263         * libs/gst/dataprotocol/dataprotocol.c: Fix error-checking return
3264         values.
3265
3266 2005-09-27  Wim Taymans  <wim@fluendo.com>
3267
3268         * check/gst/gstbin.c: (GST_START_TEST):
3269         Enable check that works now.
3270
3271         * gst/gstbin.c: (add_to_queue), (clear_queue), (reset_outdegree),
3272         (update_outdegree), (find_element), (gst_bin_sort_iterator_next),
3273         (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free),
3274         (gst_bin_iterate_sorted), (gst_bin_element_set_state),
3275         (gst_bin_change_state):
3276         * gst/gstbin.h:
3277         Redid the state change algorithm using a topological sort algo.
3278         Handles all cases correctly.
3279         Exposed iterator for state change order.
3280
3281         * gst/gstelement.h:
3282         Temp storage for state changes. Need to get rid of this soon.
3283
3284 2005-09-27  Wim Taymans  <wim@fluendo.com>
3285
3286         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_do_push):
3287         * gst/gstutils.c: (intersect_caps_func), (gst_pad_proxy_getcaps),
3288         (link_fold_func), (gst_pad_proxy_setcaps):
3289         Leak fixes, the fold functions need to unref the passed object and
3290         _get_parent_*() returns ref to parent.
3291
3292 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
3293
3294         * check/gst/gstbuffer.c: (test_make_writable):
3295           Plug leak in test case and fix 'make check-valgrind'
3296
3297 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
3298
3299         * gst/gstbuffer.c: (gst_subbuffer_init):
3300           Set READONLY flag on subbuffers, so that gst_buffer_make_writable()
3301           works correctly in all circumstances (we could have just copied
3302           the parent buffer's readonly flag, but conceptually it seems
3303           cleaner to mark all subbuffers as read-only). (based on patch
3304           by Alessandro Decina, #314710).
3305         
3306         * check/gst/gstbuffer.c: (create_read_only_buffer),
3307         (test_make_writable), (test_subbuffer_make_writable),
3308         (gst_test_suite):
3309           Add some tests for gst_buffer_make_writable().
3310
3311 2005-09-27  Wim Taymans  <wim@fluendo.com>
3312
3313         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_change_state):
3314         use gst_object_has_ancestor().
3315
3316         * gst/gstobject.c: (gst_object_has_ancestor):
3317         * gst/gstobject.h:
3318         gst_object_has_ancestor() copied from gstbin.c as it is a
3319         usefull function.
3320
3321         * tests/instantiate/create.c: (create_all_elements):
3322         * tests/lat.c: (handoff_src), (handoff_sink):
3323         * tests/sched/runxml.c: (main):
3324         * tests/seeking/seeking1.c: (main):
3325         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
3326         (main):
3327         Fix compilation of some tests.
3328
3329 2005-09-27  Tim-Philipp Müller  <tim at centricular dot net>
3330
3331         * gst/gsterror.h:
3332           Remove comment. GST_TYPE_G_ERROR is here to stay,
3333           G_TYPE_ERROR has been WONTFIX'ed by the GLib folks
3334           (#316961, #300610).
3335
3336 2005-09-26  Wim Taymans  <wim@fluendo.com>
3337
3338         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
3339         Added check that shows error in state change order.
3340
3341 2005-09-26  Wim Taymans  <wim@fluendo.com>
3342
3343         * gst/gstbin.c: (gst_bin_change_state):
3344         Make state change function use 3 queues again, we were
3345         adding elements in the wrong order.
3346
3347         * gst/gstghostpad.c: (gst_ghost_pad_do_unlink):
3348         Some debug info,
3349
3350         * gst/gstpad.c: (gst_pad_dispose):
3351         Added some debug info first.
3352
3353 2005-09-26  Tim-Philipp Müller  <tim at centricular dot net>
3354
3355         * docs/design/draft-push-pull.txt:
3356         * docs/design/part-events.txt:
3357         * docs/design/part-overview.txt:
3358         * docs/design/part-scheduling.txt:
3359           Replace all _pull_region() with _pull_range()
3360           
3361 2005-09-26  Andy Wingo  <wingo@pobox.com>
3362
3363         * gst/gstvalue.c (_gst_value_initialize): Better fakeout.
3364
3365         * check/gst-libs/controller.c: Update for controller api change.
3366
3367         * configure.ac: 
3368         * tests/Makefile.am:
3369         * tests/memchunk: Remove memchunk benchmark stuff, this is taken
3370         over by GLib bug 118439.
3371         
3372         * gst/base/gstbasesink.c (gst_base_sink_wait): Factor out the wait
3373         routines to a function.
3374
3375         * docs/libs/gstreamer-libs-sections.txt: I am a good person today.
3376
3377         * libs/gst/controller/gsthelper.c:
3378         * libs/gst/controller/gstcontroller.h (gst_controller_sync_values)
3379         (gst_object_sync_values): Renamed from sink_values. Ugh.
3380
3381         * libs/gst/controller/gsthelper.c: Update for __gst_controller_key.
3382
3383         * libs/gst/controller/gstcontroller.c (__gst_controller_key):
3384         Renamed from controller_key, as it is exported.
3385
3386         * gst/gstvalue.c (_gst_value_initialize): Fake out the compiler.
3387
3388 2005-09-26  Thomas Vander Stichele  <thomas at apestaart dot org>
3389
3390         * gst/Makefile.am:
3391         * gst/gst.h:
3392         * gst/gstpad.h:
3393         * gst/gstpadtemplate.h:
3394         * gst/gstquery.c:
3395         * gst/gstquery.h:
3396         * gst/gstqueryutils.c:
3397         * gst/gstqueryutils.h:
3398           remove queryutils headers after moving the two used functions
3399           to gstquery.  also fixes build problem for gstsiddec
3400
3401 2005-09-26  Michael Smith <msmith@fluendo.com>
3402
3403         * tools/gst-launch.1.in:
3404         Correct documentation in manpage of debug syntax
3405
3406 2005-09-26  Wim Taymans  <wim@fluendo.com>
3407
3408         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
3409         (gst_base_src_is_seekable), (gst_base_src_change_state):
3410         Some more debugging info.
3411
3412 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
3413
3414         * docs/gst/gstreamer-sections.txt:
3415         * gst/base/gstbasetransform.h:
3416         * gst/gstindex.h:
3417           added more docs
3418
3419 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
3420
3421         * docs/gst/.cvsignore:
3422         * docs/gst/tmpl/.cvsignore:
3423         * docs/gst/tmpl/gstpipeline.sgml:
3424         * docs/gst/tmpl/gstplugin.sgml:
3425         * gst/gstpipeline.c:
3426         * gst/gstplugin.c:
3427         * gst/gstplugin.h:
3428           inlined the last two docs files
3429           removed the tmpl directory from cvs (no more conflicts here!)
3430
3431 2005-09-25  Stefan Kost  <ensonic@users.sf.net>
3432
3433         * docs/gst/gstreamer-sections.txt:
3434         * docs/gst/tmpl/.cvsignore:
3435         * docs/gst/tmpl/gstpad.sgml:
3436         * docs/gst/tmpl/gstpadtemplate.sgml:
3437         * gst/Makefile.am:
3438         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
3439         (gst_pad_finalize), (gst_pad_set_pad_template):
3440         * gst/gstpad.h:
3441         * gst/gstpadtemplate.c: (gst_pad_template_get_type),
3442         (gst_pad_template_class_init), (gst_pad_template_init),
3443         (gst_pad_template_dispose), (name_is_valid),
3444         (gst_static_pad_template_get), (gst_pad_template_new),
3445         (gst_static_pad_template_get_caps), (gst_pad_template_get_caps),
3446         (gst_pad_template_pad_created):
3447         * gst/gstpadtemplate.h:
3448           inlined two more docs
3449           factored gstpadtemplate out of gstpad
3450
3451 2005-09-24  Tim-Philipp Müller  <tim at centricular dot net>
3452
3453         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
3454         (test_children_state_change_order_semi_sink):
3455           Fix test case: we can't rely on a fixed state change order when
3456           going from READY => PAUSED because the sink might commit its 
3457           new state first when the first buffer created by the source 
3458           reaches the sink before the source has finished its change state.
3459           (Test case still fails at times, see #316856, comment 5 onwards)
3460
3461 2005-09-24  Wim Taymans  <wim@fluendo.com>
3462
3463         * docs/design/part-events.txt:
3464         * docs/design/part-gstbus.txt:
3465         * docs/design/part-gstpipeline.txt:
3466         * docs/design/part-messages.txt:
3467         * docs/design/part-overview.txt:
3468         * docs/design/part-segments.txt:
3469         * gst/gstbin.c:
3470         * gst/gstbuffer.c:
3471         * gst/gstclock.c:
3472         * gst/gstelement.c:
3473         * gst/gstevent.c:
3474         * gst/gstfilter.c:
3475         * gst/gstiterator.c:
3476         Various documentation updates.
3477
3478 2005-09-24  Thomas Vander Stichele  <thomas at apestaart dot org>
3479
3480         * gst/gstclock.h:
3481           Well, that's embarassing.  Luckily we weren't using
3482           GST_CLOCK_DIFF anywhere.
3483
3484 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
3485
3486         * common/gtk-doc.mak:
3487           don't fail on building XML, FC4 slave shows a bunch of doc
3488           missing bits that I don't get
3489         * gst/gstpad.c:
3490         * gst/gstpipeline.c:
3491         * gst/gststructure.c:
3492           some doc updates
3493
3494 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
3495
3496         * docs/design/part-gstbin.txt:
3497         * docs/design/part-gstbus.txt:
3498         * gst/gstbus.c:
3499           Add blurb about how the bus goes into flushing mode and
3500           drops all messages when its bin goes from READY into NULL 
3501           state.
3502
3503 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
3504
3505         * docs/gst/gstreamer-sections.txt:
3506         * gst/gststructure.c: (gst_structure_get_clock_time):
3507         * gst/gststructure.h:
3508           add a method to get a GstClockTime out of a structure
3509
3510 2005-09-23  Tim-Philipp Müller  <tim at centricular dot net>
3511
3512         * check/gst/gstbin.c: (test_children_state_change_order_flagged_sink),
3513         (test_children_state_change_order_semi_sink), (gst_bin_suite):
3514           Added test to check state change order in bins (can still be made
3515           to fail here under heavy disk load; bails out with 'Push on pad
3516           fakesink:sink0, but it was not activated in push mode').
3517
3518         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_change_state):
3519           Fix state change order when there is only a semi sink (#316856)
3520
3521         * gst/gstbus.c: (gst_bus_class_init):
3522           Use _class_peek_parent(), not _class_ref(); fix docs to say
3523           'default main context' instead of 'mainloop' where that is
3524           what's meant.
3525
3526         * gst/gstelement.c: (gst_element_commit_state),
3527         (gst_element_set_state):
3528           Fix typos in debug messages
3529
3530 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
3531
3532         * docs/README:
3533         * gst/gstpad.c: (gst_pad_class_init), (gst_pad_chain):
3534         * gst/gstpluginfeature.c:
3535         * gst/gstutils.c:
3536           various doc updates
3537         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
3538           change an assert into an error until it gets fixed properly
3539
3540 2005-09-23  Stefan Kost  <ensonic@users.sf.net>
3541
3542         * docs/gst/gstreamer-sections.txt:
3543         * docs/gst/tmpl/.cvsignore:
3544         * docs/gst/tmpl/gstelement.sgml:
3545         * docs/gst/tmpl/gstinfo.sgml:
3546         * docs/gst/tmpl/gstobject.sgml:
3547         * gst/gstelement.c:
3548         * gst/gstelement.h:
3549         * gst/gstinfo.c:
3550         * gst/gstinfo.h:
3551         * gst/gstobject.c: (gst_object_class_init):
3552         * gst/gstobject.h:
3553           inlined 3 more biiiig doc files and added some missing docs on the fly
3554
3555 2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
3556
3557         * check/gst/.cvsignore:
3558         * check/gst/gstplugin.c: (GST_START_TEST), (gst_plugin_suite):
3559         * gst/gstregistryxml.c: (load_plugin),
3560         (gst_registry_xml_save_plugin):
3561           put back source in registry.  add checks for find_plugin.
3562         * testsuite/states/bin.c: (assert_state), (empty_bin),
3563         (test_adding_one_element), (main):
3564         * testsuite/states/locked.c: (main):
3565           some compile/run fixes
3566
3567 2005-09-22  Thomas Vander Stichele  <thomas at apestaart dot org>
3568
3569         * check/gst/gstvalue.c: (GST_START_TEST):
3570           fix leaks in the test itself
3571
3572 2005-09-22  Wim Taymans  <wim@fluendo.com>
3573
3574         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
3575         (gst_base_sink_send_event), (gst_base_sink_peer_query),
3576         (gst_base_sink_query):
3577         Prepare for more accurate position reporting and query
3578         handling.
3579
3580         * gst/gstelement.c: (gst_element_send_event),
3581         (gst_element_set_state):
3582         Add some comment.
3583
3584 2005-09-22  Wim Taymans  <wim@fluendo.com>
3585
3586         * gst/gstquery.c: (gst_query_new_segment), (gst_query_set_segment),
3587         (gst_query_parse_segment):
3588         * gst/gstquery.h:
3589         More documentation.
3590         Add segment query for future use.
3591
3592 2005-09-22  Wim Taymans  <wim@fluendo.com>
3593
3594         * gst/gstbin.c: (gst_bin_add_func):
3595         Some more debug info.
3596
3597         * gst/gstelement.c: (gst_element_send_event):
3598         Simplify send_event
3599
3600         * gst/gstelement.h:
3601         Don't know how flags got broken.
3602
3603         * gst/gstquery.h:
3604         Added new query.
3605
3606 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
3607
3608         * check/gst/gstvalue.c: (test_date), (gst_value_suite):
3609           Add simplistic test suite for GST_TYPE_DATE serialisation and
3610           deserialisation.
3611
3612 2005-09-22  Tim-Philipp Müller  <tim at centricular dot net>
3613
3614         * docs/gst/gstreamer-sections.txt:
3615         * gst/gststructure.c: (gst_structure_set_valist),
3616         (gst_structure_get_date):
3617         * gst/gststructure.h:
3618         * gst/gstvalue.c: (gst_value_set_date), (gst_value_get_date),
3619         (gst_date_copy), (gst_value_compare_date),
3620         (gst_value_serialize_date), (gst_value_deserialize_date),
3621         (gst_value_transform_date_string),
3622         (gst_value_transform_string_date), (_gst_value_initialize):
3623         * gst/gstvalue.h:
3624           Add GST_TYPE_DATE, a boxed type that wraps GDate, and the usual
3625           bunch of utility functions along with a hack that checks that
3626           developers don't accidentally use G_TYPE_DATE where GST_TYPE_DATE
3627           is required. Part of the grand scheme in #170777.
3628
3629 2005-09-22  Andy Wingo  <wingo@pobox.com>
3630
3631         * gst/gstconfig.h.in: Psych out gtk-doc.
3632
3633         * docs/gst/gstreamer-sections.txt: Add GST_HAVE_GLIB_2_8.
3634
3635         * check/Makefile.am (check_PROGRAMS): Add gstplugin to the tests.
3636
3637         * tools/gst-inspect.c (print_element_list): Plug some
3638         inconsequential leaks.
3639
3640         * gst/gstregistry.c (gst_registry_get_default): Doc.
3641
3642         * check/gst/gstplugin.c: 
3643         * gst/gsttypefindfactory.c (gst_type_find_factory_call_function):
3644         * gst/gstelementfactory.c (gst_element_factory_create): 
3645         * gst/gstindexfactory.c (gst_index_factory_create): Update for
3646         refcount changes.
3647
3648         * gst/gstpluginfeature.c (gst_plugin_feature_list_free): Doc.
3649         (gst_plugin_feature_load): Doc, don't eat refs.
3650
3651         * gst/gstplugin.c (gst_plugin_load): Doc, don't eat refs.
3652         (gst_plugin_list_free): Doc.
3653         (gst_plugin_load_file): Doc updates.
3654
3655         * gst/gstbuffer.c (gst_buffer_get_caps): Like all our _get
3656         accessors returning refcounted objects, return a ref.
3657
3658         * check/gst/gstbuffer.c (GST_START_TEST): Use refcount-idempotent
3659         accessor for caps. IDEMPOTENCE. Oh yes.
3660
3661 2005-09-21  Francis Labonte  <francis_labonte at hotmail dot com>
3662
3663         Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
3664
3665         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
3666         (_gst_debug_register_funcptr):
3667           Add mutex to serialise access to the hash table with
3668           the function pointer => function name string mapping;
3669           make that hash table static scope (#316809).
3670
3671         * gst/registries/.cvsignore:
3672           Remove left-over file.
3673
3674 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
3675
3676         * docs/pwg/appendix-porting.xml:
3677           And something about newsegment events and caps-on-buffers to
3678           the porting guide (feel free to improve).
3679
3680 2005-09-21  Andy Wingo  <wingo@pobox.com>
3681
3682         * check/gst/gstutils.c (test_buffer_probe_n_times): Add tests for
3683         data and event probes on the same pad.
3684         (test_buffer_probe_once): Test that removing probes from within
3685         the probe functions works.
3686
3687 2005-09-21  Andy Wingo  <wingo@pobox.com>
3688
3689         * check/gst/gstutils.c: New file.
3690         (test_buffer_probe_n_times): A simple buffer probe test. More to
3691         come, foolios.
3692
3693         * gst/gstutils.c (gst_pad_add_buffer_probe): Connect to
3694         have-data::buffer, not have-data.
3695         (gst_pad_add_event_probe): Likewise for have-data::event.
3696         (gst_pad_add_data_probe): More docs. The part about 'resolving the
3697         peer' isn't quite right yet though.
3698         (gst_pad_remove_buffer_probe, gst_pad_remove_event_probe) 
3699         (gst_pad_remove_data_probe): Change to take the guint handler_id
3700         as their arg, not the function+data, which is more glib-like.
3701
3702         * gst/gstpad.c (gst_pad_emit_have_data_signal): Add a detail to
3703         the signal emission to indicate if the data is a buffer or an
3704         event.
3705         (gst_pad_get_type): Initialize buffer and event quarks.
3706         (gst_pad_class_init): have-data is now a detailed signal, yes it
3707         is.
3708
3709 2005-09-21  Tim-Philipp Müller  <tim at centricular dot net>
3710
3711         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
3712         * gst/gstutils.c: (gst_util_set_value_from_string),
3713         (gst_util_set_object_arg):
3714           Don't put functional code in g_return_if_fail() or
3715           g_return_val_if_fail() statements, otherwise things will 
3716           break when G_DISABLE_CHECKS is defined during compilation.
3717
3718 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
3719
3720         * docs/gst/tmpl/.cvsignore:
3721         * docs/gst/tmpl/gstvalue.sgml:
3722         * gst/gstvalue.c:
3723         * gst/gstvalue.h:
3724           inlied another one and added  some obvious docs
3725
3726 2005-09-21  Wim Taymans  <wim@fluendo.com>
3727
3728         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init),
3729         (gst_fdsrc_init), (gst_fdsrc_start), (gst_fdsrc_stop),
3730         (gst_fdsrc_unlock), (gst_fdsrc_set_property),
3731         (gst_fdsrc_get_property), (gst_fdsrc_create):
3732         * gst/elements/gstfdsrc.h:
3733         Properly implement fdsrc. Removed signal and timeout,
3734         better implemented somewhere else.
3735
3736 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
3737
3738         * docs/gst/tmpl/.cvsignore:
3739         * docs/gst/tmpl/gstimplementsinterface.sgml:
3740         * gst/gstinterface.c:
3741           inlined more docs
3742
3743 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
3744
3745         * docs/gst/gstreamer-sections.txt:
3746         * docs/gst/tmpl/.cvsignore:
3747         * docs/gst/tmpl/gstenumtypes.sgml:
3748           remove obsolete doc file
3749
3750 2005-09-21  David Schleef  <ds@schleef.org>
3751
3752         * gst/gstelementfactory.c: (gst_element_factory_make): Drink a
3753         little beer, fix a little leak.
3754
3755 2005-09-21  Stefan Kost  <ensonic@users.sf.net>
3756
3757         * docs/gst/gstreamer-docs.sgml:
3758         * docs/gst/gstreamer-sections.txt:
3759         * docs/gst/tmpl/.cvsignore:
3760         * gst/Makefile.am:
3761         * gst/gst.h:
3762         * gst/gstbin.c:
3763         * gst/gstelement.h:
3764         * gst/gstindex.c: (gst_index_class_init):
3765         * gst/gstindex.h:
3766         * gst/gstindexfactory.c: (gst_index_factory_get_type),
3767         (gst_index_factory_class_init), (gst_index_factory_init),
3768         (gst_index_factory_finalize), (gst_index_factory_new),
3769         (gst_index_factory_destroy), (gst_index_factory_find),
3770         (gst_index_factory_create), (gst_index_factory_make):
3771         * gst/gstindexfactory.h:
3772         * gst/gstpluginfeature.c:
3773         * gst/gstpluginfeature.h:
3774         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
3775           more docs inlined, splitted gstindex.{c,h}
3776
3777 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
3778
3779         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
3780           fix a leak
3781
3782 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
3783
3784         * gst/elements/gstfilesink.c: (gst_file_sink_init):
3785           Set sync to FALSE by default.
3786
3787 2005-09-20  Wim Taymans  <wim@fluendo.com>
3788
3789         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
3790         (gst_base_sink_init):
3791         Make sync property settable from subclass.
3792
3793         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
3794         (gst_fake_sink_change_state):
3795         Set sync to FALSE by default.
3796
3797 2005-09-20  Wim Taymans  <wim@fluendo.com>
3798
3799         * gst/gstbus.c: (poll_func), (poll_timeout), (gst_bus_poll):
3800         * tools/gst-launch.c: (main):
3801         The timeout handler should have lower priority than the source
3802         so we don't timeout before popping a message with 0 timeout.
3803         Dump error messages after failed state change.
3804
3805 2005-09-20  Tim-Philipp Müller  <tim at centricular dot net>
3806
3807         * tools/gst-inspect.c: (print_element_properties_info):
3808           Fix two typos.
3809
3810 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
3811
3812         * check/gst/gstevent.c:
3813         * gst/elements/gstfakesink.c:
3814         * gst/elements/gstfakesink.h:
3815           remove the sync property from fakesink.
3816           has the side effect of setting sync TRUE
3817           for fakesink, which is a change.  Anyone who knows how
3818           to fix this nicely in a GObject-y way, feel free.
3819
3820 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
3821
3822         * docs/gst/gstreamer-docs.sgml:
3823           remove probe refsection
3824
3825 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
3826
3827         * check/Makefile.am:
3828           disable valgrinding the controller test again
3829         * docs/gst/gstreamer-sections.txt:
3830           update for api-changes
3831
3832 2005-09-20  Wim Taymans  <wim@fluendo.com>
3833
3834         * gst/base/gstbasesink.c: (gst_base_sink_class_init),
3835         (gst_base_sink_set_property), (gst_base_sink_get_property),
3836         (gst_base_sink_do_sync):
3837         * gst/base/gstbasesink.h:
3838         Added sync property to basesink to disable clock sync.
3839
3840 2005-09-20  Andy Wingo  <wingo@pobox.com>
3841
3842         * gst/gstelementfactory.c (gst_element_factory_create): Avoid
3843         eating the caller's refcount.
3844
3845         * gst/gstobject.h (GST_OBJECT_REFCOUNT) 
3846         (GST_OBJECT_REFCOUNT_VALUE): Conditionally fondle the right
3847         refcount.
3848
3849         * gst/gstconfig.h.in (GST_HAVE_GLIB_2_8):
3850         * configure.ac (GST_HAVE_GLIB_2_8_DEFINE): Make the availability
3851         of GLib 2.8 public, so we can know which refcount to check in
3852         tests.
3853
3854         * gst/gstobject.c: Use the GST_HAVE_GLIB_2_8 define.
3855         (gst_object_init): Only set the gst refcount if we're going ahead
3856         with the refcount hack.
3857
3858 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
3859
3860         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
3861         * libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
3862           more leaks plumbed, added more debug-logging
3863         * gst/gstmacros.h:
3864           whitespace fix
3865
3866 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
3867
3868         * gst/gstmessage.c:
3869           remove include of gstmemchunk.h
3870
3871 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
3872
3873         * gst/gstclock.c: (_gst_clock_id_free):
3874           Commit from the Political Party For More Atomic CVS Commits,
3875           so that people don't waste too much of their day fishing
3876           out obvious leaks out of massive commits.
3877           Oh, and fix a pretty damn obvious leak in the memchunk
3878           removal code.
3879
3880 2005-09-20  Stefan Kost  <ensonic@users.sf.net>
3881
3882         * check/Makefile.am:
3883         * check/gst-libs/controller.c: (plugin_init), (GST_START_TEST):
3884           plug mem-leak, re-add to valgrindable tests
3885
3886 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
3887
3888         * gst/gstplugin.h:
3889           unbreak the build for those who have chronic arthritis
3890           and typing "make check" is just too taxing on the hands
3891
3892 2005-09-20  Andy Wingo  <wingo@pobox.com>
3893
3894         * gst/gst.h: Re-add marshal to gst.h's include list -- if we
3895         really want it out, you should fix plugins at the same time.
3896
3897 2005-09-19  Stefan Kost  <ensonic@users.sf.net>
3898
3899         * configure.ac:
3900         * docs/gst/gstreamer-sections.txt:
3901         * gst/gstobject.c:
3902           added missing symbols to api docs
3903           disable ref-count hack if we have glib >= 2.8
3904
3905 2005-09-19  David Schleef  <ds@schleef.org>
3906
3907         * docs/gst/Makefile.am: Ignore a few more internal headers
3908         * docs/gst/gstreamer-docs.sgml: Remove old sections
3909         * docs/gst/gstreamer-sections.txt: Remove old sections
3910         * docs/gst/tmpl/gstobject.sgml: update
3911         * docs/gst/tmpl/gstplugin.sgml: update
3912         * docs/gst/tmpl/gstpluginfeature.sgml: update
3913         * docs/random/ds/0.9-suggested-changes: update.
3914         * gst/Makefile.am: remove memchunk and trashstack, since they're
3915           not used.
3916         * gst/gst.c: (gst_deinit): rename gst_registry_deinit to _cleanup
3917         * gst/gst.h: don't include some headers
3918         * gst/gstchildproxy.c: add gstmarshal.h
3919         * gst/gstclock.c: Don't use memchunks
3920         * gst/gstminiobject.c: Add some docs
3921         * gst/gstobject.c: remove DESTROYED flag, since it's redundant
3922         * gst/gstobject.h: same
3923         * gst/gstplugin.c: include gstmacros.h
3924         * gst/gstplugin.h: don't include gstmacros.h, since it's private
3925         * gst/gstquery.c: don't use memchunks
3926         * gst/gstregistry.c: rename gst_registry_deinit()
3927         * gst/gstregistry.h: same
3928
3929 2005-09-19  David Schleef  <ds@schleef.org>
3930
3931         * docs/libs/gstreamer-libs-docs.sgml: Remove docs for getbits
3932         * docs/libs/gstreamer-libs-sections.txt:
3933         * docs/libs/tmpl/gstgetbits.sgml:
3934         * docs/libs/tmpl/gstputbits.sgml:
3935
3936 2005-09-19  Tim-Philipp Müller  <tim at centricular dot net>
3937
3938         * win32/gstenumtypes.c:
3939         * win32/gstenumtypes.h:
3940           Update.
3941
3942 2005-09-19  Wim Taymans  <wim@fluendo.com>
3943
3944         * gst/gstpipeline.c: (do_pipeline_seek), (gst_pipeline_send_event):
3945         Automatically PAUSE and RESUME a pipeline when a flushing seek
3946         is performed.
3947
3948 2005-09-19  Andy Wingo  <wingo@pobox.com>
3949
3950         * gst/gstregistry.h: Spacing fixen.
3951
3952 2005-09-19  Wim Taymans  <wim@fluendo.com>
3953
3954         * gst/base/gstbasesrc.c: (gst_base_src_change_state):
3955         Handle state change failure more correctly.
3956
3957 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
3958
3959         * check/Makefile.am:
3960         * check/pipelines/cleanup.c: (run_pipeline):
3961         * check/pipelines/simple_launch_lines.c: (run_pipeline),
3962         (GST_START_TEST):
3963           enable cleanup again after fixing the leak
3964         * docs/README:
3965           some more info on docs
3966
3967 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
3968
3969         * check/Makefile.am:
3970           re-enable tests now that leaks are plugged
3971         * check/gst/gst.c:
3972         * check/gst/gstbin.c:
3973         * check/gst/gstpipeline.c:
3974           add some more tests while fixing leaks
3975         * common/check.mak:
3976           make sure binaries are uptodate when valgrinding/gdbing
3977         * gst/gst.c:
3978         * gst/gstelementfactory.c:
3979           remove a ref too many, and add a FIXME for when we get
3980           round to disposing of classes
3981         * gst/gstplugin.c:
3982           fix the refcounting when loading a plugin from a file and
3983           the code pretends that the pointer is the same even though
3984           of course it can change
3985         * gst/gstpluginfeature.c:
3986           unref plugins marked cached (a bit confusing as a name)
3987           as the docs state should be done
3988           various doc additions to explain refcounting
3989         * gst/gstregistry.c:
3990         * gst/gstregistryxml.c:
3991           debugging
3992
3993 2005-09-19  Wim Taymans  <wim@fluendo.com>
3994
3995         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
3996         * check/gst/gstbus.c: (message_func_eos), (message_func_app),
3997         (send_messages), (GST_START_TEST), (gstbus_suite):
3998         * check/gst/gstpipeline.c: (GST_START_TEST):
3999         * check/pipelines/cleanup.c: (run_pipeline):
4000         * check/pipelines/simple_launch_lines.c: (run_pipeline),
4001         (GST_START_TEST):
4002         * gst/gstbus.c: (gst_bus_have_pending), (gst_bus_source_prepare),
4003         (gst_bus_source_check), (gst_bus_source_dispatch),
4004         (gst_bus_create_watch), (gst_bus_add_watch_full),
4005         (gst_bus_add_watch), (poll_func), (poll_timeout), (gst_bus_poll):
4006         * gst/gstbus.h:
4007         * tools/gst-launch.c: (event_loop):
4008         * tools/gst-md5sum.c: (event_loop):
4009         GstBusHandler -> GstBusFunc, return value has the same meaning as
4010         any other GSource (FALSE == remove source).
4011         _add_watch() and _add_watch_full() now take a MessageType mask to
4012         only handle specific types of messages.
4013         _poll() returns the GstMessage instead of the message type to avoid
4014         race conditions.
4015         _have_pending() takes a MessageType mask now too.
4016         Added testsuite for multiple bus watches.
4017         Fix testsuites and applications for new bus API.
4018
4019 2005-09-19  Thomas Vander Stichele  <thomas at apestaart dot org>
4020
4021         * check/Makefile.am:
4022           mark a bunch of the tests as to fix until we fix them
4023
4024 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
4025
4026         * common/check.mak:
4027           use GST_PLUGIN settings for valgrind tests as well, so we're
4028           valgrinding the correct thing
4029         * gst/gst.c: (init_post):
4030           plug another leak
4031
4032 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
4033
4034         * gst/gst.c: (init_post), (gst_deinit):
4035         * gst/gstelementfactory.c: (gst_element_factory_class_init),
4036         (gst_element_factory_finalize), (gst_element_factory_cleanup):
4037         * gst/gstindex.c: (gst_index_factory_class_init),
4038         (gst_index_factory_finalize):
4039         * gst/gstobject.c: (gst_object_dispose):
4040         * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_class_init),
4041         (gst_plugin_load_file), (gst_plugin_desc_free):
4042         * gst/gstpluginfeature.c: (gst_plugin_feature_class_init),
4043         (gst_plugin_feature_finalize):
4044         * gst/gstregistry.c: (gst_registry_class_init),
4045         (gst_registry_init), (gst_registry_finalize),
4046         (gst_registry_get_default), (gst_registry_deinit):
4047         * gst/gstregistry.h:
4048         * gst/gstregistryxml.c: (load_feature), (load_plugin):
4049           various cleanups and memleak plugging.  make valgrind is happy now.
4050
4051 2005-09-18  Thomas Vander Stichele  <thomas at apestaart dot org>
4052
4053         * common/check.mak:
4054           add a check-valgrind target
4055
4056 2005-09-18  David Schleef  <ds@schleef.org>
4057
4058         * tools/gst-inspect.c: Revert the GOption code.
4059
4060 2005-09-17  David Schleef  <ds@schleef.org>
4061
4062         * check/Makefile.am: Fix environment variables.
4063         * check/gst/gstplugin.c: Fix for API changes.
4064         * tools/gst-inspect.c: Fix for API changes.
4065         * tools/gst-xmlinspect.c: Fix for API changes.
4066         * gst/gstelementfactory.c:
4067         * gst/gstplugin.c:
4068         * gst/gstplugin.h:
4069         * gst/gstpluginfeature.c:
4070         * gst/gstpluginfeature.h:
4071         * gst/gstregistry.c:
4072         * gst/gstregistry.h:
4073         * gst/gstregistryxml.c:
4074         * gst/gsttypefind.c:
4075         * gst/gsttypefindfactory.c:
4076         * gst/indexers/gstfileindex.c:
4077         * gst/indexers/gstmemindex.c:
4078         * gst/schedulers/Makefile.am:
4079           Change registry to keep track of both plugins and features,
4080           removing the feature tracking from plugins themselves.
4081
4082 2005-09-16  Thomas Vander Stichele  <thomas at apestaart dot org>
4083
4084         * check/Makefile.am:
4085         * tools/gst-register.1.in:
4086           remove gst-register
4087
4088 2005-09-15  David Schleef  <ds@schleef.org>
4089
4090         * check/gst/gstplugin.c:
4091         * gst/gstelementfactory.c:
4092         * gst/gstplugin.c:
4093         * gst/gstpluginfeature.c:
4094         * gst/gstregistry.c:
4095           Getting tired of debugging.  Disabled all the unreffing of
4096           plugins and features, which fixes the segfaults, but of
4097           course leaks like crazy.  At least playbin works.
4098
4099 2005-09-15  David Schleef  <ds@schleef.org>
4100
4101         * check/gst/gstplugin.c: (register_check_elements),
4102         (GST_START_TEST), (peek), (suggest), (gst_plugin_suite):
4103         More testing
4104         * gst/elements/gsttypefindelement.c: Fix refcounting.
4105         * gst/gsttypefind.c:
4106         * gst/gsttypefindfactory.c:
4107         * gst/gsttypefindfactory.h:
4108
4109 2005-09-15  David Schleef  <ds@schleef.org>
4110
4111         * gst/gstindex.c: get refcounting correct.
4112         * gst/gstregistry.c: Handle the case where a feature/plugin is
4113           not found.
4114
4115 2005-09-15  David Schleef  <ds@schleef.org>
4116
4117         * check/Makefile.am:
4118         * check/gst/gstplugin.c: Add test
4119         * gst/gstplugin.c: Fix problems noticed by testsuite
4120         * gst/gstplugin.h:
4121         * gst/gstregistry.c: 
4122         * gst/gstregistry.h:
4123
4124 2005-09-15  David Schleef  <ds@schleef.org>
4125
4126         * gst/gstplugin.c: Implement semi-decent recounting and locking
4127           in plugins and plugin features.
4128         * gst/gstplugin.h:
4129         * gst/gstpluginfeature.c:
4130         * gst/gstpluginfeature.h:
4131         * gst/gstregistry.c:
4132
4133 2005-09-15  Michael Smith <msmith@fluendo.com>
4134
4135         * gst/gstregistry.c: (gst_registry_get_feature_list):
4136           Implement this. Makes oggdemux work; decodebin still broken.
4137
4138 2005-09-14  David Schleef  <ds@schleef.org>
4139
4140         * configure.ac: Add -no-undefined to GST_PLUGIN_LDFLAGS (bug
4141           #316076)
4142         * gst/base/Makefile.am: Add -no-undefined to LDFLAGS for libs
4143         * gst/check/Makefile.am:
4144         * libs/gst/controller/Makefile.am:
4145         * libs/gst/dataprotocol/Makefile.am:
4146
4147 2005-09-14  David Schleef  <ds@schleef.org>
4148
4149         * configure.ac: Remove getbits library.  Nothing uses it, and
4150           it should be in something like liboil if someone did want
4151           to use it.
4152         * libs/gst/Makefile.am:
4153         * libs/gst/getbits/Makefile.am:
4154         * libs/gst/getbits/gbtest.c:
4155         * libs/gst/getbits/getbits.c:
4156         * libs/gst/getbits/getbits.h:
4157         * libs/gst/getbits/gstgetbits_generic.c:
4158         * libs/gst/getbits/gstgetbits_i386.s:
4159         * libs/gst/getbits/gstgetbits_inl.h:
4160
4161 2005-09-14  David Schleef  <ds@schleef.org>
4162
4163         * gst/Makefile.am: Dist glib-compat.h
4164
4165 2005-09-14  David Schleef  <ds@schleef.org>
4166
4167         * configure.ac: Remove gst/registries, since it's no longer used.
4168         * gst/registries/Makefile.am:
4169         * gst/registries/gstlibxmlregistry.c:
4170         * gst/registries/gstlibxmlregistry.h:
4171         * gst/registries/gstxmlregistry.c:
4172         * gst/registries/gstxmlregistry.h:
4173         * gst/registries/registrytest.c:
4174
4175 2005-09-14  David Schleef  <ds@schleef.org>
4176
4177         * gst/glib-compat.h:
4178         * gst/gstregistryxml.c:
4179           Convergence is near.  Seriously.
4180
4181 2005-09-14  David Schleef  <ds@schleef.org>
4182
4183         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
4184         * gst/glib-compat.h:
4185           Attempt #4 to appease the buildbots.
4186
4187 2005-09-14  David Schleef  <ds@schleef.org>
4188
4189         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
4190           Attempt #3.
4191
4192 2005-09-14  David Schleef  <ds@schleef.org>
4193
4194         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
4195         Attempt #2.
4196
4197 2005-09-14  David Schleef  <ds@schleef.org>
4198
4199         * gst/Makefile.am: Oh yeah, libgstreamer.so needs to contain
4200           the new functions.
4201
4202 2005-09-14  David Schleef  <ds@schleef.org>
4203
4204         * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat):
4205         * gst/glib-compat.h: Add some functions that are in newer versions
4206           of glib than we care to require.
4207         * gst/gstregistryxml.c: Use them.
4208
4209 2005-09-14  David Schleef  <ds@schleef.org>
4210
4211         * po/POTFILES.in: remove gst-register.c
4212
4213 2005-09-14  David Schleef  <ds@schleef.org>
4214
4215         * docs/gst/gstreamer-docs.sgml:
4216         * docs/gst/gstreamer-sections.txt:
4217         * docs/gst/gstreamer.types:
4218         * docs/gst/tmpl/gstelement.sgml:
4219         * docs/gst/tmpl/gstplugin.sgml:
4220         * docs/gst/tmpl/gstpluginfeature.sgml:
4221           Documentation updates for registry changes.
4222
4223 2005-09-14  David Schleef  <ds@schleef.org>
4224
4225         * gst/gstregistryxml.c: Copy g_mkdir_with_parent() from glib,
4226           because we don't require glib-2.8.
4227
4228 2005-09-14  David Schleef  <ds@schleef.org>
4229
4230         * gst/gstregistryxml.c: Added.  Essentially moved out of the
4231           registries directory.
4232
4233 2005-09-14  David Schleef  <ds@schleef.org>
4234
4235         * check/Makefile.am:
4236         * check/generic/states.c:
4237         * gst/Makefile.am:
4238         * gst/gst.c:
4239         * gst/gst.h:
4240         * gst/gst_private.h:
4241         * gst/gstelementfactory.c:
4242         * gst/gstindex.c:
4243         * gst/gstinfo.c:
4244         * gst/gstplugin.c:
4245         * gst/gstplugin.h:
4246         * gst/gstpluginfeature.c:
4247         * gst/gstpluginfeature.h:
4248         * gst/gstregistry.c:
4249         * gst/gstregistry.h:
4250         * gst/gstregistrypool.c: remove
4251         * gst/gstregistrypool.h: remove
4252         * gst/gsttypefind.c:
4253         * gst/gsttypefindfactory.c:
4254         * gst/gsturi.c:
4255         * tools/Makefile.am:
4256         * tools/gst-compprep.c:
4257         * tools/gst-inspect.c:
4258         * tools/gst-register.c: remove
4259         * tools/gst-xmlinspect.c:
4260           Registry rewrite.  Changes registry from being a file created
4261           by a tool into a simple cache file created automatically by 
4262           libgstreamer.  Removed gst-register (because it's no longer
4263           needed).  Remove registry pools, because we only have one
4264           registry implementation (XML).  Fix up other subsystems as
4265           necessary.
4266
4267 2005-09-13  Michael Smith <msmith@fluendo.com>
4268
4269         * gst/gstconfig.h.in:
4270           Don't Use windows linking attributes for MinGW. Fixes #316157
4271
4272 2005-09-13  Thomas Vander Stichele  <thomas at apestaart dot org>
4273
4274         * gst/gstutils.c: (set_state_async_thread_func),
4275         (gst_element_set_state_async):
4276           Apparently people think it's better if this function doesn't
4277           try to set the state to whatever state was asked for on the first
4278           call to this function for any object.  Seriously.
4279
4280 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4281
4282         * check/gst/gstpipeline.c: (GST_START_TEST):
4283         * docs/gst/gstreamer-sections.txt:
4284         * gst/gstutils.c: (set_state_async_thread_func),
4285         (gst_element_set_state_async):
4286         * gst/gstutils.h:
4287           add a "gst_element_set_state_async" method that
4288           sets the state and starts a thread to make sure the state
4289           change completes as best as it can
4290
4291 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4292
4293         * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
4294           codify design+behaviour in testsuite after discussion
4295
4296 2005-09-12  Thomas Vander Stichele  <thomas at apestaart dot org>
4297
4298         * docs/gst/tmpl/gstelement.sgml:
4299         * docs/manual/appendix-quotes.xml:
4300           add a quote
4301         * gst/gstelement.c: (gst_element_set_state):
4302           add some debug
4303
4304 2005-09-12  Jan Schmidt  <thaytan@mad.scientist.com>
4305
4306         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
4307         (gst_base_transform_prepare_output_buf),
4308         (gst_base_transform_handle_buffer):
4309         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip),
4310         (gst_capsfilter_prepare_buf):
4311           Remove the requirement for sub-classes to call the parent
4312           implementation of prepare_output_buffer with a wrapper function.
4313           
4314         * gst/gsttaglist.h:
4315         * gst/gsttagsetter.h:
4316           Fix #define wrapper
4317
4318 2005-09-11  Stefan Kost  <ensonic@users.sf.net>
4319
4320         * docs/gst/gstreamer-sections.txt:
4321           more doc cleanups
4322
4323 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4324
4325         * docs/gst/gstreamer-sections.txt:
4326         * docs/gst/tmpl/gstelement.sgml:
4327         * docs/gst/tmpl/gstplugin.sgml:
4328         * gst/gstminiobject.c:
4329         * gst/gstvalue.h:
4330           docs now stop throwing warnings
4331
4332 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4333
4334         * docs/gst/gstreamer-sections.txt:
4335         * docs/gst/gstreamer.types:
4336         * docs/gst/tmpl/gstpad.sgml:
4337         * docs/gst/tmpl/gsttypes.sgml:
4338         * gst/base/gstadapter.h:
4339         * gst/base/gstbasesink.h:
4340         * gst/base/gstbasesrc.h:
4341         * gst/gstbin.h:
4342         * gst/gstbuffer.h:
4343         * gst/gstbus.h:
4344         * gst/gstcaps.h:
4345         * gst/gstclock.h:
4346         * gst/gstelement.h:
4347         * gst/gstevent.h:
4348         * gst/gstmessage.h:
4349         * gst/gstpad.h:
4350         * gst/gststructure.c:
4351         * gst/registries/gstlibxmlregistry.h:
4352           various documentation fixes
4353
4354 2005-09-11  Thomas Vander Stichele  <thomas at apestaart dot org>
4355
4356         * docs/gst/gstreamer-sections.txt:
4357         * docs/gst/tmpl/gstvalue.sgml:
4358           rearrange gstvalue section
4359         * gst/gstutils.c: (gst_element_state_get_name):
4360           NONE -> VOID
4361         * gst/gstvalue.c: (_gst_value_initialize):
4362         * gst/gstvalue.h:
4363           doc updates
4364
4365 2005-09-10  Jan Schmidt  <thaytan@mad.scientist.com>
4366
4367         * check/gst-libs/controller.c:
4368           Header include fix.
4369         * gst/base/gstbasetransform.c:
4370         (gst_base_transform_default_prepare_buf),
4371         (gst_base_transform_handle_buffer):
4372         * gst/base/gstbasetransform.h:
4373           Some more basetransform changes and fixes to enable sub-classes
4374           that modify buffer metadata only.
4375         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
4376         (gst_capsfilter_init), (gst_capsfilter_transform_ip),
4377         (gst_capsfilter_prepare_buf):
4378           If the output pad has fixed allowed caps and input buffers 
4379           don't have any, set the fixed caps on outgoing buffers.
4380
4381 2005-09-09  Jan Schmidt  <thaytan@mad.scientist.com>
4382         * check/elements/identity.c: (GST_START_TEST):
4383           Make the error a little clearer when the test fails because
4384           identity made a copy of the buffer.
4385         * docs/gst/gstreamer-sections.txt:
4386           New symbols in gstbasetransform.h
4387         * gst/base/gstbasetransform.c: (gst_base_transform_class_init),
4388         (gst_base_transform_init), (gst_base_transform_transform_size),
4389         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
4390         (gst_base_transform_default_prepare_buf),
4391         (gst_base_transform_get_unit_size),
4392         (gst_base_transform_buffer_alloc),
4393         (gst_base_transform_handle_buffer), (gst_base_transform_chain),
4394         (gst_base_transform_change_state),
4395         (gst_base_transform_set_passthrough),
4396         (gst_base_transform_set_in_place),
4397         (gst_base_transform_is_in_place):
4398         * gst/base/gstbasetransform.h:
4399           Change BaseTransform to separate in_place operate from same_caps
4400           output. in_place implies that the element can perform the transform
4401           on incoming buffers in-place, even if the caps on the output are
4402           different.
4403           Sub-class elements can now implement special buffer allocation
4404           methods for outgoing buffers if they wish to.
4405           Big documentation addition.
4406         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_ip):
4407         * gst/elements/gstelements.c:
4408           Changes for basetransform modifications.
4409         * gst/elements/Makefile.am:
4410         * gst/elements/gstfdsrc.c: (gst_fdsrc_init), (gst_fdsrc_create):
4411           Compile fix. Extra debug output.
4412
4413 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4414
4415         * check/gst/gstpad.c: (GST_START_TEST), (name_is_valid),
4416         (gst_pad_suite):
4417           add tests for valid pad naming
4418         * gst/check/gstcheck.c: (gst_check_log_message_func),
4419         (gst_check_log_critical_func):
4420           add ASSERT_WARNING
4421           remove printing of code, it is fragile when the code contains
4422           % and the line number is enough info
4423         * gst/check/gstcheck.h:
4424         * gst/gstpad.c: (gst_pad_template_new):
4425           fix memleaks
4426
4427 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4428
4429         * configure.ac:
4430           say what CHECK flags we use
4431         * docs/libs/gstreamer-libs.types:
4432         * libs/gst/controller/Makefile.am:
4433         * libs/gst/controller/gst-controller.c:
4434         * libs/gst/controller/gst-controller.h:
4435         * libs/gst/controller/gst-helper.c:
4436         * libs/gst/controller/gst-interpolation.c:
4437         * libs/gst/controller/gstcontroller.c:
4438         * libs/gst/controller/gsthelper.c:
4439         * libs/gst/controller/gstinterpolation.c:
4440         * tools/gst-inspect.c: (print_plugin_info):
4441           we don't use dashes in header names
4442
4443 2005-09-09  Thomas Vander Stichele  <thomas at apestaart dot org>
4444
4445         * check/Makefile.am:
4446         * check/gst/.cvsignore:
4447         * check/gst/gstpipeline.c: (pop_messages), (GST_START_TEST),
4448         (gst_pipeline_suite), (main):
4449           adding a test for pipelines and state changes
4450         * gst/gstutils.c: (get_state_func):
4451           add some debugging
4452         * gstreamer.spec.in:
4453           fix up spec file
4454
4455 2005-09-08  Michael Smith <msmith@fluendo.com>
4456
4457         * gst/elements/gstfilesrc.c: (gst_file_src_map_region),
4458         (gst_file_src_map_small_region), (gst_file_src_create_mmap),
4459         (gst_file_src_is_seekable), (gst_file_src_get_size),
4460         (gst_file_src_start):
4461         * gst/elements/gstfilesrc.h:
4462           Various fixes for unseekable, unmmapable, and non-normal files, so
4463           that fallback to read() rather than mmap() works.
4464         * gst/gstevent.c: (gst_event_new_newsegment):
4465           Allow newsegment events with segment_start == segment_end, as will
4466           correctly happen if you use filesrc on a zero-size file, for
4467           example.
4468
4469 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
4470
4471         * gst/gstplugin.c: (gst_plugin_load_file):
4472           Call g_module_close when we don't load the module
4473
4474         * gst/registries/gstlibxmlregistry.c:
4475         (gst_xml_registry_get_property):
4476           Port leak fix from 0.8
4477
4478 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
4479
4480         * docs/gst/gstreamer-docs.sgml:
4481         * docs/gst/tmpl/.cvsignore:
4482         * docs/gst/tmpl/gsttrace.sgml:
4483         * docs/gst/tmpl/gsttrashstack.sgml:
4484         * gst/Makefile.am:
4485         * gst/gst.h:
4486         * gst/gstelement.h:
4487         * gst/gstevent.h:
4488         * gst/gstmessage.c:
4489         * gst/gstmessage.h:
4490         * gst/gsttag.c:
4491         * gst/gsttag.h:
4492         * gst/gsttaginterface.c:
4493         * gst/gsttaginterface.h:
4494         * gst/gsttaglist.c:
4495         * gst/gsttaglist.h:
4496         * gst/gsttagsetter.c:
4497         * gst/gsttagsetter.h:
4498         * gst/gsttrace.c:
4499         * gst/gsttrace.h:
4500         * gst/gsttrashstack.c:
4501           renamed gsttag -> gsttaglist, gsttaginterface -> gsttagsetter
4502           inlined docs for gsttrace, gsttrashstack
4503
4504 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
4505
4506         * gst/Makefile.am:
4507         * gst/elements/gstbufferstore.h:
4508         * gst/elements/gsttypefindelement.c:
4509         * gst/elements/gsttypefindelement.h:
4510         * gst/gst.h:
4511         * gst/gsttypefind.c:
4512         * gst/gsttypefind.h:
4513         * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type),
4514         (gst_type_find_factory_class_init), (gst_type_find_factory_init),
4515         (gst_type_find_factory_dispose),
4516         (gst_type_find_factory_unload_thyself),
4517         (gst_type_find_load_plugin), (gst_type_find_factory_get_list),
4518         (gst_type_find_factory_get_caps),
4519         (gst_type_find_factory_get_extensions),
4520         (gst_type_find_factory_call_function):
4521         * gst/gsttypefindfactory.h:
4522         * gst/registries/gstlibxmlregistry.c:
4523         * gst/registries/gstxmlregistry.c:
4524           splitted gsttypefind into gsttypefind, gsttypefindfactory
4525
4526 2005-09-07  Andy Wingo  <wingo@pobox.com>
4527
4528         * gst/base/gstbasesink.c (gst_base_sink_activate_pull): Fix a race
4529         condition whereby the pad's task function is entered before the
4530         pad_mode variable was set.
4531
4532 2005-09-07  Jan Schmidt  <thaytan@mad.scientist.com>
4533
4534         * gst/gstpad.c: (gst_pad_alloc_buffer):
4535           Catch misbehaving pad_alloc functions that don't
4536           set up caps and do it for them.
4537
4538 2005-09-07  Stefan Kost  <ensonic@users.sf.net>
4539
4540         * check/pipelines/simple_launch_lines.c: (run_pipeline):
4541           test for pipe!=NULL
4542         * docs/gst/tmpl/.cvsignore:
4543         * docs/gst/tmpl/gstmemchunk.sgml:
4544         * docs/gst/tmpl/gstparse.sgml:
4545         * docs/gst/tmpl/gsttaglist.sgml:
4546         * docs/gst/tmpl/gsttagsetter.sgml:
4547         * docs/gst/tmpl/gsttypefind.sgml:
4548         * docs/gst/tmpl/gsttypefindfactory.sgml:
4549         * gst/gstmemchunk.c:
4550         * gst/gstparse.c:
4551         * gst/gsttag.c:
4552         * gst/gsttaginterface.c:
4553         * gst/gsttypefind.c:
4554         * gst/gsttypefind.h:
4555           inlined more docs
4556
4557 === release 0.9.2 ===
4558
4559 2005-09-06  Thomas Vander Stichele  <thomas at apestaart dot org>
4560
4561         * NEWS:
4562         * RELEASE:
4563         * configure.ac:
4564           releasing 0.9.2, "South"
4565
4566 2005-09-05  Andy Wingo  <wingo@pobox.com>
4567
4568         * gst/registries/gstxmlregistry.h:
4569         * gst/registries/gstxmlregistry.c: Um... resurrect...
4570         
4571         * gst/registries/gstxmlregistry.h:
4572         * gst/registries/gstxmlregistry.c: and update to newer API.
4573         Incidentally they should be a bit faster now that they don't have
4574         to parse the caps.
4575         
4576 2005-09-05  Andy Wingo  <wingo@pobox.com>
4577
4578         * gst/registries/gstxmlregistry.h:
4579         * gst/registries/gstxmlregistry.c: Remove from CVS, they were
4580         replaced by the libxml registry a while back
4581
4582 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
4583
4584         * docs/gst/tmpl/gstplugin.sgml:
4585         * gst/elements/gstelements.c:
4586         * gst/gst.c:
4587         * gst/gstplugin.c: (gst_plugin_register_func),
4588         (gst_plugin_desc_copy), (gst_plugin_desc_free),
4589         (gst_plugin_get_source):
4590         * gst/gstplugin.h:
4591         * gst/registries/gstlibxmlregistry.c: (load_plugin),
4592         (gst_xml_registry_save_plugin):
4593         * gst/registries/gstxmlregistry.c: (gst_xml_registry_parse_plugin),
4594         (gst_xml_registry_save_plugin):
4595         * tools/gst-inspect.c: (print_plugin_info):
4596           add a "source" plugin description field, to represent the source
4597           module this plugin is a part of.  By default GST_PLUGIN_DEFINE
4598           will set it to PACKAGE, which is automake's idea of the name of
4599           the source project.
4600
4601 2005-09-03  Thomas Vander Stichele  <thomas at apestaart dot org>
4602
4603         * Makefile.am:
4604         * autogen.sh:
4605         * configure.ac:
4606         * docs/Makefile.am:
4607         * docs/faq/Makefile.am:
4608         * docs/gst/tmpl/gstelement.sgml:
4609         * docs/gst/tmpl/gsttypes.sgml:
4610         * docs/htmlinstall.mak:
4611         * docs/manual/Makefile.am:
4612         * docs/pwg/Makefile.am:
4613           reorganize doc build a little
4614           split out docbook and gtk-doc stuff
4615           have two separate --enable's and enable them through autogen
4616           but disable by default in configure (to be similar to other
4617           projects)
4618         * gstreamer.spec.in:
4619           clean up docs install
4620         * po/af.po:
4621         * po/az.po:
4622         * po/ca.po:
4623         * po/cs.po:
4624         * po/de.po:
4625         * po/en_GB.po:
4626         * po/fr.po:
4627         * po/it.po:
4628         * po/nb.po:
4629         * po/nl.po:
4630         * po/ru.po:
4631         * po/sq.po:
4632         * po/sr.po:
4633         * po/sv.po:
4634         * po/tr.po:
4635         * po/uk.po:
4636         * po/vi.po:
4637           translation updates
4638
4639 2005-09-03  Tim-Philipp Müller  <tim at centricular dot net>
4640
4641         * gst/base/gstbasesink.c: (gst_base_sink_pad_buffer_alloc):
4642           Add comment.
4643           
4644         * gst/elements/gstfakesink.c: (gst_fake_sink_init),
4645         (gst_fake_sink_change_state):
4646           Make state change function thread-safe.
4647           
4648         * gst/gstpad.c: (gst_pad_alloc_buffer):
4649           Set offset on generic buffer allocated by fallback.
4650
4651 2005-09-03  Stefan Kost  <ensonic@users.sf.net>
4652
4653         * docs/gst/gstreamer-sections.txt:
4654         * docs/gst/tmpl/gstelement.sgml:
4655         * gst/gstpad.c:
4656         * libs/gst/controller/gst-controller.c:
4657         (gst_controlled_property_set_interpolation_mode),
4658         (gst_controlled_property_new),
4659         (gst_controller_find_controlled_property):
4660          run the wingo-magic script against the docs
4661
4662 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
4663
4664         * docs/gst/gstreamer-docs.sgml:
4665         * docs/gst/gstreamer-sections.txt:
4666         * docs/gst/tmpl/.cvsignore:
4667         * docs/gst/tmpl/gstelementdetails.sgml:
4668         * docs/gst/tmpl/gstelementfactory.sgml:
4669         * gst/gst.c:
4670         * gst/gstbus.c:
4671         * gst/gstelementfactory.c:
4672         * gst/gstelementfactory.h:
4673           merged elementdetails docs into elementfactory docs
4674           inlined both
4675
4676 2005-09-02  Andy Wingo  <wingo@pobox.com>
4677
4678         * gst/gstelement.h: Add magical pixie dust to make glib-mkenums
4679         consider this enum an enum and not a flags.
4680
4681 2005-09-02  Stefan Kost  <ensonic@users.sf.net>
4682
4683         * docs/gst/gstreamer-docs.sgml:
4684         * docs/gst/tmpl/.cvsignore:
4685         * docs/gst/tmpl/gstghostpad.sgml:
4686         * docs/gst/tmpl/gstiterator.sgml:
4687         * docs/gst/tmpl/gstmacros.sgml:
4688         * docs/gst/tmpl/gstrealpad.sgml:
4689         * docs/gst/tmpl/gstregistry.sgml:
4690         * docs/gst/tmpl/gstregistrypool.sgml:
4691         * docs/gst/tmpl/gststructure.sgml:
4692         * docs/gst/tmpl/gstsystemclock.sgml:
4693         * docs/gst/tmpl/gsttrace.sgml:
4694         * gst/gstghostpad.c:
4695         * gst/gstmacros.h:
4696         * gst/gstmemchunk.c:
4697         * gst/gstmemchunk.h:
4698         * gst/gstqueue.c:
4699         * gst/gstregistry.c:
4700         * gst/gstregistrypool.c:
4701         * gst/gststructure.c:
4702         * gst/gstsystemclock.c:
4703           more docs inlined
4704
4705 2005-09-02  Andy Wingo  <wingo@pobox.com>
4706
4707         * gst/gstelement.h (GstState): Renamed from GstElementState,
4708         changed to be a normal enum instead of flags.
4709         (GstStateChangeReturn): Renamed from GstElementStateReturn, names
4710         munged to be GST_STATE_CHANGE_*.
4711         (GST_STATE_CHANGE): Renamed from GST_STATE_TRANSITION, updated to
4712         work with the new state representation.
4713         (GstStateChange): New enumeration of possible state transitions.
4714         Replaces GST_STATE_FOO_TO_BAR with GST_STATE_CHANGE_FOO_TO_BAR.
4715         (GstElementClass::change_state): Pass the GstStateChange along as
4716         an argument. Helps language bindings, so they don't have to use
4717         tricky lock-needing macros like GST_STATE_CHANGE ().
4718
4719         * scripts/update-states (file): New script. Run it on a file to
4720         update it for state naming and API changes. Updates files in
4721         place.
4722
4723         * All files updated for the new API.
4724
4725 2005-09-02  Thomas Vander Stichele  <thomas at apestaart dot org>
4726
4727         * gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
4728         * gst/gstutils.c: (gst_util_set_value_from_string),
4729         (gst_util_set_object_arg):
4730           fix a bunch of unchecked return values
4731         * tools/gst-complete.c: (main):
4732         * gstreamer.spec.in:
4733           clean up a little
4734
4735 2005-09-01  Wim Taymans  <wim@fluendo.com>
4736
4737         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
4738         (gst_base_sink_event), (gst_base_sink_do_sync),
4739         (gst_base_sink_handle_event):
4740         * gst/base/gstbasesink.h:
4741         Handle newsegments more correctly.
4742
4743         * gst/gstbus.c:
4744         Fix docs.
4745
4746         * gst/gstevent.c: (gst_event_new_newsegment):
4747         A newsegment cannot have a start_time of -1
4748
4749 2005-09-01  Tim-Philipp Müller  <tim at centricular dot net>
4750
4751         * win32/gstenumtypes.c:
4752         * win32/gstenumtypes.h:
4753           Update
4754
4755 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
4756
4757         * libs/gst/controller/gst-controller.c:
4758         (gst_controlled_property_set_interpolation_mode),
4759         (gst_controlled_property_new):
4760          fixed boolean again
4761
4762 2005-08-31  Thomas Vander Stichele  <thomas at apestaart dot org>
4763
4764         * docs/faq/gst-uninstalled:
4765           add -good
4766         * gst/gstevent.c:
4767         * gst/gstevent.h:
4768           remove wrong docs
4769         * gst/gstutils.c: (gst_element_link_filtered):
4770         * gst/gstutils.h:
4771           add gst_element_link_filtered
4772
4773 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
4774
4775         * docs/gst/gstreamer-docs.sgml:
4776         * docs/gst/gstreamer-sections.txt:
4777         * docs/gst/tmpl/.cvsignore:
4778         * docs/gst/tmpl/gsterror.sgml:
4779         * docs/gst/tmpl/gstfilter.sgml:
4780         * docs/gst/tmpl/gsturihandler.sgml:
4781         * docs/gst/tmpl/gsturitype.sgml:
4782         * docs/gst/tmpl/gstutils.sgml:
4783         * docs/gst/tmpl/gstxml.sgml:
4784         * gst/gsterror.c:
4785         * gst/gsterror.h:
4786         * gst/gstfilter.c:
4787         * gst/gsturi.c:
4788         * gst/gsturitype.c:
4789         * gst/gstutils.c:
4790         * gst/gstxml.c:
4791           inlined more docs, fixed double id-ref
4792
4793 2005-08-31  Wim Taymans  <wim@fluendo.com>
4794
4795         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
4796         (gst_base_transform_handle_buffer):
4797         Passthrough elements don't need the caps as they don't care.
4798
4799 2005-08-31  Wim Taymans  <wim@fluendo.com>
4800
4801         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
4802         (gst_base_transform_handle_buffer), (gst_base_transform_chain):
4803         Don't leak refcounts on buffers.
4804
4805 2005-08-31  Wim Taymans  <wim@fluendo.com>
4806
4807         * gst/base/gstbasetransform.c: (gst_base_transform_configure_caps),
4808         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
4809         (gst_base_transform_chain), (gst_base_transform_change_state):
4810         * gst/base/gstbasetransform.h:
4811         Handle the case where we are not negotiated more gracefully.
4812
4813 2005-08-31  Tim-Philipp Müller  <tim at centricular dot net>
4814
4815         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_init),
4816         (gst_file_src_map_region):
4817           Set READONLY flag on mmap'ed buffers, otherwise
4818           gst_buffer_make_writable() won't work properly (#314708).
4819
4820 2005-08-31  Wim Taymans  <wim@fluendo.com>
4821
4822         * gst/base/gstbasetransform.c: (gst_base_transform_handle_buffer):
4823         passthrough elements can even do inplace on non writable
4824         buffers (as they don't touch them).
4825
4826 2005-08-31  Stefan Kost  <ensonic@users.sf.net>
4827
4828         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
4829         (gst_test_mono_source_set_property),
4830         (gst_test_mono_source_class_init), (GST_START_TEST),
4831         (gst_controller_suite):
4832           more tests (hehe I have the most)
4833         * gst/gstbus.c:
4834           describe popping messages whenusing mulltiple sources
4835         * libs/gst/controller/gst-controller.c:
4836         (gst_controlled_property_set_interpolation_mode),
4837         (gst_controlled_property_new):
4838         * libs/gst/controller/gst-controller.h:
4839         * libs/gst/controller/gst-interpolation.c:
4840           implement boolean properties
4841
4842 2005-08-31  Wim Taymans  <wim@fluendo.com>
4843
4844         * gst/gstminiobject.c: (gst_mini_object_ref):
4845         Cannot assert that the refcount has to be positive
4846         since a disposed object can be resurrected.
4847
4848 2005-08-31  Wim Taymans  <wim@fluendo.com>
4849
4850         * gst/gstpad.c: (gst_pad_init):
4851         Revert change, need to first fix badly behaving 
4852         apps.
4853
4854 2005-08-30  Wim Taymans  <wim@fluendo.com>
4855
4856         * check/elements/fakesrc.c: (setup_fakesrc):
4857         * check/elements/identity.c: (setup_identity):
4858         Activate pads before using them.
4859
4860 2005-08-30  Wim Taymans  <wim@fluendo.com>
4861
4862         * gst/base/gstadapter.c: (gst_adapter_flush):
4863         Flushing out 0 bytes is ok for this function.
4864
4865         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
4866         no newsegment gives a warning and sets the start/stop to 
4867         invalid.
4868
4869         * gst/base/gstbasetransform.c: (gst_base_transform_change_state),
4870         (gst_base_transform_set_passthrough):
4871         Some debug info.
4872
4873         * gst/gstminiobject.c: (gst_mini_object_ref):
4874         Check refcount here too.
4875
4876         * gst/gstpad.c: (gst_pad_init):
4877         Pads are initially flushing and refusing data.
4878
4879         * gst/gstutils.c: (gst_element_link_pads_filtered):
4880         When adding a capsfilter element make sure it has the
4881         same state as the parent bin.
4882
4883 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
4884
4885         * docs/gst/tmpl/.cvsignore:
4886         * docs/gst/tmpl/gstformat.sgml:
4887         * docs/gst/tmpl/gstversion.sgml:
4888         * gst/gstbus.h:
4889         * gst/gstformat.c:
4890         * gst/gstformat.h:
4891         * gst/gstversion.h.in:
4892           more docs and two more inlined
4893
4894 2005-08-30  Wim Taymans  <wim@fluendo.com>
4895
4896         * gst/elements/gstfilesink.c: (gst_file_sink_class_init):
4897         Don't sync to clock.
4898
4899 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
4900
4901         * docs/gst/gstreamer-sections.txt:
4902           ultral33t func10ns deserve to appear in the docs actually
4903         * docs/gst/tmpl/.cvsignore:
4904         * docs/gst/tmpl/gstcompat.sgml:
4905         * docs/gst/tmpl/gstconfig.sgml:
4906         * gst/check/gstcheck.c:
4907         * gst/gstcompat.h:
4908         * gst/gstconfig.h.in:
4909           inlined more docs
4910
4911 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
4912
4913         * docs/gst/tmpl/.cvsignore:
4914         * docs/gst/tmpl/gstquery.sgml:
4915         * docs/gst/tmpl/gstutils.sgml:
4916         * gst/gstquery.c:
4917         * gst/gstquery.h:
4918           inlined and extended docs
4919
4920 2005-08-30  Stefan Kost  <ensonic@users.sf.net>
4921
4922         * check/gst-libs/controller.c: (GST_START_TEST),
4923         (gst_controller_suite):
4924           more tests
4925         * docs/gst/tmpl/gstutils.sgml:
4926         * docs/libs/gstreamer-libs-sections.txt:
4927         * docs/libs/tmpl/gstdataprotocol.sgml:
4928           include path fixes
4929         * examples/controller/audio-example.c: (main):
4930           controller example works now
4931         * gst/gstclock.h:
4932           doc fixes
4933         * tools/gst-inspect.c: (print_element_properties_info):
4934           show param spec flags
4935
4936 2005-08-29  Andy Wingo  <wingo@pobox.com>
4937
4938         * gst/gstutils.c (gst_util_uint64_scale): New 3733t funct10n.
4939
4940 2005-08-28  Andy Wingo  <wingo@pobox.com>
4941
4942         * gst/gstutils.h (GST_BOILERPLATE_FULL): Prototype instance_init
4943         as having two arguments instead of just one. Allows superclasses
4944         to access information on subclasses -- see the terrible for() loop
4945         in gtype.c:g_type_create_instance for the reason why. All callers
4946         changed.
4947
4948 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
4949
4950         * docs/design/part-messages.txt:
4951           update info
4952         * docs/gst/tmpl/.cvsignore:
4953         * docs/gst/tmpl/gstcaps.sgml:
4954         * docs/gst/tmpl/gstclock.sgml:
4955         * gst/gstbus.c:
4956         * gst/gstcaps.c:
4957         * gst/gstcaps.h:
4958         * gst/gstclock.c:
4959         * gst/gstclock.h:
4960         * gst/gstmessage.c:
4961           added descriptions for bus and message
4962           inline caps and clock docs
4963
4964 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
4965
4966         * gst/gstmessage.c:
4967         * gst/gstmessage.h:
4968           doc fixes
4969
4970 2005-08-27  Stefan Kost  <ensonic@users.sf.net>
4971
4972         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size):
4973           fix div-by-zero
4974
4975 2005-08-26  Andy Wingo  <wingo@pobox.com>
4976
4977         * check/pipelines/simple_launch_lines.c (run_pipeline): Check
4978         element_set_state's return val.
4979         (test_2_elements): Add test that's been disabled for months.
4980
4981         * gst/elements/gstfakesink.c: Cleanups. Add can-activate-push and
4982         can-activate-pull properties.
4983
4984         * gst/elements/gstfakesrc.c: Cleanups. Add can-activate-push and
4985         can-activate-pull properties. Implement is_seekable so fakesrc can
4986         operate in pull mode.
4987
4988         * gst/base/gstbasesink.c (GstBaseSink): Remove has-loop, has-chain
4989         properties.
4990         (gst_base_sink_activate, gst_base_sink_activate_pull)
4991         (gst_base_sink_activate_push): Make activation mode choosing work.
4992         Cleanups.
4993         (gst_base_sink_chain, gst_base_sink_loop): Assert activation mode
4994         is right. Make pull mode work. Post an eos before pausing in pull
4995         mode.
4996         (gst_base_sink_change_state): Pay attention to the core's
4997         change_state() return val.
4998         
4999         * gst/base/gstbasesrc.c (GstBaseSrc): Remove has-loop,
5000         has-getrange properties. Cleanups.
5001         
5002         * gst/base/gstbasesrc.h (GstBaseSrc): Remove has_loop,
5003         has_getrange and replace with can_activate_pull and
5004         can_activate_push.
5005
5006         * gst/base/gstbasesink.h (GstBaseSink): Rearrange fields, add
5007         locking comments. Remove has_loop, has_chain and replace with
5008         can_activate_pull and can_activate_push.
5009
5010 2005-08-26  Jan Schmidt  <thaytan@mad.scientist.com>
5011
5012         * configure.ac:
5013         * examples/Makefile.am:
5014         * examples/metadata/Makefile.am:
5015         * examples/metadata/read-metadata.c: (message_loop),
5016         (have_pad_handler), (make_pipeline), (print_tag), (main):
5017           Add metadata reading example that loops over a list of filenames,
5018           dumping any tags found.
5019
5020         * gst/gstbus.c: (gst_bus_dispose):
5021         * gst/gstelement.c: (gst_element_dispose):
5022           Release a few potentially-held references in dispose.
5023
5024 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
5025
5026         * docs/gst/tmpl/gstminiobject.sgml:
5027           do *not* add tmpl/*.sgml files to CVS!
5028
5029 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
5030
5031         * libs/gst/bytestream/.cvsignore:
5032         * libs/gst/bytestream/Makefile.am:
5033         * libs/gst/bytestream/adapter.c:
5034         * libs/gst/bytestream/adapter.h:
5035         * libs/gst/bytestream/bytestream.c:
5036         * libs/gst/bytestream/bytestream.h:
5037         * libs/gst/bytestream/filepad.c:
5038         * libs/gst/bytestream/filepad.h:
5039           removing obsolete files
5040
5041 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
5042
5043         * docs/gst/gstreamer-docs.sgml:
5044         * docs/libs/gstreamer-libs-docs.sgml:
5045           disabed additional index entries again, as this makes docs-gen just
5046           slow and they aren't useful yet
5047         * docs/libs/gstreamer-libs-sections.txt:
5048           little -section.txt cleanup for libs
5049
5050 2005-08-26  Thomas Vander Stichele  <thomas at apestaart dot org>
5051
5052         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5053         * gst/base/gstbasetransform.c: (gst_base_transform_transform_size),
5054           fix up some debugging
5055         (gst_base_transform_get_unit_size),
5056         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
5057         (gst_base_transform_handle_buffer):
5058         * gst/base/gstbasetransform.h:
5059           handle and store timed NEWSEGMENT events so that subclasses that
5060           calculate time by counting samples have a segment_start time they
5061           need to add to their timestamps - see audioresample
5062
5063 2005-08-26  Stefan Kost  <ensonic@users.sf.net>
5064
5065         * gst/gstbin.h:
5066           removed ';' from the end of macro defs
5067         * docs/gst/gstreamer-docs.sgml:
5068         * docs/gst/gstreamer-sections.txt:
5069         * docs/gst/tmpl/.cvsignore:
5070         * gst/gstbus.h:
5071         * gst/gstelement.c: (gst_element_class_init),
5072         (gst_element_set_state), (activate_pads),
5073         (gst_element_save_thyself):
5074         * gst/gstevent.c: (gst_event_new_newsegment):
5075         * gst/gstevent.h:
5076         * gst/gstiterator.c:
5077         * gst/gstiterator.h:
5078         * gst/gstpad.c:
5079         * gst/gstprobe.h:
5080         * gst/gstutils.c: (gst_pad_query_convert):
5081         * gst/gstutils.h:
5082           fixed parameter name mismatches between source, header and docs
5083           added some more docs, resolved the last batch of unused elements in
5084           docs (now someone needs to doc them)
5085
5086 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
5087
5088         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_rebuild):
5089         * gst/registries/gstxmlregistry.c: (gst_xml_registry_rebuild):
5090           don't walk through the plugins backwards.  Where is all this
5091           reversed logic coming from ?
5092
5093 2005-08-25  Wim Taymans  <wim@fluendo.com>
5094
5095         * gst/base/gstbasetransform.c: (gst_base_transform_init),
5096         (gst_base_transform_transform_size),
5097         (gst_base_transform_configure_caps),
5098         (gst_base_transform_get_unit_size),
5099         (gst_base_transform_buffer_alloc),
5100         (gst_base_transform_change_state):
5101         * gst/base/gstbasetransform.h:
5102         Cache caps unit_size.
5103         Make sure we cannot negotiate up and downstream at the
5104         same time.
5105
5106 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
5107
5108         * gst/gst.c: (init_pre), (init_post):
5109           register the installed plugin path after the env var
5110         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_save):
5111         * gst/registries/gstxmlregistry.c: (gst_xml_registry_save):
5112           don't reverse order of paths; conserve the order of GST_PLUGIN_PATH
5113           directories, so the tests can prefer uninstalled over installed
5114
5115 2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
5116
5117         * gst/base/gstbasetransform.h:
5118           comment
5119         * gst/gstpad.c:
5120           add to docs
5121
5122 2005-08-25  Wim Taymans  <wim@fluendo.com>
5123
5124         * gst/gstbin.c: (bin_bus_handler):
5125         Be a bit more conservative about the posted message.
5126         
5127         * gst/gstbus.c: (gst_bus_post):
5128         Some cleanups, warn wrong return values.
5129
5130 2005-08-25  Jan Schmidt  <thaytan@mad.scientist.com>
5131
5132         * check/gst/gstbin.c: (GST_START_TEST):
5133         * gst/gstbin.c: (bin_bus_handler):
5134         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
5135         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
5136         (gst_message_new_warning), (gst_message_new_tag),
5137         (gst_message_new_state_changed), (gst_message_new_segment_start),
5138         (gst_message_new_segment_done), (gst_message_new_custom):
5139         * gst/gstmessage.h:
5140         * tools/gst-launch.c: (event_loop):
5141         * tools/gst-md5sum.c: (event_loop):
5142           Revert unpopular change for GST_MESSAGE_SRC to GObject.
5143
5144 2005-08-25  Wim Taymans  <wim@fluendo.com>
5145
5146         * check/generic/states.c: (GST_START_TEST):
5147         Cleanup can be done at the end.
5148
5149         * gst/gsttask.c: (gst_task_get_type), (gst_task_finalize),
5150         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
5151         (gst_task_get_state), (gst_task_start), (gst_task_pause):
5152         Oh boy.. Thanks for finding this, Thomas. 
5153
5154 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
5155
5156         * docs/gst/gstreamer.types:
5157           added missing types
5158
5159 2005-08-25  Stefan Kost  <ensonic@users.sf.net>
5160
5161         * docs/gst/gstreamer-docs.sgml:
5162         * docs/gst/gstreamer-sections.txt:
5163         * docs/gst/tmpl/.cvsignore:
5164         * gst/gstbin.c:
5165         * gst/gstiterator.c:
5166         * gst/gstutils.c:
5167         * gst/registries/gstxmlregistry.h:
5168           added missing classes and symbols (123 more to go)
5169           removed removed symbols from section file
5170           fixed many doc-comments
5171
5172 2005-08-24  Wim Taymans  <wim@fluendo.com>
5173
5174         * check/generic/states.c: (GST_START_TEST):
5175         Make sure all tasks are stopped.
5176
5177         * check/gst/gstbin.c: (GST_START_TEST):
5178         Unref after usage for proper valgrinding.
5179
5180         * gst/gstpad.c: (gst_pad_finalize), (gst_pad_stop_task):
5181         Really wait for the task to stop before destroying the
5182         mutex.
5183
5184         * gst/gstqueue.c: (gst_queue_sink_activate_push),
5185         (gst_queue_src_activate_push):
5186         Small cleanups. Don't stop the task when we did not start
5187         it.
5188
5189         * gst/gsttask.c: (gst_task_get_type), (gst_task_init),
5190         (gst_task_func), (gst_task_cleanup_all), (gst_task_set_lock),
5191         (gst_task_get_state), (gst_task_start), (gst_task_pause),
5192         (gst_task_join):
5193         * gst/gsttask.h:
5194         Protect the stream lock with the object lock.
5195         Disallow setting the stream lock when running.
5196         Add cleanup_all to wait for the threadpool to finish.
5197         Remove code to autoallocate a mutex if none was provided.
5198         Add _join() to wait for a task to stop.
5199         Protect the thread pool with a global lock.
5200
5201 2005-08-24  Wim Taymans  <wim@fluendo.com>
5202
5203         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
5204         (gst_base_sink_get_times), (gst_base_sink_do_sync),
5205         (gst_base_sink_handle_buffer), (gst_base_sink_change_state):
5206         * gst/base/gstbasesink.h:
5207         Handle newsegment events correctly.
5208         Drop buffers out of the segment range.
5209
5210 2005-08-22  Andy Wingo  <wingo@pobox.com>
5211
5212         * gst/gstutils.h (GST_BOILERPLATE_WITH_INTERFACE): New ghetto
5213         macro, implements an interface and gstimplementsinterface for a
5214         new type.
5215
5216 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
5217
5218         * check/Makefile.am:
5219         * check/generic/states.c: (GST_START_TEST), (states_suite), (main):
5220           add a test that does a bunch of state changes on elements
5221           needs some fixing for valgrind
5222         * check/states/sinks.c: (gst_object_suite):
5223           whitespace
5224         * gst/gstcaps.h:
5225           add prototype for gst_caps_is_equal_fixed
5226         * gst/gstplugin.c:
5227         * gst/gstregistrypool.c:
5228           doc fixes
5229
5230 2005-08-24  Andy Wingo  <wingo@pobox.com>
5231
5232         * gst/gstquery.c (gst_query_new_convert): Spew if we try to
5233         convert a negative value. Doesn't make much sense. Mostly this is
5234         here to force callers to ensure -1 maps to -1.
5235
5236 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
5237
5238         * docs/pwg/advanced-types.xml:
5239           Well done to Michael for catching my deliberate introduction
5240           of this spelling mistake. 
5241         * gst/gstbin.c: (gst_bin_remove_func), (bin_bus_handler):
5242         * gst/gstelement.h:
5243           Add GST_ELEMENT_UNPARENTING to prevent races so that we can
5244           unlink pads before removing the element from the bin.
5245
5246 2005-08-24  Andy Wingo  <wingo@pobox.com>
5247
5248         * gst/gst.c (parse_debug_list): Accept e.g. GST_DEBUG=4 to mean
5249         the same thing as GST_DEBUG=*:4.
5250         (parse_debug_level, parse_debug_category): New helper parsers.
5251
5252 2005-08-24  Thomas Vander Stichele  <thomas at apestaart dot org>
5253
5254         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
5255         (gst_base_transform_transform_size), (gst_base_transform_getcaps),
5256         (gst_base_transform_setcaps), (gst_base_transform_get_unit_size),
5257         (gst_base_transform_buffer_alloc),
5258         (gst_base_transform_handle_buffer):
5259           use gboolean return values and pointers to size so we can use the
5260           full GST_BUFFER_SIZE range (guint) for buffer sizes
5261           use GstPadDirection for transform_caps
5262         * gst/base/gstbasetransform.h:
5263           rename get_size to get_unit_size since that's what it is
5264         * gst/elements/gstcapsfilter.c: (gst_capsfilter_transform_caps):
5265           use GstPadDirection for transform_caps
5266         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
5267         * gst/gstutils.h:
5268           cleanup and debugging
5269
5270 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
5271
5272         * gst/gstelement.c: (gst_element_class_init),
5273         (gst_element_set_state), (activate_pads),
5274         (gst_element_save_thyself):
5275         * tools/gst-compprep.c: (main):
5276         * tools/gst-inspect.c: (print_element_properties_info):
5277         * tools/gst-xmlinspect.c: (print_element_properties):
5278           Fixed long standing mem-leak
5279
5280 2005-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
5281
5282         * check/gst/gstbin.c: (GST_START_TEST):
5283         * gst/gstbin.c: (bin_bus_handler):
5284         * gst/gstmessage.c: (gst_message_finalize), (_gst_message_copy),
5285         (gst_message_new), (gst_message_new_eos), (gst_message_new_error),
5286         (gst_message_new_warning), (gst_message_new_tag),
5287         (gst_message_new_state_changed), (gst_message_new_segment_start),
5288         (gst_message_new_segment_done), (gst_message_new_custom):
5289         * gst/gstmessage.h:
5290         * tools/gst-launch.c: (event_loop):
5291         * tools/gst-md5sum.c: (event_loop):
5292           Change GST_MESSAGE_SRC to be a GObject rather than a GstObject, so
5293           that applications can sensibly post custom messages with references
5294           to their own objects.
5295
5296 2005-08-24  Andy Wingo  <wingo@pobox.com>
5297
5298         * gst/gstpad.c (gst_pad_fixate_caps): Check if the caps is fixed
5299         already.
5300
5301 2005-08-24  Wim Taymans  <wim@fluendo.com>
5302
5303         * gst/base/gstbasetransform.c: (gst_base_transform_init),
5304         (gst_base_transform_transform_caps),
5305         (gst_base_transform_transform_size),
5306         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
5307         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
5308         (gst_base_transform_handle_buffer):
5309         * gst/base/gstbasetransform.h:
5310         Many fixes and new features added by Thomas. Can now also do
5311         transforms with variable sizes and a custom fixate_caps function.
5312
5313 2005-08-24  Wim Taymans  <wim@fluendo.com>
5314
5315         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
5316         Some debugging.
5317
5318         * gst/gstclock.h:
5319         Cast to ClockTime before formatting to time.
5320
5321         * gst/gstutils.h:
5322         Cleanups.
5323
5324 2005-08-24  Stefan Kost  <ensonic@users.sf.net>
5325
5326         * check/gst-libs/controller.c: (GST_START_TEST),
5327         (gst_controller_suite):
5328         * docs/gst/tmpl/gstcaps.sgml:
5329         * docs/gst/tmpl/gstghostpad.sgml:
5330         * docs/gst/tmpl/gstquery.sgml:
5331         * docs/gst/tmpl/gstutils.sgml:
5332         * libs/gst/controller/gst-helper.c: (gst_object_set_controller),
5333         (gst_object_sink_values), (gst_object_get_value_arrays),
5334         (gst_object_get_value_array):
5335           gracefully handle helper method calls to objects that are not beeing
5336           controlled, added test case for that          
5337
5338 2005-08-23  Wim Taymans  <wim@fluendo.com>
5339
5340         * gst/gstevent.c: (_gst_event_copy), (gst_event_new_custom),
5341         (gst_event_new_newsegment), (gst_event_parse_newsegment),
5342         (gst_event_new_tag), (gst_event_parse_tag), (gst_event_new_qos),
5343         (gst_event_parse_qos), (gst_event_new_seek),
5344         (gst_event_parse_seek):
5345         * gst/gstevent.h:
5346         Some more debugging output and doc cleanups.
5347
5348         * gst/gstqueue.c: (gst_queue_handle_sink_event):
5349         Fix possible deadlock.
5350
5351 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
5352
5353         * docs/gst/gstreamer-docs.sgml:
5354         * docs/gst/gstreamer-sections.txt:
5355         * docs/gst/gstreamer.types:
5356         * docs/gst/tmpl/.cvsignore:
5357         * gst/gstbin.h:
5358         * gst/gstbus.c:
5359         * gst/gstelement.c:
5360         * gst/gstevent.h:
5361           added 100 symbols from gstreamer-unused.txt to the right sections
5362           fixed more broken comments
5363           added GstBus to docs
5364
5365 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
5366
5367         * docs/gst/gstreamer-sections.txt:
5368         * docs/gst/tmpl/.cvsignore:
5369         * docs/gst/tmpl/gstbin.sgml:
5370         * docs/gst/tmpl/gstbuffer.sgml:
5371         * gst/base/gstbasesrc.c:
5372         * gst/gstbin.c: (gst_bin_get_type), (gst_bin_class_init):
5373         * gst/gstbuffer.c:
5374         * gst/gstbuffer.h:
5375         * tools/gst-launch.1.in:
5376           inlined more doc comments, added missing comments and fixed comments
5377           fixed typos
5378
5379 2005-08-23  Thomas Vander Stichele  <thomas at apestaart dot org>
5380
5381         * gst/gstbuffer.c: (gst_buffer_new_and_alloc):
5382           some debugging
5383         * gst/gstcaps.h:
5384           whitespace fixes
5385         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_alloc_buffer):
5386           more debugging
5387         * gst/gststructure.c: (gst_caps_structure_fixate_field_boolean):
5388         * gst/gststructure.h:
5389           add a fixate function for booleans; add a FIXME that these func
5390           names should probably be gst_structure_fixate_*
5391
5392 2005-08-23  Stefan Kost  <ensonic@users.sf.net>
5393
5394         * docs/gst/gstreamer-docs.sgml:
5395         * docs/gst/gstreamer-sections.txt:
5396         * gst/Makefile.am:
5397         * gst/gstbin.c: (gst_bin_get_type),
5398         (gst_bin_child_proxy_get_child_by_index),
5399         (gst_bin_child_proxy_get_children_count),
5400         (gst_bin_child_proxy_init):
5401         * gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
5402         (gst_child_proxy_get_child_by_index),
5403         (gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
5404         (gst_child_proxy_get_property), (gst_child_proxy_get_valist),
5405         (gst_child_proxy_get), (gst_child_proxy_set_property),
5406         (gst_child_proxy_set_valist), (gst_child_proxy_set),
5407         (gst_child_proxy_child_added), (gst_child_proxy_child_removed),
5408         (gst_child_proxy_base_init), (gst_child_proxy_get_type):
5409         * gst/gstchildproxy.h:
5410         * gst/parse/grammar.y:
5411         * tools/gst-inspect.c: (print_interfaces),
5412         (print_element_properties_info), (print_element_info):
5413           ported gstchildproxy over from 0.8
5414           ported gst-inspect fixes and enhancements over from 0.8
5415
5416 2005-08-22  Wim Taymans  <wim@fluendo.com>
5417
5418         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
5419         (gst_base_transform_handle_buffer):
5420         Also call the transform function if we have ANY caps.
5421
5422         * gst/gstpipeline.c: (gst_pipeline_set_new_stream_time):
5423         Fix debug info.
5424
5425 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
5426
5427         * gst/base/gstbasesrc.c: (gst_base_src_event_handler)
5428           Don't pretend to handle seek events if the source is not seekable
5429
5430 2005-08-22  Jan Schmidt  <thaytan@mad.scientist.com>
5431
5432         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5433           Remove extra parameter to debug output
5434
5435         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
5436         (gst_base_src_do_seek), (gst_base_src_activate_push):
5437           Fix seek event handling.
5438
5439         * gst/gstpipeline.c: (gst_pipeline_change_state):
5440         * gst/gstqueue.c: (gst_queue_handle_sink_event),
5441         (gst_queue_src_activate_push):
5442           Don't start the src pad task on FLUSH_STOP if the pad
5443           isn't linked.
5444           Debug changes.
5445
5446 2005-08-22  Wim Taymans  <wim@fluendo.com>
5447
5448         * check/gst/gstcaps.c: (GST_START_TEST), (gst_caps_suite):
5449         Added check for gst_static_caps_get() refcounting.
5450
5451 2005-08-22  Wim Taymans  <wim@fluendo.com>
5452
5453         * gst/gstcaps.c: (gst_static_caps_get), (gst_caps_to_string):
5454         Make _static_caps_get() refcounting sane.
5455         
5456         * gst/gstelement.c: (gst_element_set_state):
5457         Add g_return_val_if_fail() to protect against segfaults.
5458
5459 2005-08-22  Stefan Kost  <ensonic@users.sf.net>
5460
5461         * docs/gst/tmpl/gstevent.sgml:
5462         * gst/gstevent.c:
5463         * gst/gstevent.h:
5464           inlined remaining docs, added missing doc comments
5465
5466 2005-08-22  Thomas Vander Stichele  <thomas at apestaart dot org>
5467
5468         * check/gst/gstbin.c: (GST_START_TEST):
5469           since we don't know when preroll is done, use refcount range
5470           check for the sink
5471         * gst/check/gstcheck.h:
5472           add macro for checking refcount range
5473
5474 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
5475
5476         * check/Makefile.am:
5477           clean up environment for when registry gets built versus
5478           when actual tests are run; valgrind seems to not report
5479           leaks if GST_PLUGIN_PATH is set to some specific values
5480         * check/gst/gstbin.c: (GST_START_TEST):
5481           add more refcounting checks; maybe this exposes a
5482           preroll lock bug ?
5483         * common/check.mak:
5484         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5485         * gst/check/gstcheck.h:
5486         * gst/gstbin.c: (bin_element_is_semi_sink), (gst_bin_get_state),
5487         (gst_bin_change_state):
5488         * gst/gstpad.c: (gst_pad_activate_push), (gst_pad_chain):
5489           add/fix debugging/whitespace
5490
5491 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
5492
5493         * check/gst/gstevent.c: (event_probe), (test_event),
5494         (GST_START_TEST):
5495          Er, don't call gst_bin_watch_for_state_change you idiot.
5496
5497 2005-08-21  Jan Schmidt  <thaytan@mad.scientist.com>
5498
5499         * check/Makefile.am:
5500           Use CHECK_CFLAGS and CHECK_LIBS
5501         * check/gst/gstevent.c: (event_probe), (test_event),
5502         (GST_START_TEST):
5503           Don't leak events.
5504         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
5505         (gst_base_src_start), (gst_base_src_stop),
5506         (gst_base_src_activate_push), (gst_base_src_activate_pull),
5507         (gst_base_src_change_state):
5508           Sprinkle gst_base_src_stop liberally around error paths to fix
5509           problems reusing a source after failed state changes.
5510         * gst/base/gsttypefindhelper.c: (helper_find_peek),
5511         (helper_find_suggest), (gst_type_find_helper):
5512           Extra debug output. Don't segfault on GST_PAD_GETRANGEFUNC = NULL
5513         * gst/gstevent.h:
5514         * docs/gst/tmpl/gstevent.sgml:
5515           Migrate part of the docs from the SGML file. Wait for ensonic to
5516           tell me how I did it wrong ;)
5517         * tools/gst-typefind.c: (main):
5518           Extra robustness to state changes between files.
5519
5520 2005-08-21  Thomas Vander Stichele  <thomas at apestaart dot org>
5521
5522         * check/Makefile.am:
5523           don't valgrind the controller test - it's leaking - Stefan, HELP
5524         * gst/check/gstcheck.c: (gst_check_message_error),
5525         (gst_check_chain_func), (gst_check_setup_element),
5526         (gst_check_teardown_element), (gst_check_setup_src_pad),
5527         (gst_check_teardown_src_pad), (gst_check_setup_sink_pad),
5528         (gst_check_teardown_sink_pad):
5529         * gst/check/gstcheck.h:
5530           add a bunch of methods to set up elements, and src and sink pads
5531         * check/elements/fakesrc.c: (setup_fakesrc), (cleanup_fakesrc):
5532         * check/elements/identity.c: (setup_identity), (cleanup_identity),
5533         (GST_START_TEST):
5534           use them
5535         * gst/gstmessage.c:
5536         * gst/gsttag.h:
5537           whitespace/doc fixes
5538
5539 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5540
5541         * gst/gstelement.h:
5542           make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should
5543           be handled by the application and not always printed as well
5544
5545 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5546
5547         * check/Makefile.am:
5548           set GST_TOOLS_DIR
5549         * gst/check/gstcheck.c: (gst_check_message_error):
5550         * gst/check/gstcheck.h:
5551           add a fail_unless_equals_int
5552           add fail_unless for error messages
5553
5554 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5555
5556         * check/Makefile.am:
5557         * check/gst.supp:
5558         * common/Makefile.am:
5559         * common/check.mak:
5560         * common/gst.supp:
5561           factor out some of the common stuff so we can use it
5562
5563 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5564
5565         * check/Makefile.am:
5566         * check/gst/gstiterator.c: (GST_START_TEST):
5567         * check/gst/gstsystemclock.c: (GST_START_TEST),
5568         (gst_systemclock_suite):
5569         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
5570         * gst/gstclock.c:
5571           valgrind more tests
5572
5573 2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
5574
5575         * check/elements/.cvsignore:
5576         * check/elements/gstfakesrc.c:
5577           rename to name of element
5578         * check/elements/identity.c: (chain_func), (event_func),
5579         (setup_identity), (cleanup_identity), (GST_START_TEST),
5580         (identity_suite), (main):
5581           add a test for identity
5582         * check/Makefile.am:
5583         * pkgconfig/Makefile.am:
5584         * pkgconfig/gstreamer-check.pc.in:
5585         * pkgconfig/gstreamer-check-uninstalled.pc.in:
5586         * gst/check:
5587         * gst/Makefile.am:
5588         * configure.ac:
5589           move the check stuff to a library that gets installed
5590         * check/gst-libs/controller.c: (GST_START_TEST):
5591         * check/gst-libs/gdp.c:
5592         * check/gst/gst.c: (GST_START_TEST):
5593         * check/gst/gstbin.c:
5594         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
5595         * check/gst/gstbus.c:
5596         * check/gst/gstcaps.c: (GST_START_TEST):
5597         * check/gst/gstelement.c:
5598         * check/gst/gstghostpad.c:
5599         * check/gst/gstiterator.c:
5600         * check/gst/gstmessage.c:
5601         * check/gst/gstminiobject.c: (thread_ref), (GST_START_TEST):
5602         * check/gst/gstobject.c:
5603         * check/gst/gstpad.c: (GST_START_TEST):
5604         * check/gst/gststructure.c: (GST_START_TEST):
5605         * check/gst/gstsystemclock.c: (GST_START_TEST),
5606         (gst_systemclock_suite):
5607         * check/gst/gsttag.c: (gst_tag_suite):
5608         * check/gst/gstvalue.c:
5609         * check/pipelines/cleanup.c:
5610         * check/pipelines/simple_launch_lines.c:
5611         * check/states/sinks.c:
5612           change include statement
5613
5614         * docs/gst/gstreamer-sections.txt:
5615         * docs/gst/tmpl/gstpad.sgml:
5616           document more pad stuff
5617         * gst/gstminiobject.c: (gst_mini_object_ref),
5618         (gst_mini_object_unref):
5619           debug refcounting
5620
5621 2005-08-19  Stefan Kost  <ensonic@users.sf.net>
5622
5623         * docs/gst/tmpl/gst.sgml:
5624         * gst/gst.c:
5625           eliminate another tmpl file, fix spelling in the long-description
5626
5627 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
5628
5629         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
5630         (test_event), (timediff), (gstevents_suite):
5631           Should fix build on 64-bit arch's
5632
5633 2005-08-18  Andy Wingo  <wingo@pobox.com>
5634
5635         Make sure that when a pipeline goes to PLAYING, that data has
5636         actually hit the sink.
5637
5638         * check/states/sinks.c (test_sink): A sink that doesn't get any
5639         data shouldn't return SUCCESS for going to either PLAYING or
5640         PAUSED. Test also the return values on the way back down.
5641
5642         * gst/gstelement.c (gst_element_set_state): When changing the
5643         state of an element currently changing state asynchronously, go to
5644         lost-state after commiting the pending state. Makes future calls
5645         to get_state continue to return ASYNC.
5646
5647         * gst/base/gstbasesink.c (gst_base_sink_change_state): Return
5648         ASYNC when going to PLAYING if we still don't have preroll, as can
5649         happen with live sources.
5650
5651 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
5652
5653         * docs/pwg/advanced-types.xml:
5654           Hack long paragraph into 2 chunks as a workaround for buggy
5655           jadetex version in sid and breezy that loops infinitely and
5656           eats all RAM.
5657
5658 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
5659
5660         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
5661         (test_event), (timediff), (gstevents_suite):
5662           Provide more error margin in clock measurements to allow for 
5663           g_get_current_time inaccuracies.
5664
5665 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
5666
5667         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
5668         (test_event), (timediff), (gstevents_suite):
5669            Fix error message output so I might be able to tell why the
5670            test works here but fails on the build farm.
5671
5672 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
5673
5674         * check/Makefile.am:
5675         * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
5676         (test_event), (timediff), (gstevents_suite), (main):
5677           I wrote a test!
5678
5679         * docs/design/part-seeking.txt:
5680           Spelling correction
5681
5682         * docs/gst/tmpl/gstevent.sgml:
5683         * docs/gst/tmpl/gstfakesrc.sgml:
5684           Docs updates.
5685
5686         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
5687           Treat a buffer-without-newsegment the same as a receiving 
5688           a newsegment not in time format, and disable syncing to the clock
5689           with a warning.
5690
5691         * gst/gstbus.c: (gst_bus_set_sync_handler):
5692           Assert if anyone tries to replace the existing sync_handler for bus, 
5693           as only the owner should be setting it.
5694
5695         * gst/gstevent.h:
5696           Have a fixed set of custom event enums with events identified by
5697           their structure name (as in 0.8), rather than a free-for-all
5698           allowing collisions between enum values from different plugins.
5699
5700         * gst/gstpad.c: (gst_pad_class_init):
5701           Docs change.
5702           
5703         * gst/gstqueue.c: (gst_queue_handle_sink_event):
5704           Handle out-of-band downstream events from the sending thread.
5705
5706 2005-08-17  Andy Wingo  <wingo@pobox.com>
5707
5708         * gst/gstpipeline.c (gst_pipeline_change_state): Interpret
5709         play-timeout==0 to mean no timeout at all. In that case, don't
5710         bother with a get_state or a warning, just return directly, even
5711         if it's ASYNC.
5712
5713         * gst/base/gstbasetransform.c: Debug changes.
5714
5715         * gst/gstutils.h:
5716         * gst/gstutils.c (gst_bin_watch_for_state_change): Add function to
5717         ensure bins post state change messages. A bit of a hack but I can't
5718         think of a way to avoid it.
5719
5720         * check/gst/gstbin.c (test_watch_for_state_change): Added test.
5721
5722 2005-08-16  Andy Wingo  <wingo@pobox.com>
5723
5724         * gst/base/gstadapter.h:
5725         * gst/base/gstadapter.c (gst_adapter_take): New function, like
5726         peek() but you own the data. Not terribly efficient atm.
5727
5728 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5729
5730         * gst/gstutils.c: (gst_element_found_tags_for_pad), (push_and_ref),
5731         (gst_element_found_tags):
5732         * gst/gstutils.h:
5733           Add two utility functions for tag handling.
5734
5735 2005-08-16  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5736
5737         * docs/manual/advanced-dataaccess.xml:
5738         * docs/manual/basics-helloworld.xml:
5739           Fix docs to use _bin_add() before _link(), which fixes the examples
5740           with recent core versions (reported by Madhan Raj M
5741           <raj_madan@rediffmail.com>, #313199).
5742
5743 2005-08-16  Wim Taymans  <wim@fluendo.com>
5744
5745         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
5746         Added subtract checks.
5747
5748         * docs/design/part-events.txt:
5749         Some more docs about newsegment
5750
5751         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
5752         Fix FIXME
5753
5754         * gst/gstcaps.c: (gst_caps_to_string):
5755         Add comments, cleanups.
5756         
5757         * gst/gstelement.c: (gst_element_save_thyself):
5758         cleanups
5759         
5760         * gst/gstvalue.c: (gst_value_collect_int_range),
5761         (gst_string_unwrap), (gst_value_union_int_int_range),
5762         (gst_value_union_int_range_int_range),
5763         (gst_value_intersect_int_int_range),
5764         (gst_value_intersect_int_range_int_range),
5765         (gst_value_intersect_double_double_range),
5766         (gst_value_intersect_double_range_double_range),
5767         (gst_value_intersect_list), (gst_value_subtract_int_int_range),
5768         (gst_value_subtract_int_range_int),
5769         (gst_value_subtract_double_range_double),
5770         (gst_value_subtract_double_range_double_range),
5771         (gst_value_subtract_from_list), (gst_value_subtract_list),
5772         (gst_value_can_compare), (gst_value_compare_fraction):
5773         Cleanups, add comments, remove unneeded asserts.
5774
5775 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
5776
5777         * tools/gst-launch.c: (event_loop):
5778           don't convert NULL structures to strings
5779
5780 2005-08-15  Stefan Kost  <ensonic@users.sf.net>
5781
5782         * docs/gst/gstreamer-sections.txt:
5783           made some defines private
5784         * docs/gst/tmpl/gstconfig.sgml:
5785         * docs/gst/tmpl/gstqueue.sgml:
5786         * docs/gst/tmpl/gsttaglist.sgml:
5787         * docs/gst/tmpl/gsttypes.sgml:
5788         * docs/gst/tmpl/gstutils.sgml:
5789         * docs/pwg/appendix-porting.xml:
5790         * gst/base/gstbasesink.h:
5791         * gst/base/gstbasesrc.c:
5792         * gst/base/gstbasesrc.h:
5793         * gst/elements/gstfakesink.c: (gst_fake_sink_class_init):
5794         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init):
5795         * gst/gstelement.c: (gst_element_class_init):
5796         * gst/gstpad.c: (gst_pad_class_init):
5797         * gst/gstqueue.c: (gst_queue_class_init):
5798         * gst/gstxml.c: (gst_xml_class_init):
5799           documented all undocumented signal inline
5800         * libs/gst/controller/gst-controller.h:
5801           added padding
5802
5803 2005-08-15  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5804
5805         * docs/pwg/appendix-porting.xml:
5806           Document _set_link_function -> _set_setcaps_function.
5807
5808 2005-08-15  Thomas Vander Stichele  <thomas at apestaart dot org>
5809
5810         * check/Makefile.am:
5811           add a .check target for running the check
5812         * check/gst-libs/controller.c: (GST_START_TEST):
5813           cosmetic fixups
5814         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
5815           complete checks for gstbuffer; would be nice if I could get the
5816           gcov stuff to work so I can see if I actually completed gstbuffer.c
5817         * check/gstcheck.h:
5818           add ASSERT_BUFFER_REFCOUNT
5819
5820 2005-08-13  Tim-Philipp Müller  <tim at centricular dot net>
5821
5822         * docs/gst/gstreamer-sections.txt:
5823         * gst/gsttag.c: (_gst_tag_initialize), (gst_tag_register):
5824         * gst/gsttag.h:
5825           Add GST_TAG_LANGUAGE_CODE as we have in 0.8, and don't
5826           spew out a warning if a tag that is already registered
5827           is re-registered, unless it is re-registered with a 
5828           different type (#308438).
5829
5830 2005-08-12  Tim-Philipp Müller  <tim at centricular dot net>
5831
5832         * docs/pwg/appendix-porting.xml:
5833         * docs/pwg/building-state.xml:
5834           Add some paragraphs about state changes in 0.9 to the PWG
5835           and the porting guide, in particular about the new meaning
5836           of GST_STATE_PAUSED and how to write state change functions
5837           with concurrent access by multiple threads in mind.
5838
5839 2005-08-11  Stefan Kost  <ensonic@users.sf.net>
5840
5841         * docs/gst/gstreamer-docs.sgml:
5842         * docs/libs/gstreamer-libs-docs.sgml:
5843           added deprecation and since indexes
5844         * libs/gst/controller/gst-controller.c:
5845         * libs/gst/controller/gst-helper.c:
5846           added since tags
5847
5848
5849 2005-08-11  Wim Taymans  <wim@fluendo.com>
5850
5851         * gst/gstghostpad.c: (gst_proxy_pad_set_target_unlocked),
5852         (gst_proxy_pad_set_target), (gst_proxy_pad_get_target),
5853         (gst_proxy_pad_dispose), (gst_ghost_pad_do_activate_push),
5854         (gst_ghost_pad_do_link), (gst_ghost_pad_set_internal),
5855         (gst_ghost_pad_new_notarget), (gst_ghost_pad_get_target),
5856         (gst_ghost_pad_set_target):
5857         Actually implement (re)setting the target on a ghostpad
5858         as described in the docs.
5859
5860 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
5861
5862         * gst/gst.c: (gst_init_check_with_popt_table), (init_pre):
5863           Check whether GST_DEBUG_NO_COLOR environment variable is
5864           set and disable coloured debug output if that is the case.
5865
5866 2005-08-10  Tim-Philipp Müller  <tim at centricular dot net>
5867
5868         * gst/base/gsttypefindhelper.c: (helper_find_peek),
5869         (gst_type_find_helper):
5870           The memory returned by gst_type_find_peek() needs to
5871           stay valid until the end of a typefind function, and
5872           typefind functions may keep results from different 
5873           offsets around, so we can't just unref the buffer from
5874           the previous _peek(), but have to save all buffers 
5875           returned by _peek() until typefinding is done and only
5876           free them then.
5877
5878 2005-08-09  Tim-Philipp Müller  <tim at centricular dot net>
5879
5880         * docs/gst/gstreamer-sections.txt:
5881         * gst/gstutils.h:
5882           New macros: GST_ROUND_UP_2() through GST_ROUND_UP_64().
5883
5884 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5885
5886         * gst/base/gstbasetransform.c: (gst_base_transform_buffer_alloc):
5887           Fix a pretty good memleak.
5888
5889 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
5890
5891         * gst/gstiterator.h:
5892           Fix wrong include and 'make distcheck'.
5893
5894 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5895
5896         * gst/gstbin.c: (bin_bus_handler):
5897           Use gst_element_post_message() instead.
5898
5899 2005-08-08  Tim-Philipp Müller  <tim at centricular dot net>
5900
5901         * gst/base/gstadapter.h:
5902         * gst/base/gstbasesink.h:
5903         * gst/base/gstbasesrc.h:
5904         * gst/base/gstbasetransform.h:
5905         * gst/base/gstcollectpads.h:
5906         * gst/base/gstpushsrc.h:
5907         * gst/gstiterator.h:
5908           Add padding to our base elements' class and instance structs and
5909           to GstIterator (you will need to rebuild all plugins and apps!)
5910
5911 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5912
5913         * gst/gstbin.c: (bin_bus_handler):
5914           Make default message forwarding from child->bus to bin->bus
5915           threadsafe and make it not emit warnings if the parent has no bus.
5916
5917 2005-08-08  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5918
5919         * gst/gstelement.c: (activate_pads):
5920           On paused->ready, set pad->caps to NULL, as is the documented
5921           behaviour in this state change. Fixes playback of series of
5922           media files when visualization is enabled in Totem.
5923
5924 2005-08-07  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
5925
5926         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
5927           Allow NULL as filter-caps (which means "any").
5928
5929 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
5930
5931         * docs/libs/gstreamer-libs-sections.txt:
5932         * libs/gst/controller/gst-controller.c:
5933         * libs/gst/controller/gst-controller.h:
5934         * libs/gst/controller/gst-helper.c:
5935           adding more entries to the docs and fix small doc-bugs
5936
5937 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
5938
5939         * docs/gst/gstreamer-docs.sgml:
5940         * docs/gst/gstreamer-sections.txt:
5941         * docs/gst/gstreamer.types:
5942         * docs/gst/tmpl/gstbasesink.sgml:
5943         * docs/gst/tmpl/gstbasesrc.sgml:
5944         * docs/gst/tmpl/gstbasetransform.sgml:
5945         * docs/gst/tmpl/gstfakesrc.sgml:
5946         * gst/base/gstcollectpads.c:
5947         * gst/base/gstcollectpads.h:
5948         * libs/gst/controller/gst-controller.c:
5949         * libs/gst/controller/gst-controller.h:
5950         * libs/gst/controller/gst-helper.c:
5951         * libs/gst/controller/gst-interpolation.c:
5952         * libs/gst/controller/lib.c:
5953           added long/short desc for controller docs
5954           added collectpads base class docs
5955           added correct includes to base-class docs
5956
5957 2005-08-05  Stefan Kost  <ensonic@users.sf.net>
5958
5959         * check/gst-libs/controller.c: (gst_test_mono_source_get_property),
5960         (gst_test_mono_source_set_property),
5961         (gst_test_mono_source_class_init), (GST_START_TEST),
5962         (gst_controller_suite):
5963         * docs/gst/gstreamer-docs.sgml:
5964         * docs/gst/gstreamer-sections.txt:
5965         * docs/gst/gstreamer.types:
5966         * docs/libs/gstreamer-libs-docs.sgml:
5967         * docs/libs/gstreamer-libs-sections.txt:
5968         * gst/base/gstadapter.c:
5969         * libs/gst/controller/gst-controller.c:
5970         (gst_controlled_property_new), (gst_controlled_property_free),
5971         (gst_controller_new_valist),
5972         (gst_controller_remove_properties_valist),
5973         (gst_controller_sink_values), (_gst_controller_finalize):
5974         * libs/gst/controller/gst-controller.h:
5975         * libs/gst/controller/gst-helper.c:
5976         (gst_object_control_properties), (gst_object_uncontrol_properties),
5977         (gst_object_get_controller), (gst_object_set_controller),
5978         (gst_object_sink_values), (gst_object_get_value_arrays),
5979         (gst_object_get_value_array):
5980           more tests (and fixes) for the controller
5981           more docs for the controller
5982           integrated companies docs for the adapter 
5983
5984 2005-08-05  Thomas Vander Stichele  <thomas at apestaart dot org>
5985
5986         * check/elements/gstfakesrc.c: (setup_fakesrc), (cleanup_fakesrc),
5987         (GST_START_TEST), (fakesrc_suite):
5988           add tests for sizetype
5989
5990 2005-08-04  Andy Wingo  <wingo@pobox.com>
5991
5992         * gst/elements/gstcapsfilter.c: Reimplement using basetransform,
5993         fixes buffer_alloc proxying among other things.
5994
5995         * gst/base/gstbasetransform.c:
5996         * gst/base/gstbasetransform.h:
5997         Revert patch to gstbasetransform from 7-28 removing
5998         delay_configure.
5999
6000         * gst/base/gstbasetransform.h (GstBaseTransformClass.get_size):
6001         * gst/base/gstbasetransform.c (gst_base_transform_get_size):
6002         Semantics changed, should return not the size of the output buffer
6003         but the byte size of a buffer with a given caps.
6004
6005         * gst/base/gstbasetransform.c (gst_base_transform_getcaps): Better
6006         debug object.
6007         (gst_base_transform_configure_caps): Don't set out_size here: (in,
6008         out) are not the pad caps until setcaps finishes.
6009         (gst_base_transform_buffer_alloc): Proxy the buffer_alloc for the
6010         not-in-place case as well. Deal with changing from in-place to
6011         not-in-place within calling pad_alloc_buffer. Still a bit
6012         concerned about the overhead here...
6013
6014 2005-08-03  Andy Wingo  <wingo@pobox.com>
6015
6016         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): Not
6017         fixating is an error.
6018
6019 2005-08-04  Edward Hervey  <edward@fluendo.com>
6020
6021         * gst/base/gstadapter.h: 
6022         Added gst_adapter_get_type() to the header
6023
6024 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
6025
6026         * check/Makefile.am:
6027         * check/gst-libs/controller.c:
6028         * libs/gst/controller/gst-controller.c:
6029         (gst_controller_new_valist):
6030           added check test suite for the controller
6031         * gst/base/gstpushsrc.c:
6032           fixed a doc typo
6033
6034 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
6035
6036         * docs/gst/Makefile.am:
6037         * docs/gst/gstreamer-docs.sgml:
6038         * docs/gst/gstreamer-sections.txt:
6039         * docs/gst/gstreamer.types:
6040         * docs/gst/tmpl/gstfakesrc.sgml:
6041         * gst/base/README:
6042         * gst/base/gstbasesink.c:
6043         * gst/base/gstbasesink.h:
6044         * gst/base/gstbasesrc.c:
6045         * gst/base/gstbasesrc.h:
6046         * gst/base/gstbasetransform.c:
6047         * gst/base/gstpushsrc.c:
6048         * gst/base/gstpushsrc.h:
6049           add short/long description docs to base classes
6050           add pushsrc to the docs
6051           remove consolidated doc fragments
6052
6053 2005-08-03  Stefan Kost  <ensonic@users.sf.net>
6054
6055         * configure.ac:
6056         * docs/libs/Makefile.am:
6057         * docs/libs/gstreamer-libs-docs.sgml:
6058         * docs/libs/gstreamer-libs-sections.txt:
6059         * docs/libs/gstreamer-libs.types:
6060         * examples/Makefile.am:
6061         * examples/controller/.cvsignore:
6062         * examples/controller/Makefile.am:
6063         * examples/controller/audio-example.c: (main):
6064         * libs/gst/Makefile.am:
6065         * libs/gst/controller/.cvsignore:
6066         * libs/gst/controller/Makefile.am:
6067         * libs/gst/controller/gst-controller.c:
6068         (on_object_controlled_property_changed), (gst_timed_value_compare),
6069         (gst_timed_value_find),
6070         (gst_controlled_property_set_interpolation_mode),
6071         (gst_controlled_property_new), (gst_controlled_property_free),
6072         (gst_controller_find_controlled_property),
6073         (gst_controller_new_valist), (gst_controller_new),
6074         (gst_controller_remove_properties_valist),
6075         (gst_controller_remove_properties), (gst_controller_set),
6076         (gst_controller_set_from_list), (gst_controller_unset),
6077         (gst_controller_get), (gst_controller_get_all),
6078         (gst_controller_sink_values), (gst_controller_get_value_arrays),
6079         (gst_controller_get_value_array),
6080         (gst_controller_set_interpolation_mode),
6081         (_gst_controller_finalize), (_gst_controller_init),
6082         (_gst_controller_class_init), (gst_controller_get_type):
6083         * libs/gst/controller/gst-controller.h:
6084         * libs/gst/controller/gst-helper.c: (g_object_control_properties),
6085         (g_object_uncontrol_properties), (g_object_get_controller),
6086         (g_object_set_controller), (g_object_sink_values),
6087         (g_object_get_value_arrays), (g_object_get_value_array):
6088         * libs/gst/controller/gst-interpolation.c:
6089         (gst_controlled_property_find_timed_value_node),
6090         (interpolate_none_get), (interpolate_trigger_get),
6091         (interpolate_trigger_get_value_array):
6092         * libs/gst/controller/lib.c: (gst_controller_init):
6093         * pkgconfig/Makefile.am:
6094         * pkgconfig/gstreamer-control-uninstalled.pc.in:
6095         * pkgconfig/gstreamer-control.pc.in:
6096         * testsuite/Makefile.am:
6097         * testsuite/controller/.cvsignore:
6098         * testsuite/controller/Makefile.am:
6099         * testsuite/controller/interpolator.c: (main):
6100           added controller code
6101           removed dparam pc files
6102
6103 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
6104         * gst/base/gstcollectpads.c: (gst_collectpads_finalize),
6105         (gst_collectpads_stop):
6106           Broadcast the condition when shutting down, to make sure we wake all
6107           threads up. Shut down pads on finalize, for safety.
6108
6109 2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
6110         * gst/base/gstbasetransform.c: (gst_base_transform_init),
6111         (gst_base_transform_handle_buffer),
6112         (gst_base_transform_change_state):
6113           Handle PAUSED->READY->PAUSED transition after negotiation
6114           occurred already.
6115         * gst/gstmessage.c: (gst_message_init):
6116           Extra piece of debug for new messages.
6117
6118 2005-08-01  Stefan Kost  <ensonic@users.sf.net>
6119
6120         * configure.ac:
6121         * docs/gst/tmpl/gstbasesrc.sgml:
6122         * docs/gst/tmpl/gstelement.sgml:
6123         * docs/gst/tmpl/gstevent.sgml:
6124         * docs/gst/tmpl/gstfakesrc.sgml:
6125         * docs/gst/tmpl/gstformat.sgml:
6126         * docs/gst/tmpl/gstghostpad.sgml:
6127         * docs/gst/tmpl/gstpad.sgml:
6128         * docs/gst/tmpl/gstquery.sgml:
6129         * docs/gst/tmpl/gststructure.sgml:
6130         * docs/gst/tmpl/gsttaglist.sgml:
6131         * docs/gst/tmpl/gstvalue.sgml:
6132         * docs/libs/gstreamer-libs-docs.sgml:
6133         * docs/libs/gstreamer-libs-sections.txt:
6134         * docs/libs/gstreamer-libs.types:
6135         * libs/gst/Makefile.am:
6136         * libs/gst/control/.cvsignore:
6137         * libs/gst/control/Makefile.am:
6138         * libs/gst/control/control.c:
6139         * libs/gst/control/control.h:
6140         * libs/gst/control/dparam.c:
6141         * libs/gst/control/dparam.h:
6142         * libs/gst/control/dparam_smooth.c:
6143         * libs/gst/control/dparam_smooth.h:
6144         * libs/gst/control/dparamcommon.h:
6145         * libs/gst/control/dparammanager.c:
6146         * libs/gst/control/dparammanager.h:
6147         * libs/gst/control/dplinearinterp.c:
6148         * libs/gst/control/dplinearinterp.h:
6149         * libs/gst/control/unitconvert.c:
6150         * libs/gst/control/unitconvert.h:
6151         * testsuite/Makefile.am:
6152         * testsuite/dynparams/.cvsignore:
6153         * testsuite/dynparams/Makefile.am:
6154         * testsuite/dynparams/dparamstest.c:
6155         * tools/Makefile.am:
6156         * tools/gst-inspect.c: (print_element_info), (main):
6157         * tools/gst-xmlinspect.c: (print_element_info), (main):
6158           deactivate and remove dparams (libgstcontrol)
6159
6160 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
6161
6162         * gst/elements/gsttypefindelement.c:
6163         (gst_type_find_element_have_type), (gst_type_find_element_init),
6164         (stop_typefinding), (gst_type_find_element_handle_event),
6165         (gst_type_find_element_chain), (gst_type_find_element_getrange):
6166         * gst/elements/gsttypefindelement.h:
6167           Set caps on all outgoing buffers, not just the first one.
6168
6169 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
6170
6171         * gst/elements/gsttypefindelement.c:
6172         (gst_type_find_element_have_type),
6173         (gst_type_find_element_check_set_buffer_caps),
6174         (gst_type_find_element_init), (stop_typefinding),
6175         (gst_type_find_element_handle_event),
6176         (gst_type_find_element_chain), (gst_type_find_element_getrange):
6177         * gst/elements/gsttypefindelement.h:
6178           Set caps on first outgoing buffer when we've found the type.
6179
6180 2005-08-01  Tim-Philipp Müller  <tim at centricular dot net>
6181
6182         * docs/gst/gstreamer-docs.sgml:
6183         * docs/gst/gstreamer-sections.txt:
6184         * docs/gst/tmpl/gstscheduler.sgml:
6185         * docs/gst/tmpl/gstschedulerfactory.sgml:
6186           Remove some old cruft from docs.
6187
6188 2005-07-31  Tim-Philipp Müller  <tim at centricular dot net>
6189
6190         * gst/gstpad.h:
6191           Fix inline docs for GstPadLinkReturn.
6192           
6193         * gst/gststructure.c: (gst_structure_has_name):
6194         * gst/gststructure.h:
6195         * docs/gst/gstreamer-sections.txt:
6196           New API: gst_structure_has_name().
6197
6198 2005-07-30  Tim-Philipp Müller  <tim at centricular dot net>
6199
6200         * configure.ac:
6201           Use AC_SYS_LARGEFILE, which will set _FILE_OFFSET_BITS=64
6202           and _LARGEFILE_SOURCE in config.h as required. Do not 
6203           export those flags in our .pc files any longer (#142209).
6204
6205           Remove unused GST_DISABLE_OMEGA_COTHREADS stuff.
6206
6207         * gst/elements/gstfilesink.c: (gst_file_sink_class_init),
6208         (gst_file_sink_do_seek), (gst_file_sink_event),
6209         (gst_file_sink_get_current_offset), (gst_file_sink_render):
6210           Redo seek/tell calls with large file support in mind; add some
6211           debugging messages; add log message that tells us when large
6212           file support is unavailable or not enabled for some reason.
6213
6214         * gst/elements/gstfilesrc.c: (gst_file_src_class_init):
6215           Add log message that tells us when large file support 
6216           is unavailable or not enabled for some reason.
6217
6218 2005-07-29  Wim Taymans  <wim@fluendo.com>
6219
6220         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
6221         Added test for removing an element with ghostpad from a bin.
6222         Fixed test as current implementation does the right thing.
6223
6224         * gst/gstghostpad.c: (gst_proxy_pad_class_init),
6225         (gst_proxy_pad_do_query_type), (gst_proxy_pad_do_event),
6226         (gst_proxy_pad_do_query), (gst_proxy_pad_do_internal_link),
6227         (gst_proxy_pad_do_bufferalloc), (gst_proxy_pad_do_activate),
6228         (gst_proxy_pad_do_activatepull), (gst_proxy_pad_do_activatepush),
6229         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange),
6230         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_getcaps),
6231         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
6232         (gst_proxy_pad_do_setcaps), (gst_proxy_pad_set_target),
6233         (gst_proxy_pad_get_target), (gst_proxy_pad_init),
6234         (gst_proxy_pad_dispose), (gst_proxy_pad_finalize),
6235         (gst_ghost_pad_class_init), (gst_ghost_pad_do_activate_push),
6236         (gst_ghost_pad_do_link), (gst_ghost_pad_do_unlink),
6237         (gst_ghost_pad_set_internal), (gst_ghost_pad_dispose),
6238         (gst_ghost_pad_new_notarget), (gst_ghost_pad_new),
6239         (gst_ghost_pad_get_target), (gst_ghost_pad_set_target):
6240         * gst/gstghostpad.h:
6241         Clean up ghostpads, remove properties for internal stuff.
6242         Make threadsafe.
6243         Fix refcounting.
6244         Prepare for switching targets, not all use cases work yet.
6245
6246 2005-07-29  Wim Taymans  <wim@fluendo.com>
6247
6248         * docs/design/part-gstghostpad.txt:
6249         Small update.
6250
6251         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
6252         (gst_bin_remove_func):
6253         Unlinking pads while holding the bin LOCK is not a good
6254         idea.
6255
6256         * gst/gstpad.c: (gst_pad_class_init),
6257         (gst_pad_link_check_hierarchy), (gst_pad_get_caps_unlocked),
6258         (gst_pad_accept_caps), (gst_pad_set_caps), (gst_pad_send_event):
6259         No prob setting template after creating the pad.
6260
6261 2005-07-29  Jan Schmidt  <thaytan@mad.scientist.com>
6262
6263         * gst/gstbus.c: (gst_bus_set_flushing), (gst_bus_pop),
6264         (gst_bus_peek), (gst_bus_source_dispatch),
6265         (gst_bus_add_watch_full), (poll_handler), (poll_timeout),
6266         (poll_destroy), (poll_destroy_timeout), (gst_bus_poll):
6267           gst_bus_poll may be called from other threads. Handle
6268           this nicely by not making poll_data disappear off the
6269           stack once gst_bus_poll returns.
6270           gst_bus_peek now increments the refcount on the returned
6271           message.
6272
6273 2005-07-29  Wim Taymans  <wim@fluendo.com>
6274
6275         * docs/design/part-gstghostpad.txt:
6276         Overview of current GhostPad datastructures and use
6277         cases for changing the target.
6278
6279 2005-07-28  Wim Taymans  <wim@fluendo.com>
6280
6281         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
6282         Added checks for hierarchy consistency whan adding linked
6283         elements to bins.
6284
6285         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
6286         Added check to test element scheduling without bin/pipeline.
6287
6288         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
6289         First add elements to bin, then link.
6290         
6291         * gst/gstbin.c: (unlink_pads), (gst_bin_add_func),
6292         (gst_bin_remove_func):
6293         Unlink pads from elements added/removed from bin to maintain
6294         hierarchy consistency.
6295
6296 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6297
6298         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps),
6299         (gst_base_transform_handle_buffer):
6300         * gst/base/gstbasetransform.h:
6301           Remove broken delay_configure (fixes renegotiation of software
6302           scaling pipelines); remove some leftover printf()s.
6303
6304 2005-07-28  Wim Taymans  <wim@fluendo.com>
6305
6306         * check/gst/gstghostpad.c: (GST_START_TEST), (gst_ghost_pad_suite):
6307         Added some more tests for wrong hierarchy
6308
6309         * docs/design/part-overview.txt:
6310         Some updates.
6311
6312         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_dispose):
6313         Cleanups.
6314
6315         * gst/gstelement.c: (gst_element_remove_pad), (gst_element_seek),
6316         (gst_element_dispose):
6317         Some more cleanups.
6318
6319         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
6320         (gst_pad_link_check_hierarchy), (gst_pad_link_prepare),
6321         (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
6322         (gst_pad_set_caps), (gst_pad_send_event):
6323         Check for correct hierarchy when linking pads. Moving to
6324         strict requirement for ghostpads when linking elements in
6325         different bins.
6326
6327         * gst/gstpad.h:
6328         Clean ups. Added WRONG_HIERARCHY return value.
6329
6330 2005-07-28  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6331
6332         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
6333           Better debug if no transform is possible.
6334
6335 2005-07-27  Wim Taymans  <wim@fluendo.com>
6336
6337         * docs/random/wtay/network-transp:
6338         Some old doc I had.
6339
6340 2005-07-27  Wim Taymans  <wim@fluendo.com>
6341
6342         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
6343         (gst_dp_event_from_packet):
6344         Fix serialization of seek events.
6345
6346 2005-07-27  Wim Taymans  <wim@fluendo.com>
6347
6348         * check/gst-libs/gdp.c: (GST_START_TEST):
6349         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
6350         Fix compilation and fix event serialization.
6351
6352 2005-07-27  Wim Taymans  <wim@fluendo.com>
6353
6354         * CHANGES-0.9:
6355         * docs/design/part-TODO.txt:
6356         * docs/design/part-events.txt:
6357         Some docs updates
6358
6359         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6360         (gst_base_sink_event), (gst_base_sink_do_sync),
6361         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
6362         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
6363         (gst_base_src_do_seek), (gst_base_src_event_handler),
6364         (gst_base_src_loop):
6365         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
6366         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
6367         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
6368         (gst_base_transform_event), (gst_base_transform_handle_buffer),
6369         (gst_base_transform_set_passthrough),
6370         (gst_base_transform_is_passthrough):
6371         * gst/elements/gstfakesink.c: (gst_fake_sink_event):
6372         * gst/elements/gstfilesink.c: (gst_file_sink_event):
6373         Event updates.
6374
6375         * gst/gstbuffer.h:
6376         Use faster casts.
6377
6378         * gst/gstelement.c: (gst_element_seek):
6379         * gst/gstelement.h:
6380         Update gst_element_seek.
6381
6382         * gst/gstevent.c: (gst_event_finalize), (_gst_event_copy),
6383         (gst_event_new), (gst_event_new_custom), (gst_event_get_structure),
6384         (gst_event_new_flush_start), (gst_event_new_flush_stop),
6385         (gst_event_new_eos), (gst_event_new_newsegment),
6386         (gst_event_parse_newsegment), (gst_event_new_tag),
6387         (gst_event_parse_tag), (gst_event_new_filler), (gst_event_new_qos),
6388         (gst_event_parse_qos), (gst_event_new_seek),
6389         (gst_event_parse_seek), (gst_event_new_navigation):
6390         * gst/gstevent.h:
6391         Make GstEvent use GstStructure. Add parsing code, make sure the
6392         API is sufficiently generic.
6393         Mark possible directions of events and serialization.
6394
6395         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize),
6396         (_gst_message_copy), (gst_message_new_segment_start),
6397         (gst_message_new_segment_done), (gst_message_new_custom),
6398         (gst_message_parse_segment_start),
6399         (gst_message_parse_segment_done):
6400         Small cleanups.
6401
6402         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
6403         (gst_pad_set_caps), (gst_pad_send_event):
6404         Update for new events. 
6405         Catch events sent in wrong directions.
6406
6407         * gst/gstqueue.c: (gst_queue_link_src),
6408         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
6409         (gst_queue_handle_src_query):
6410         Event updates.
6411
6412         * gst/gsttag.c:
6413         * gst/gsttag.h:
6414         Remove event code from this file.
6415
6416         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
6417         (gst_dp_event_from_packet):
6418         Event updates.
6419
6420 2005-07-27  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6421
6422         * gst/base/gstbasetransform.c: (gst_base_transform_getcaps),
6423         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
6424         (gst_base_transform_get_size), (gst_base_transform_handle_buffer):
6425           Make debugging actually useful.
6426
6427 2005-07-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6428
6429         * gst/gstpad.c: (fixate_value), (gst_pad_default_fixate),
6430         (gst_pad_fixate_caps):
6431           Implement default fixation once again, so that gst_pad_fixate()
6432           actually does anything at all. This probably needs to be some
6433           sort of a last resort, and use profile-based fixation first, but
6434           since that doesn't exist yet, this is the best we have. Fixes
6435           visualization in Totem.
6436
6437 2005-07-22  Wim Taymans  <wim@fluendo.com>
6438
6439         * docs/design/part-events.txt:
6440         Small update.
6441
6442         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6443         (gst_base_sink_do_sync), (gst_base_sink_activate_push),
6444         (gst_base_sink_activate_pull):
6445         Some more comments.
6446
6447         * gst/elements/gstfakesrc.c: (gst_fake_src_class_init),
6448         (gst_fake_src_create):
6449         Fix handoff marshall.
6450
6451         * gst/elements/gstidentity.c: (gst_identity_class_init),
6452         (gst_identity_transform_ip):
6453         We're a real inplace element.
6454
6455         * gst/gstbus.c: (gst_bus_post):
6456         Added some comments.
6457
6458         * tests/lat.c: (fakesrc), (fakesink), (simple), (queue), (main):
6459         * tests/muxing/case1.c: (main):
6460         * tests/sched/dynamic-pipeline.c: (main):
6461         * tests/sched/interrupt1.c: (main):
6462         * tests/sched/interrupt2.c: (main):
6463         * tests/sched/interrupt3.c: (main):
6464         * tests/sched/runxml.c: (main):
6465         * tests/sched/sched-stress.c: (main):
6466         * tests/seeking/seeking1.c: (event_received), (main):
6467         * tests/threadstate/threadstate2.c: (bus_handler), (timeout_func),
6468         (main):
6469         * tests/threadstate/threadstate3.c: (main):
6470         * tests/threadstate/threadstate4.c: (main):
6471         * tests/threadstate/threadstate5.c: (main):
6472         Fix the tests.
6473
6474 2005-07-21  Wim Taymans  <wim@fluendo.com>
6475
6476         * docs/design/part-seeking.txt:
6477         Some small additions.
6478
6479         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6480         (gst_base_sink_get_times), (gst_base_sink_do_sync),
6481         (gst_base_sink_activate_push), (gst_base_sink_activate_pull):
6482         * gst/base/gstbasesink.h:
6483         discont values are gint64, handle the math correctly.
6484
6485         * gst/base/gstbasesrc.c: (gst_base_src_loop):
6486         Make the basesrc report error if the source pad is not linked.
6487
6488         * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
6489         (gst_queue_loop), (gst_queue_handle_src_query),
6490         (gst_queue_src_activate_push):
6491         Make queue collect data even if the srcpad is not linked.
6492         Start pushing out data as soon as it is linked.
6493
6494         * gst/gstutils.c: (gst_element_unlink), (gst_flow_get_name):
6495         * gst/gstutils.h:
6496         Added gst_flow_get_name() to ease error reporting.
6497
6498 2005-07-20  Wim Taymans  <wim@fluendo.com>
6499
6500         * gst/gstmessage.c: (gst_message_new_segment_start),
6501         (gst_message_new_segment_done), (gst_message_parse_segment_start),
6502         (gst_message_parse_segment_done):
6503         * gst/gstmessage.h:
6504         Added a bunch of messages for advanced seeking.
6505
6506         * gst/parse/grammar.y:
6507         * libs/gst/control/dparammanager.c: (gst_dpman_set_parent),
6508         (gst_dpman_state_changed):
6509         Fix some new-pad -> pad-added signals
6510
6511 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6512
6513         * docs/manual/appendix-porting.xml:
6514         * docs/pwg/appendix-porting.xml:
6515           Document new-pad/state-change signal renames and the FixedList
6516           type rename.
6517
6518 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6519
6520         * docs/manual/advanced-autoplugging.xml:
6521         * docs/manual/basics-helloworld.xml:
6522         * docs/manual/basics-pads.xml:
6523         * docs/random/ds/0.9-suggested-changes:
6524         * gst/gstelement.c: (gst_element_class_init), (gst_element_seek):
6525         * gst/gstelement.h:
6526         * gst/gstevent.h:
6527         * gst/gstformat.h:
6528         * gst/gstquery.h:
6529         * gst/gststructure.c: (gst_structure_value_get_generic_type),
6530         (gst_structure_parse_array), (gst_structure_parse_value):
6531         * gst/gstvalue.c: (gst_type_is_fixed),
6532         (gst_value_list_prepend_value), (gst_value_list_append_value),
6533         (gst_value_list_get_size), (gst_value_list_get_value),
6534         (gst_value_transform_array_string), (gst_value_serialize_array),
6535         (gst_value_deserialize_array), (gst_value_intersect_array),
6536         (gst_value_is_fixed), (_gst_value_initialize):
6537         * gst/gstvalue.h:
6538           GstElement::new-pad -> pad-added, GstElement::state-change ->
6539           state-changed, GstValueFixedList -> GstValueArray, add format and
6540           flags as their own arguments in gst_element_seek() (should improve
6541           "bindeability"), remove function generators since they don't work
6542           under a whole bunch of compilers (they were deprecated already
6543           anyway).
6544
6545 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6546
6547         * gst/gstinfo.c: (_gst_debug_nameof_funcptr),
6548         (_gst_debug_register_funcptr):
6549         * gst/gstinfo.h:
6550           Fix illegal cast on some platforms (#309253).
6551
6552 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6553
6554         * gst/gstmessage.c: (gst_message_new_custom):
6555         * gst/gstmessage.h:
6556           Add _new_custom, make _new_application a macro to _new_custom.
6557
6558 2005-07-20  Wim Taymans  <wim@fluendo.com>
6559
6560         * gst/base/gstbasesrc.c: (gst_base_src_init),
6561         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start):
6562         * gst/base/gstbasesrc.h:
6563         Add a gboolean to decide when to push out a discont.
6564
6565         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
6566         (gst_queue_loop), (gst_queue_handle_src_query),
6567         (gst_queue_sink_activate_push), (gst_queue_src_activate_push),
6568         (gst_queue_set_property), (gst_queue_get_property):
6569         Some cleanups.
6570
6571         * tests/threadstate/threadstate1.c: (main):
6572         Make a thread test compile and run... very silly..
6573
6574
6575 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6576
6577         * docs/manual/appendix-porting.xml:
6578           Mention removal of libgstgconf-0.9.la and existence of gconf
6579           elements.
6580
6581 2005-07-20  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
6582
6583         * docs/pwg/advanced-clock.xml:
6584         * docs/pwg/appendix-porting.xml:
6585         * docs/pwg/intro-preface.xml:
6586         * docs/pwg/other-base.xml:
6587         * docs/pwg/other-manager.xml:
6588         * docs/pwg/other-nton.xml:
6589         * docs/pwg/other-ntoone.xml:
6590         * docs/pwg/other-oneton.xml:
6591         * docs/pwg/pwg.xml:
6592           Document base classes, update sections of n-to-1 and 1-to-n (muxer,
6593           demuxer), remove n-to-n (was never written), fix some code examples
6594           and links and update the porting section to include all this.
6595
6596 2005-07-19  Wim Taymans  <wim@fluendo.com>
6597
6598         * gst/gstqueue.c: (gst_queue_init), (gst_queue_handle_sink_event),
6599         (gst_queue_chain), (gst_queue_loop), (gst_queue_handle_src_event),
6600         (gst_queue_handle_src_query), (gst_queue_sink_activate_push),
6601         (gst_queue_src_activate_push), (gst_queue_change_state),
6602         (gst_queue_get_property):
6603         * gst/gstqueue.h:
6604         Propagate GstFlowReturn more intelligently upstream and output
6605         an ERROR/EOS when streaming stopped due to fatal error.
6606
6607 2005-07-19  Wim Taymans  <wim@fluendo.com>
6608
6609         * tools/gst-launch.c: (check_intr), (event_loop), (main):
6610         Don't block forever for the state change to complete, the
6611         pipeline already did with a sensible timeout.
6612
6613 2005-07-19  Wim Taymans  <wim@fluendo.com>
6614
6615         * gst/base/gstbasesrc.c: (gst_base_src_get_range):
6616         Make sure we never call the create function is we
6617         got deactivated.
6618
6619 2005-07-19  Andy Wingo  <wingo@pobox.com>
6620
6621         * gst/parse/parse.l: Attempt to solve bug #172815.
6622
6623 2005-07-19  Wim Taymans  <wim@fluendo.com>
6624
6625         * docs/design/part-clocks.txt:
6626         * docs/design/part-events.txt:
6627         * gst/base/gstbasesrc.c: (gst_base_src_do_seek):
6628         Small docs updates.
6629         Only update the seeking values when we are not
6630         busy streaming.
6631
6632 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
6633
6634         * gst/base/gstbasesrc.c: (gst_base_src_loop):
6635           Oops, ignore the result of gst_pad_push_event here.
6636
6637 2005-07-19  Jan Schmidt  <thaytan@mad.scientist.com>
6638
6639         * gst/base/gstbasesrc.c: (gst_base_src_loop),
6640         (gst_base_src_activate_push):
6641           Send discont event from the loop function, as pads
6642           aren't activated yet in the activate_push handler.
6643
6644         * gst/gstbin.c: (bin_bus_handler):
6645           Don't leak element name.
6646
6647 2005-07-18  Andy Wingo  <wingo@pobox.com>
6648
6649         * configure.ac: Use AS_LIBTOOL_TAGS.
6650
6651 2005-07-18  Wim Taymans  <wim@fluendo.com>
6652
6653         * docs/gst/gstreamer.types:
6654         Remove deleted types.
6655
6656 2005-07-18  Wim Taymans  <wim@fluendo.com>
6657
6658         * check/elements/gstfakesrc.c: (GST_START_TEST):
6659         * configure.ac:
6660         * gst/Makefile.am:
6661         * gst/gst.c: (gst_init_get_popt_table), (init_pre), (init_post),
6662         (init_popt_callback):
6663         * gst/gst.h:
6664         * gst/gst_private.h:
6665         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_add_func),
6666         (gst_bin_remove_func), (gst_bin_get_state), (gst_bin_change_state):
6667         * gst/gstbin.h:
6668         * gst/gstbus.h:
6669         * gst/gstconfig.h.in:
6670         * gst/gstelement.c: (gst_element_class_init),
6671         (gst_element_set_base_time), (gst_element_get_base_time),
6672         (iterator_fold_with_resync), (gst_element_change_state),
6673         (gst_element_dispose), (gst_element_get_bus):
6674         * gst/gstelement.h:
6675         * gst/gstelementfactory.h:
6676         * gst/gsterror.c: (_gst_core_errors_init):
6677         * gst/gsterror.h:
6678         * gst/gstevent.h:
6679         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
6680         * gst/gstindex.c:
6681         * gst/gstinfo.c: (_gst_debug_init):
6682         * gst/gstmessage.c: (_gst_message_copy):
6683         * gst/gstmessage.h:
6684         * gst/gstminiobject.h:
6685         * gst/gstobject.c:
6686         * gst/gstobject.h:
6687         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
6688         (gst_pad_set_caps), (gst_pad_start_task), (gst_pad_stop_task):
6689         * gst/gstpad.h:
6690         * gst/gstparse.h:
6691         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
6692         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
6693         (gst_pipeline_get_last_stream_time):
6694         * gst/gstpipeline.h:
6695         * gst/gstpluginfeature.h:
6696         * gst/gstquery.h:
6697         * gst/gstscheduler.c:
6698         * gst/gstscheduler.h:
6699         * gst/gststructure.h:
6700         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
6701         (gst_task_finalize), (gst_task_func), (gst_task_create),
6702         (gst_task_set_lock), (gst_task_get_state), (gst_task_start),
6703         (gst_task_stop), (gst_task_pause):
6704         * gst/gsttask.h:
6705         * gst/gsttypefind.h:
6706         * gst/gsttypes.h:
6707         * gst/registries/gstlibxmlregistry.c: (load_feature),
6708         (gst_xml_registry_load), (gst_xml_registry_save_feature):
6709         * gst/registries/gstxmlregistry.c:
6710         (gst_xml_registry_start_element), (gst_xml_registry_save_feature):
6711         * gst/schedulers/threadscheduler.c:
6712         * libs/gst/control/dparammanager.h:
6713         * tools/gst-inspect.c: (print_element_list),
6714         (print_plugin_features), (print_element_features):
6715         * tools/gst-xmlinspect.c: (print_element_list),
6716         (print_plugin_info), (main):
6717         Removed plugable schedulers.
6718         Removed Scheduler/Manager from elements.
6719         Removed gsttypes.h, rearranged includes.
6720         Removed dependency pad<->element, element<>pipeline, and
6721         various others,  fix includes.
6722         implement gst_pad_get_parent() with gst_object_get_parent()
6723         Make GstTask sefcontained.
6724         Fix _get_state() on GstBin, it did not return ASYNC with a 0
6725         timeout.
6726         Fix endless loop in iterator_fold_with_resync.
6727
6728
6729 2005-07-18  Wim Taymans  <wim@fluendo.com>
6730
6731         * gst/Makefile.am:
6732         * gst/gstarch.h:
6733         Remove old file.
6734
6735 2005-07-18  Wim Taymans  <wim@fluendo.com>
6736
6737         * gst/Makefile.am:
6738         No more cothreads.h
6739
6740 2005-07-18  Wim Taymans  <wim@fluendo.com>
6741
6742         * gst/cothreads.c:
6743         * gst/cothreads.h:
6744         Let's remove these.
6745
6746 2005-07-18  Wim Taymans  <wim@fluendo.com>
6747
6748         * docs/design/part-dynamic.txt:
6749         * docs/design/part-events.txt:
6750         * docs/design/part-seeking.txt:
6751         Some more docs in the works.
6752
6753         * gst/base/gstbasetransform.c: (gst_base_transform_transform_caps),
6754         (gst_base_transform_getcaps), (gst_base_transform_configure_caps),
6755         (gst_base_transform_setcaps), (gst_base_transform_get_size),
6756         (gst_base_transform_buffer_alloc), (gst_base_transform_event),
6757         (gst_base_transform_handle_buffer),
6758         (gst_base_transform_sink_activate_push),
6759         (gst_base_transform_src_activate_pull),
6760         (gst_base_transform_set_passthrough),
6761         (gst_base_transform_is_passthrough):
6762         Refcounting fixes.
6763
6764         * gst/gstbus.c: (gst_bus_source_dispatch), (gst_bus_poll):
6765         Cleanups.
6766
6767         * gst/gstevent.c: (gst_event_finalize):
6768         Set SRC to NULL.
6769
6770         * gst/gstutils.c: (gst_element_unlink),
6771         (gst_pad_get_parent_element), (gst_pad_proxy_getcaps),
6772         (gst_pad_proxy_setcaps):
6773         * gst/gstutils.h:
6774         Add _get_parent_element() to get a pads parent as an element.
6775
6776 2005-07-18  Wim Taymans  <wim@fluendo.com>
6777
6778         * check/gst/gstbin.c: (GST_START_TEST):
6779         Remove bogus test.
6780
6781 2005-07-18  Wim Taymans  <wim@fluendo.com>
6782
6783         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
6784         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
6785         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
6786         (gst_base_sink_event), (gst_base_sink_do_sync),
6787         (gst_base_sink_chain), (gst_base_sink_loop),
6788         (gst_base_sink_deactivate), (gst_base_sink_activate_push),
6789         (gst_base_sink_activate_pull), (gst_base_sink_change_state):
6790         Refcounting fixes.
6791         Fix logic for returning ASYNC when not prerolled.
6792
6793 2005-07-18  Wim Taymans  <wim@fluendo.com>
6794
6795         * gst/gstqueue.c: (gst_queue_handle_sink_event):
6796         Fix nasty refcount bug.
6797
6798 2005-07-16 Philippe Khalaf <burger@speedy.org>
6799
6800         * gst/elements/gstfdsrc.c:
6801         * gst/elements/gstfdsrc.h:
6802         * gst/elements/gstelements.c:
6803         * gst/elements/Makefile.am:
6804         Ported fdsrc to 0.9.
6805
6806 2005-07-16  Wim Taymans  <wim@fluendo.com>
6807
6808         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6809         (gst_base_sink_do_sync):
6810         Fix compile error.
6811
6812 2005-07-16  Wim Taymans  <wim@fluendo.com>
6813
6814         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
6815         (gst_base_sink_event), (gst_base_sink_get_times),
6816         (gst_base_sink_do_sync), (gst_base_sink_change_state):
6817         * gst/base/gstbasesink.h:
6818         Store and use discont values when syncing buffers as described
6819         in design docs.
6820         
6821         * gst/base/gstbasesrc.c: (gst_base_src_send_discont),
6822         (gst_base_src_do_seek), (gst_base_src_loop), (gst_base_src_start),
6823         (gst_base_src_activate_push):
6824         Push discont event when starting.
6825
6826         * gst/elements/gstidentity.c: (gst_identity_transform):
6827         Small cleanups.
6828
6829         * gst/gstbin.c: (gst_bin_change_state):
6830         Small cleanups in base_time  distribution.
6831
6832         * gst/gstelement.c: (gst_element_set_base_time),
6833         (gst_element_get_base_time), (gst_element_change_state):
6834         * gst/gstelement.h:
6835         Added methods for the base_time of the element.
6836         Some MT fixes.
6837
6838         * gst/gstpipeline.c: (gst_pipeline_send_event),
6839         (gst_pipeline_change_state), (gst_pipeline_set_new_stream_time),
6840         (gst_pipeline_get_last_stream_time):
6841         * gst/gstpipeline.h:
6842         MT fixes.
6843         Handle seeking as described in design doc, remove stream_time
6844         hack.
6845         Cleanups clock and stream_time selection code. Added accessors
6846         for the stream_time.
6847         
6848
6849 2005-07-16  Andy Wingo  <wingo@pobox.com>
6850
6851         * gst/gsterror.c (_gst_core_errors_init): Use the magic word
6852         (#305291).
6853
6854 2005-07-16  Wim Taymans  <wim@fluendo.com>
6855
6856         * check/gst/gstbin.c: (GST_START_TEST):
6857         Make elements silent as the deep_notify refs the
6858         parent, which might make the test fail.
6859
6860         * gst/gstghostpad.c: (gst_ghost_pad_do_activate_push):
6861         Don't hold the lock for too long.
6862
6863 2005-07-16  Tim-Philipp Müller  <tim at centricular dot net>
6864
6865         * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
6866           Don't unref the caps we passed to gst_caps_make_writable() after
6867           passing them. gst_caps_make_writable() will do that for us.
6868
6869 2005-07-15  Andy Wingo  <wingo@pobox.com>
6870
6871         * gst/gstcaps.h (gst_caps_is_simple): Removed deprecated macro
6872         (#157311).
6873
6874         * gst/elements/gstidentity.c (marshal_VOID__MINIOBJECT): Write our
6875         own marshalling function for the handoff signal. Properly type the
6876         buffer as a buffer. Fixes some warnings. Should do a more general
6877         solution.
6878         (gst_identity_class_init): Plug into the right marshaller.
6879
6880 2005-07-15  Wim Taymans  <wim@fluendo.com>
6881
6882         * docs/design/part-TODO.txt:
6883         * docs/design/part-clocks.txt:
6884         * docs/design/part-element-sink.txt:
6885         * docs/design/part-events.txt:
6886         * docs/design/part-gstpipeline.txt:
6887         Updated docs, mostly DISCONT related.
6888
6889 2005-07-15  Tim-Philipp Müller  <tim at centricular dot net>
6890
6891         * docs/pwg/building-pads.xml:
6892           s/GST_PAD_LINK_REFUSED/FALSE/ in gst_my_filter_setcaps()
6893
6894 2005-07-15  Andy Wingo  <wingo@pobox.com>
6895
6896         * tools/gst-typefind.c: Update, add copyright block.
6897
6898         * gst/base/gstbasesrc.c (gst_base_src_default_negotiate):
6899         Normalize and truncate caps before fixation.
6900
6901         * gst/gstcaps.h:
6902         * gst/gstcaps.c (gst_caps_truncate): New function, destructively
6903         discards all but the first structure from its argument.
6904
6905 2005-07-15  Wim Taymans  <wim@fluendo.com>
6906
6907         * gst/base/gstbasetransform.c: (gst_base_transform_init),
6908         (gst_base_transform_transform_caps), (gst_base_transform_getcaps),
6909         (gst_base_transform_configure_caps), (gst_base_transform_setcaps),
6910         (gst_base_transform_get_size), (gst_base_transform_buffer_alloc),
6911         (gst_base_transform_handle_buffer), (gst_base_transform_getrange),
6912         (gst_base_transform_chain), (gst_base_transform_change_state),
6913         (gst_base_transform_set_passthrough),
6914         (gst_base_transform_is_passthrough):
6915         * gst/base/gstbasetransform.h:
6916         Make passthrough work using the bufferpools.
6917         Changed API a bit, subclasses have to write into a buffer
6918         provided by the base class.
6919         More debug info in nego functions.
6920         
6921         * gst/elements/gstidentity.c: (gst_identity_init),
6922         (gst_identity_transform):
6923         Port to new base class.
6924
6925 2005-07-15  Wim Taymans  <wim@fluendo.com>
6926
6927         * gst/gstmessage.c: (gst_message_new_state_changed):
6928         * tools/gst-launch.c: (event_loop), (main):
6929         Totally dump messages in -launch with the -m option.
6930         Fix message name for State messages,
6931
6932 2005-07-14  Wim Taymans  <wim@fluendo.com>
6933
6934         * gst/base/gstbasesrc.c: (gst_base_src_loop):
6935         Post error messages on errors.
6936
6937 2005-07-14  Wim Taymans  <wim@fluendo.com>
6938
6939         * gst/gstcaps.c: (gst_caps_do_simplify):
6940         Remove debug info.
6941
6942         * gst/gsterror.h:
6943         Define error for stream stopped.
6944
6945         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
6946         (gst_proxy_pad_do_chain), (gst_proxy_pad_do_getrange):
6947         Do proper return values.
6948
6949         * gst/gstpad.c: (gst_pad_get_caps_unlocked), (gst_pad_accept_caps),
6950         (gst_pad_set_caps), (gst_pad_chain), (gst_pad_push),
6951         (gst_pad_get_range):
6952         Better return values.
6953
6954         * gst/gstpad.h:
6955         Reorganise return values, add macro to check for fatal errors.
6956
6957         * gst/gstqueue.c: (gst_queue_chain):
6958         Return proper GstFlowReturn values,
6959
6960 2005-07-14  Thomas Vander Stichele  <thomas at apestaart dot org>
6961
6962         * docs/gst/gstreamer-sections.txt:
6963         * docs/gst/gstreamer.types:
6964         * docs/gst/tmpl/gst.sgml:
6965         * docs/gst/tmpl/gstbasesink.sgml:
6966         * docs/gst/tmpl/gstbasesrc.sgml:
6967         * docs/gst/tmpl/gstbasetransform.sgml:
6968         * docs/gst/tmpl/gstbin.sgml:
6969         * docs/gst/tmpl/gstbuffer.sgml:
6970         * docs/gst/tmpl/gstcaps.sgml:
6971         * docs/gst/tmpl/gstclock.sgml:
6972         * docs/gst/tmpl/gstcompat.sgml:
6973         * docs/gst/tmpl/gstconfig.sgml:
6974         * docs/gst/tmpl/gstelement.sgml:
6975         * docs/gst/tmpl/gstelementdetails.sgml:
6976         * docs/gst/tmpl/gstelementfactory.sgml:
6977         * docs/gst/tmpl/gstenumtypes.sgml:
6978         * docs/gst/tmpl/gsterror.sgml:
6979         * docs/gst/tmpl/gstevent.sgml:
6980         * docs/gst/tmpl/gstfakesink.sgml:
6981         * docs/gst/tmpl/gstfakesrc.sgml:
6982         * docs/gst/tmpl/gstfilesink.sgml:
6983         * docs/gst/tmpl/gstfilesrc.sgml:
6984         * docs/gst/tmpl/gstfilter.sgml:
6985         * docs/gst/tmpl/gstformat.sgml:
6986         * docs/gst/tmpl/gstghostpad.sgml:
6987         * docs/gst/tmpl/gstimplementsinterface.sgml:
6988         * docs/gst/tmpl/gstindex.sgml:
6989         * docs/gst/tmpl/gstindexfactory.sgml:
6990         * docs/gst/tmpl/gstinfo.sgml:
6991         * docs/gst/tmpl/gstiterator.sgml:
6992         * docs/gst/tmpl/gstmacros.sgml:
6993         * docs/gst/tmpl/gstmemchunk.sgml:
6994         * docs/gst/tmpl/gstminiobject.sgml:
6995         * docs/gst/tmpl/gstobject.sgml:
6996         * docs/gst/tmpl/gstpad.sgml:
6997         * docs/gst/tmpl/gstpadtemplate.sgml:
6998         * docs/gst/tmpl/gstparse.sgml:
6999         * docs/gst/tmpl/gstpipeline.sgml:
7000         * docs/gst/tmpl/gstplugin.sgml:
7001         * docs/gst/tmpl/gstpluginfeature.sgml:
7002         * docs/gst/tmpl/gstquery.sgml:
7003         * docs/gst/tmpl/gstqueue.sgml:
7004         * docs/gst/tmpl/gstregistry.sgml:
7005         * docs/gst/tmpl/gstregistrypool.sgml:
7006         * docs/gst/tmpl/gstscheduler.sgml:
7007         * docs/gst/tmpl/gstschedulerfactory.sgml:
7008         * docs/gst/tmpl/gststructure.sgml:
7009         * docs/gst/tmpl/gstsystemclock.sgml:
7010         * docs/gst/tmpl/gsttaglist.sgml:
7011         * docs/gst/tmpl/gsttagsetter.sgml:
7012         * docs/gst/tmpl/gsttrace.sgml:
7013         * docs/gst/tmpl/gsttrashstack.sgml:
7014         * docs/gst/tmpl/gsttypefind.sgml:
7015         * docs/gst/tmpl/gsttypefindfactory.sgml:
7016         * docs/gst/tmpl/gsttypes.sgml:
7017         * docs/gst/tmpl/gsturihandler.sgml:
7018         * docs/gst/tmpl/gsturitype.sgml:
7019         * docs/gst/tmpl/gstutils.sgml:
7020         * docs/gst/tmpl/gstvalue.sgml:
7021         * docs/gst/tmpl/gstversion.sgml:
7022         * docs/gst/tmpl/gstxml.sgml:
7023         * docs/libs/tmpl/gstcontrol.sgml:
7024         * docs/libs/tmpl/gstdataprotocol.sgml:
7025         * docs/libs/tmpl/gstdparam.sgml:
7026         * docs/libs/tmpl/gstdplinint.sgml:
7027         * docs/libs/tmpl/gstdpman.sgml:
7028         * docs/libs/tmpl/gstdpsmooth.sgml:
7029         * docs/libs/tmpl/gstgetbits.sgml:
7030         * docs/libs/tmpl/gstunitconvert.sgml:
7031         * gst/base/gstpushsrc.c: (gst_push_src_get_type),
7032         (gst_push_src_base_init), (gst_push_src_class_init),
7033         (gst_push_src_init), (gst_push_src_create):
7034         * gst/base/gstpushsrc.h:
7035         * gst/elements/gstelements.c:
7036         * gst/elements/gstfakesink.c: (gst_fake_sink_state_error_get_type),
7037         (gst_fake_sink_base_init), (gst_fake_sink_class_init),
7038         (gst_fake_sink_init), (gst_fake_sink_set_property),
7039         (gst_fake_sink_get_property), (gst_fake_sink_get_times),
7040         (gst_fake_sink_event), (gst_fake_sink_preroll),
7041         (gst_fake_sink_render), (gst_fake_sink_change_state):
7042         * gst/elements/gstfakesink.h:
7043         * gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type),
7044         (gst_fake_src_sizetype_get_type), (gst_fake_src_filltype_get_type),
7045         (gst_fake_src_base_init), (gst_fake_src_class_init),
7046         (gst_fake_src_init), (gst_fake_src_event_handler),
7047         (gst_fake_src_alloc_parent), (gst_fake_src_set_property),
7048         (gst_fake_src_get_property), (gst_fake_src_prepare_buffer),
7049         (gst_fake_src_alloc_buffer), (gst_fake_src_get_size),
7050         (gst_fake_src_create_buffer), (gst_fake_src_create),
7051         (gst_fake_src_start), (gst_fake_src_stop):
7052         * gst/elements/gstfakesrc.h:
7053         * gst/elements/gstfilesink.c: (_do_init),
7054         (gst_file_sink_base_init), (gst_file_sink_class_init),
7055         (gst_file_sink_init), (gst_file_sink_dispose),
7056         (gst_file_sink_set_location), (gst_file_sink_set_property),
7057         (gst_file_sink_get_property), (gst_file_sink_open_file),
7058         (gst_file_sink_close_file), (gst_file_sink_query),
7059         (gst_file_sink_event), (gst_file_sink_render),
7060         (gst_file_sink_change_state), (gst_file_sink_uri_get_type),
7061         (gst_file_sink_uri_get_protocols), (gst_file_sink_uri_get_uri),
7062         (gst_file_sink_uri_set_uri), (gst_file_sink_uri_handler_init):
7063         * gst/elements/gstfilesink.h:
7064         * gst/elements/gstfilesrc.c: (_do_init), (gst_file_src_base_init),
7065         (gst_file_src_class_init), (gst_file_src_init),
7066         (gst_file_src_finalize), (gst_file_src_set_location),
7067         (gst_file_src_set_property), (gst_file_src_get_property),
7068         (gst_file_src_map_region), (gst_file_src_map_small_region),
7069         (gst_file_src_create_mmap), (gst_file_src_create_read),
7070         (gst_file_src_create), (gst_file_src_is_seekable),
7071         (gst_file_src_get_size), (gst_file_src_start), (gst_file_src_stop),
7072         (gst_file_src_uri_get_type), (gst_file_src_uri_get_protocols),
7073         (gst_file_src_uri_get_uri), (gst_file_src_uri_set_uri),
7074         (gst_file_src_uri_handler_init):
7075         * gst/elements/gstfilesrc.h:
7076           more autistic cleanliness in functions/names/defines
7077
7078 2005-07-13  Andy Wingo  <wingo@pobox.com>
7079
7080         * gst/base/gstbasesrc.c (gst_base_src_start): Post an error if the
7081         source couldn't negotiate.
7082
7083         * gst/parse/grammar.y: Revert 1.54->1.55, so we now do filtered
7084         connections again.
7085
7086         * gst/gstutils.h:
7087         * gst/gstutils.c (gst_element_link_pads_filtered): New old
7088         function. I am channeling Hades. Put your boots on suckers!!!
7089
7090 2005-07-13  Thomas Vander Stichele  <thomas at apestaart dot org>
7091
7092         * testsuite/caps/Makefile.am:
7093         * testsuite/caps/value_compare.c:
7094         * testsuite/caps/value_intersect.c:
7095         * check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
7096           move two testsuite apps over to the check dir
7097
7098 2005-07-12  Wim Taymans  <wim@fluendo.com>
7099
7100         * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
7101         Added more debug info in the negotiate process.
7102
7103         * gst/gstmessage.h:
7104         Prepare for segment playback.
7105
7106         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps):
7107         Better debugging.
7108
7109         * gst/gstutils.c:
7110         Some more docs.
7111
7112         * tools/gst-launch.c: (main):
7113         NULL pipeline on errors.
7114
7115 2005-07-12  Andy Wingo  <wingo@pobox.com>
7116
7117         * gst/gstbuffer.c (_gst_buffer_copy): Copy the buffer whether or
7118         not it comes from a malloc region. Make sure our copy gets freed.
7119
7120 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
7121
7122         * check/gst/gstelement.c: (GST_START_TEST), (gst_element_suite):
7123         * check/gst/gstmessage.c: (GST_START_TEST):
7124         * check/gst/gststructure.c: (GST_START_TEST),
7125         (gst_structure_suite), (main):
7126           more testing
7127         * gst/gstelement.c: (gst_element_message_full):
7128           clean up GError and debug string now that they get copied
7129         * gst/gstmessage.c: (gst_message_new_error),
7130         (gst_message_new_warning), (gst_message_parse_error),
7131         (gst_message_parse_warning):
7132           use GST_TYPE_G_ERROR for structure_new, and take copies of
7133           arguments, so that we don't mess up refcounting
7134
7135 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
7136
7137         * check/Makefile.am:
7138           add per-test valgrind targets
7139         * check/gst-libs/gdp.c: (GST_START_TEST),
7140         (gst_data_protocol_suite), (main):
7141           clean up
7142
7143 2005-07-12  Thomas Vander Stichele  <thomas at apestaart dot org>
7144
7145         * check/Makefile.am:
7146           instate more valgrindable tests
7147         * check/elements/gstfakesrc.c: (chain_func), (event_func),
7148         (GST_START_TEST), (fakesrc_suite):
7149         * check/gst/gstpad.c: (GST_START_TEST):
7150         * check/gst/gststructure.c: (GST_START_TEST):
7151           fix test leaks
7152         * docs/gst/tmpl/gstminiobject.sgml:
7153         * gst/gstpad.c: (gst_pad_finalize):
7154           fix the static mutex leak
7155
7156 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
7157
7158         * check/Makefile.am:
7159           add two more tests for valgrinding
7160         * check/gst/gstvalue.c: (GST_START_TEST):
7161           test refcount of deserialized buffer, found a leak
7162         * docs/gst/gstreamer-docs.sgml:
7163         * docs/gst/gstreamer-sections.txt:
7164         * docs/gst/gstreamer.types:
7165         * docs/gst/tmpl/gstminiobject.sgml:
7166           add miniobject to docs
7167         * gst/gstminiobject.c:
7168           add some docs
7169         * gst/gstvalue.c: (gst_value_deserialize_buffer),
7170         (gst_string_unwrap):
7171           fix a hard-to-find invalid write for one of the tests
7172           fix a leak for deserialized buffers
7173
7174 2005-07-11  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7175
7176         * docs/pwg/advanced-events.xml:
7177         * docs/pwg/advanced-request.xml:
7178         * docs/pwg/advanced-scheduling.xml:
7179         * docs/pwg/appendix-porting.xml:
7180         * docs/pwg/building-boiler.xml:
7181         * docs/pwg/intro-preface.xml:
7182         * docs/pwg/other-ntoone.xml:
7183           Rewrite scheduling-chapter for scheduling model in 0.9. Add lots
7184           of example code and explanation for pad activation, loop() and
7185           getrange() functions and a bit more. Remove old comments pointing
7186           to loop-functions.
7187         * examples/pwg/Makefile.am:
7188           Add loop/getrange examples.
7189
7190 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
7191
7192         * configure.ac:
7193           check for valgrind binary + some fixes
7194         * check/gst.supp:
7195           valgrind suppressions for the tests
7196         * check/Makefile.am:
7197           add a valgrind: target that valgrinds the unit tests
7198         * check/gst/gst.c: (GST_START_TEST), (gst_suite):
7199         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST):
7200         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
7201         * check/gst/gstghostpad.c:
7202           added some cleanup
7203         * check/gst/gstdata.c:
7204           removed
7205         * check/gst/gstminiobject.c: (GST_START_TEST), (thread_ref),
7206         (thread_unref), (gst_mini_object_suite), (main):
7207           added
7208         * gst/gst.c: (gst_deinit):
7209         * gst/gst.h:
7210           add a method to clean up.
7211         * gst/gstsystemclock.c: (gst_system_clock_dispose),
7212         (gst_system_clock_obtain):
7213           allow for disposing the system clock.
7214         * tools/gst-launch.c: (main):
7215           deinit
7216
7217 2005-07-11  Thomas Vander Stichele  <thomas at apestaart dot org>
7218
7219         * docs/gst/tmpl/gstbasesrc.sgml:
7220         * docs/gst/tmpl/gstfakesrc.sgml:
7221         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
7222         (gst_base_src_init), (gst_base_src_set_property),
7223         (gst_base_src_get_property), (gst_base_src_get_range),
7224         (gst_base_src_start):
7225         * gst/base/gstbasesrc.h:
7226           add num-buffers property
7227         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
7228         (gst_fakesrc_init), (gst_fakesrc_set_property),
7229         (gst_fakesrc_get_property), (gst_fakesrc_create),
7230         (gst_fakesrc_start):
7231           remove num-buffers property
7232
7233 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
7234
7235         * docs/gst/gstreamer-sections.txt:
7236         * docs/gst/tmpl/gstbasesink.sgml:
7237         * docs/gst/tmpl/gstbasesrc.sgml:
7238         * gst/base/gstbasesink.c: (gst_base_sink_pad_getcaps),
7239         (gst_base_sink_pad_setcaps), (gst_base_sink_pad_buffer_alloc),
7240         (gst_base_sink_finalize), (gst_base_sink_set_clock),
7241         (gst_base_sink_set_property), (gst_base_sink_get_property),
7242         (gst_base_sink_handle_object), (gst_base_sink_event),
7243         (gst_base_sink_do_sync), (gst_base_sink_handle_event),
7244         (gst_base_sink_handle_buffer), (gst_base_sink_chain),
7245         (gst_base_sink_loop), (gst_base_sink_deactivate),
7246         (gst_base_sink_activate_push), (gst_base_sink_activate_pull),
7247         (gst_base_sink_change_state):
7248         * gst/base/gstbasesink.h:
7249         * gst/base/gstbasesrc.h:
7250         * gst/elements/gstfakesink.c: (gst_fakesink_get_times):
7251         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
7252         (gst_filesink_init):
7253           more macro splitting
7254
7255 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
7256
7257         * gst/gstelement.c: (gst_element_get_bus):
7258           add debug
7259         * tools/gst-launch.c: (check_intr), (event_loop):
7260           fix bus leaks
7261
7262 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
7263
7264         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
7265           fix a caps leak
7266
7267 2005-07-10  Thomas Vander Stichele  <thomas at apestaart dot org>
7268
7269         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
7270         (gst_base_src_finalize):
7271           add finalize method and clean up properly
7272         * gst/gstpipeline.c: (gst_pipeline_dispose):
7273           add debug
7274
7275 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
7276
7277         * check/gst/gstbin.c: (pop_messages), (GST_START_TEST),
7278         (gst_bin_suite):
7279           add more things to check
7280         * gst/gstbin.c: (gst_bin_change_state), (bin_bus_handler):
7281         * gst/gstelement.c:
7282           more debug
7283
7284 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
7285
7286         * check/elements/gstfakesrc.c: (chain_func), (event_func),
7287         (GST_START_TEST), (fakesrc_suite):
7288         * check/gst-libs/gdp.c: (GST_START_TEST):
7289         * check/gst/gst.c: (GST_START_TEST):
7290         * check/gst/gstbin.c: (GST_START_TEST), (gst_bin_suite):
7291         * check/gst/gstbuffer.c: (GST_START_TEST), (gst_test_suite):
7292         * check/gst/gstbus.c: (GST_START_TEST):
7293         * check/gst/gstcaps.c: (GST_START_TEST):
7294         * check/gst/gstdata.c: (GST_START_TEST):
7295         * check/gst/gstelement.c: (GST_START_TEST):
7296         * check/gst/gstghostpad.c: (GST_START_TEST):
7297         * check/gst/gstiterator.c: (GST_START_TEST):
7298         * check/gst/gstmessage.c: (GST_START_TEST):
7299         * check/gst/gstobject.c: (GST_START_TEST):
7300         * check/gst/gstpad.c: (GST_START_TEST):
7301         * check/gst/gststructure.c: (GST_START_TEST):
7302         * check/gst/gstsystemclock.c: (GST_START_TEST),
7303         (gst_systemclock_suite):
7304         * check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite):
7305         * check/gst/gstvalue.c: (GST_START_TEST):
7306         * check/pipelines/cleanup.c: (GST_START_TEST):
7307         * check/pipelines/simple_launch_lines.c: (GST_START_TEST):
7308         * check/states/sinks.c: (GST_START_TEST):
7309         * check/gstcheck.c: (gst_check_init):
7310         * check/gstcheck.h:
7311           add debugging category
7312           use GST_START_TEST now, so we add a debug line
7313
7314 2005-07-09  Thomas Vander Stichele  <thomas at apestaart dot org>
7315
7316         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite):
7317           add test for state change message on a bin
7318         * check/gst/gstelement.c: (START_TEST), (gst_element_suite):
7319           add another test
7320         * gst/gstbin.c: (gst_bin_init):
7321         * gst/gstbus.c: (gst_bus_init), (gst_bus_post):
7322         * gst/gstelement.c: (gst_element_post_message),
7323         (gst_element_set_state):
7324         * gst/gstelementfactory.c: (gst_element_factory_create):
7325         * gst/gstmessage.c: (gst_message_new):
7326         * gst/gstscheduler.c:
7327           various debugging additions and cleanups
7328
7329 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
7330
7331         * check/Makefile.am:
7332         * check/gst/gstelement.c: (START_TEST), (gst_element_suite),
7333         (main):
7334           adding tests for elements
7335         * gst/gstelement.c: (gst_element_dispose):
7336
7337 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
7338
7339         * gst/registries/gstlibxmlregistry.c: (load_feature):
7340           plug more leaks.  A simple gst_init() now is leakfree, yay.
7341
7342 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
7343
7344         * gst/registries/gstlibxmlregistry.c: (read_string), (load_paths),
7345         (gst_xml_registry_load):
7346           plug another memleak
7347
7348 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
7349
7350         * configure.ac:
7351           use GST_SET_ERROR_CFLAGS
7352         * docs/faq/cvs.xml:
7353           change to ERROR_CFLAGS
7354
7355 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
7356
7357         * configure.ac:
7358           make GST_ERROR_CFLAGS overridable and re-enable Werror
7359         * docs/faq/cvs.xml:
7360           add a note about error CFLAGS
7361         * docs/gst/tmpl/gstfakesrc.sgml:
7362         * gst/elements/gstfakesrc.c:
7363           comment out some unused code
7364         * gst/gst.c: (split_and_iterate):
7365         * gst/registries/gstlibxmlregistry.c: (load_pad_template),
7366         (load_feature):
7367           plug some memleaks
7368
7369 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
7370
7371         * common/Makefile.am:
7372         * common/gtk-doc.mak:
7373         * docs/gst/Makefile.am:
7374           factor out gtk-doc.mak
7375
7376 2005-07-07  Wim Taymans  <wim@fluendo.com>
7377
7378         * gst/schedulers/threadscheduler.c: (gst_thread_scheduler_func),
7379         (gst_thread_scheduler_dispose):
7380         Unlock the STREAM_LOCK completely.
7381
7382 2005-07-07  Thomas Vander Stichele  <thomas at apestaart dot org>
7383
7384         * check/Makefile.am:
7385         * check/elements/.cvsignore:
7386         * check/elements/gstfakesrc.c: (chain_func), (event_func),
7387         (START_TEST), (fakesrc_suite), (main):
7388         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
7389         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
7390         (gst_fakesrc_create), (gst_fakesrc_start):
7391         * gst/elements/gstfakesrc.h:
7392           adding a first element test
7393
7394 2005-07-07  Andy Wingo  <wingo@pobox.com>
7395
7396         * gst/gstbus.c (gst_bus_have_pending): Remove intensely irritating
7397         debug message.
7398
7399 2005-07-07  Wim Taymans  <wim@fluendo.com>
7400
7401         * gst/gstquery.c:
7402         * gst/gstquery.h:
7403         Remove old types
7404
7405 2005-07-07  Wim Taymans  <wim@fluendo.com>
7406
7407         * gst/base/gstbasesrc.c: (gst_base_src_get_range),
7408         (gst_base_src_default_negotiate), (gst_base_src_negotiate):
7409         Allow subclasses to implement their own negotiation.
7410
7411 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
7412
7413         * docs/design/part-gstbin.txt:
7414         * docs/design/part-gstpipeline.txt:
7415           Update design notes to reflect the movement of
7416           responsibility for bus handling from GstPipeline to
7417           GstBin
7418
7419 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
7420
7421         * configure.ac:
7422           Remove unnecessary queue2/3/4 examples.
7423
7424 2005-07-07  Jan Schmidt  <thaytan@mad.scientist.com>
7425
7426         * examples/Makefile.am:
7427         * examples/helloworld/helloworld.c: (event_loop), (main):
7428         * examples/queue/queue.c: (event_loop), (main):
7429         * examples/queue2/queue2.c: (main):
7430           Update a couple of the examples to work again.
7431
7432         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
7433         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_event):
7434          Spelling corrections and extra debug.
7435         
7436         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_init), (is_eos),
7437         (gst_bin_add_func), (bin_element_is_sink), (gst_bin_get_state),
7438         (gst_bin_change_state), (gst_bin_dispose), (bin_bus_handler):
7439         * gst/gstbin.h:
7440         * gst/gstpipeline.c: (gst_pipeline_init), (gst_pipeline_dispose),
7441         (gst_pipeline_change_state):
7442         * gst/gstpipeline.h:
7443           Move the bus handler for children to the GstBin, and create a
7444           separate bus for receiving messages from children to the one the
7445           bus sends 'upwards' on.
7446
7447 2005-07-06  Wim Taymans  <wim@fluendo.com>
7448
7449         * gst/base/README:
7450         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
7451         (gst_base_sink_handle_object), (gst_base_sink_loop),
7452         (gst_base_sink_change_state):
7453         * gst/base/gstbasesink.h:
7454         * gst/base/gstbasesrc.c: (gst_base_src_class_init),
7455         (gst_base_src_init), (gst_base_src_setcaps),
7456         (gst_base_src_getcaps), (gst_base_src_loop),
7457         (gst_base_src_default_negotiate), (gst_base_src_negotiate),
7458         (gst_base_src_start), (gst_base_src_change_state):
7459         * gst/base/gstbasesrc.h:
7460         Make basesrc negotiate.
7461         Handle the case where preroll fails in basesink.
7462         Update README.
7463
7464 2005-07-06  Wim Taymans  <wim@fluendo.com>
7465
7466         * gst/gstpad.c: (gst_pad_fixate_caps), (gst_pad_accept_caps):
7467         Implement the fixate function.
7468         Clean up acceptcaps.
7469
7470 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7471
7472         * docs/pwg/building-filterfactory.xml:
7473         * docs/pwg/pwg.xml:
7474           Remove never-written filter-factory chapter; I'll add the various
7475           base classes to part 4 ("other element types") later on.
7476
7477 2005-07-06  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7478
7479         * docs/pwg/advanced-negotiation.xml:
7480         * docs/pwg/building-boiler.xml:
7481         * docs/pwg/building-pads.xml:
7482         * docs/pwg/pwg.xml:
7483         * examples/pwg/Makefile.am:
7484           Add a chapter on caps negotiation, simplify the original code
7485           samples a bit w.r.t. caps negotiation, add link to the advanced
7486           section. Add a bunch of examples showing different use cases of
7487           different types of caps negotiation. Upstream renegotiation isn't
7488           fully documented yet since nobody knows how that works.
7489
7490 2005-07-06  Thomas Vander Stichele  <thomas at apestaart dot org>
7491
7492         * check/gst/gstpad.c:
7493         * check/gstcheck.c:
7494         * gst/gstpad.c: (gst_pad_get_internal_links_default):
7495           if pad has no parent, return NULL as list of internal links
7496
7497 2005-07-05  Andy Wingo  <wingo@pobox.com>
7498
7499         * gst/elements/gstfilesrc.c:
7500         * gst/elements/gstfakesrc.c: 
7501         * gst/base/gstpushsrc.c:
7502         * gst/base/gstbasesrc.h: 
7503         * gst/base/gstbasesrc.c: s/BASESRC/BASE_SRC/g.
7504         
7505 2005-07-05  Stefan Kost  <ensonic@users.sf.net>
7506
7507         * Makefile.am:
7508           better report generation target (lcov needs a patch)
7509
7510 2005-07-05  Andy Wingo  <wingo@pobox.com>
7511
7512         * gst/elements, testsuite: Null if we got it...
7513
7514 2005-07-05  Wim Taymans  <wim@fluendo.com>
7515
7516         * configure.ac:
7517         * libs/gst/dataprotocol/Makefile.am:
7518         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_validate_packet):
7519         * libs/gst/dataprotocol/dataprotocol.h:
7520         * pkgconfig/Makefile.am:
7521         * pkgconfig/gstreamer-dataprotocol-uninstalled.pc.in:
7522         * pkgconfig/gstreamer-dataprotocol.pc.in:
7523         Ported dataprotol to 0.9. 
7524         Added pkgconfig files.
7525
7526 2005-07-05  Andy Wingo  <wingo@pobox.com>
7527
7528         * gst/base/gstbasetransform.c (gst_base_transform_setcaps):
7529         Default to returning TRUE for the case when tranform_caps returns
7530         a fixed caps, like for identity or volume.
7531
7532         * check/gst/gstbus.c (pound_bus_with_messages): 
7533         * check/gst/gstmessage.c (START_TEST): 
7534         * check/pipelines/simple_launch_lines.c (got_handoff): Application
7535         message API change.
7536
7537         * gst/base/gstbasetransform.c (gst_base_transform_setcaps): More
7538         logic weaks here: always run transform_caps, trying passthrough
7539         operation only if the original caps intersects with the transform.
7540
7541         * gst/gstpad.c (gst_pad_link_check_compatible_unlocked): Debug
7542         source and sink caps.
7543
7544         * gst/base/gstbasetransform.c (gst_base_transform_getcaps):
7545         Intersect the peer caps with the pad template before going into
7546         transform_caps.
7547         (gst_base_transform_transform_caps): More debugging.
7548
7549         * gst/gstmessage.h (gst_message_new_application): Take a GstObject
7550         src argument.
7551
7552 2005-07-04  Edward Hervey  <edward@fluendo.com>
7553
7554         * gst/gstutils.c:
7555         * gst/gstutils.h:
7556         (gst_pad_add_*_probe): now returns the signal id for better wrapping
7557         in bindings.
7558
7559 2005-07-04  Andy Wingo  <wingo@pobox.com>
7560
7561         * check/gst/gstpad.c: Only set explicit caps on pads.
7562
7563 2005-07-01  Andy Wingo  <wingo@pobox.com>
7564
7565         * tests/network-clock.scm: Commentary update.
7566
7567         * gst/elements/gstidentity.c (PROP_DUPLICATE): Gone daddy gone.
7568         Didn't really make sense, not implementable with basetransform,
7569         etc.
7570         (gst_identity_transform): Unref inbuf via make_writable. Feeble
7571         attempt at implementing the sync property, needs an unlock method.
7572
7573         * gst/base/gstbasetransform.c (gst_base_transform_transform_caps):
7574         New func, by default returns the same caps (the identity
7575         transformation).
7576         (gst_base_transform_getcaps): Uses transform_caps to return
7577         something sensible.
7578         (gst_base_transform_setcaps): Complicated logic to get caps on
7579         both pads, even if they are different, and to call set_caps once
7580         for every time both pads get their caps set.
7581         (gst_base_transform_handle_buffer): Give the ref to the transform
7582         function. Allows in-place modification of the buffer.
7583
7584         * gst/base/gstbasetransform.h (transform_caps): New class method.
7585         Given caps on one side, what can I do on the other.
7586         (set_caps): Take two caps, one for each side of the element.
7587
7588         * gst/gstpad.h:
7589         * gst/gstpad.c (gst_pad_fixate_caps): Change prototype to modify
7590         caps in place. This is safe because we can check the mutability of
7591         the caps, and a good idea because fixate functions are just called
7592         as a matter of last resort. (Not actually implemented.)
7593         (gst_pad_set_caps): If the caps we're setting is actually the same
7594         as the existing pad caps, just update the pointer without calling
7595         setcaps. Assert that caps is either NULL or fixed, as per the
7596         docs.
7597
7598         * gst/gstghostpad.c: Update for fixate changes.
7599
7600 2005-07-02  Andy Wingo  <wingo@pobox.com>
7601
7602         * gst/gstcaps.c:
7603         * gst/gstcaps.h (gst_static_caps_get): Not const return, having
7604         two refcounts makes it immutable, which is enough. Doc more.
7605
7606 2005-07-02  Jan Schmidt  <thaytan@mad.scientist.com>
7607
7608         * gst/gstpad.c: (gst_pad_emit_have_data_signal):
7609           Put the mini_object into GValue as a mini_object,
7610           not a gpointer, since that's how we declared
7611           the signal.
7612
7613 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7614
7615         * examples/pwg/Makefile.am:
7616           Fix buildbot again.
7617
7618 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7619
7620         * docs/pwg/building-testapp.xml:
7621           Add extra check.
7622         * examples/pwg/Makefile.am:
7623           Fix buildbot.
7624
7625 2005-07-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7626
7627         * configure.ac:
7628         * examples/Makefile.am:
7629         * examples/pwg/Makefile.am:
7630         * examples/pwg/extract.pl:
7631           Enable building the PWG examples.
7632         * docs/pwg/advanced-interfaces.xml:
7633           Add URI interface stub.
7634         * docs/pwg/advanced-types.xml:
7635         * docs/pwg/other-autoplugger.xml:
7636         * docs/pwg/appendix-porting.xml:
7637         * docs/pwg/pwg.xml:
7638           Add porting guide (mostly stubs), remove autoplugging (see ADM).
7639         * docs/pwg/building-boiler.xml:
7640         * docs/pwg/building-chainfn.xml:
7641         * docs/pwg/building-pads.xml:
7642         * docs/pwg/building-props.xml:
7643         * docs/pwg/building-state.xml:
7644         * docs/pwg/building-testapp.xml:
7645           Update the building-*.xml parts for 0.9 changes. All examples
7646           code blocks compile in examples/pwg/*.
7647
7648 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7649
7650         * docs/manual/advanced-autoplugging.xml:
7651         * docs/manual/appendix-checklist.xml:
7652         * docs/manual/appendix-integration.xml:
7653         * docs/manual/highlevel-components.xml:
7654           Fix playbin/decodebin examples, update docs a bit, mention bus
7655           instead of signals in various places, mention kmplayer and
7656           kaffeine since they have a working GStreamer backend in the KDE
7657           section.
7658
7659 2005-06-30  Wim Taymans  <wim@fluendo.com>
7660
7661         * CHANGES-0.9:
7662         * docs/design/draft-ghostpads.txt:
7663         * docs/design/draft-push-pull.txt:
7664         * docs/design/draft-query.txt:
7665         * docs/design/part-TODO.txt:
7666         * docs/design/part-query.txt:
7667         Added CHANGES-0.9 doc, updated status of other docs.
7668         
7669         * gst/gstquery.h:
7670         Remove "hmm" macro
7671
7672 2005-06-30  Wim Taymans  <wim@fluendo.com>
7673
7674         * gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
7675         (gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
7676         (gst_base_sink_change_state):
7677         * gst/base/gstbasesink.h:
7678         Some tweaks, only EOS and a buffer complete a preroll.
7679
7680 2005-06-30  Andy Wingo  <wingo@pobox.com>
7681
7682         * gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
7683         activate_push down to the internal pad as well.
7684
7685 2005-06-30  Torsten Schoenfeld  <kaffeetisch@gmx.de>
7686
7687         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7688
7689         * gst/gsttaginterface.c:
7690           Some documentation fixes (#307394 and #307397).
7691
7692 2005-06-30  Antoine Tremblay  <hexa00@gmail.com>
7693
7694         Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7695
7696         * gst/gstvalue.c: (gst_value_intersect_list):
7697           Fix memleak (#309125).
7698
7699 2005-06-30  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7700
7701         * docs/manual/advanced-dataaccess.xml:
7702           Fix fakesrc example to compile; doesn't work, bug somewhere...?
7703         * docs/manual/basics-pads.xml:
7704           Add reference for filtered caps to above chapter.
7705
7706 2005-06-30  Wim Taymans  <wim@fluendo.com>
7707
7708         * gst/gstbin.c: (clear_queue), (remove_all_from_queue),
7709         (gst_bin_change_state):
7710         Probes are gone.
7711         Lame attempt at making the state change function a bit
7712         more readable.
7713
7714 2005-06-30  Wim Taymans  <wim@fluendo.com>
7715
7716         * docs/design/part-clocks.txt:
7717         * docs/design/part-element-sink.txt:
7718         * docs/design/part-events.txt:
7719         * docs/design/part-preroll.txt:
7720         * docs/design/part-states.txt:
7721         Some more tweeks and additions to the docs.
7722
7723 2005-06-30  Wim Taymans  <wim@fluendo.com>
7724
7725         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
7726         (default_have_data), (gst_pad_class_init), (gst_pad_init),
7727         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
7728         (gst_pad_check_pull_range), (gst_pad_get_range),
7729         (gst_pad_pull_range), (gst_pad_push_event), (gst_pad_send_event):
7730         * gst/gstpad.h:
7731         * gst/gstutils.c: (gst_atomic_int_set), (gst_pad_add_data_probe),
7732         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
7733         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
7734         (gst_pad_remove_buffer_probe):
7735         Removed atomic operations, use existing LOCK.
7736         Move exception handling out of main code path.
7737
7738 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7739
7740         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
7741         (silly_return_true_function), (gst_pad_class_init),
7742         (gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
7743         (gst_pad_get_range), (gst_pad_pull_range), (gst_pad_push_event),
7744         (gst_pad_send_event):
7745           Fix accumulator, add default value by using _emitv() instead
7746           of _emit() for signal emission.
7747
7748 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7749
7750         * docs/manual/advanced-dataaccess.xml:
7751         * examples/manual/Makefile.am:
7752           Add probe example.
7753         * gst/gstpad.c: (_gst_do_pass_data_accumulator):
7754           Make work (??).
7755
7756 2005-06-29  Tim-Philipp Müller  <tim at centricular dot net>
7757
7758         * gst/elements/gstfilesink.c: (gst_filesink_render):
7759           Simplify code so that we don't have to handle short
7760           writes and return GST_FLOW_ERROR if an error occured.
7761
7762 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7763
7764         * docs/gst/gstreamer-docs.sgml:
7765           Remove probes more.
7766
7767 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7768
7769         * docs/gst/gstreamer-sections.txt:
7770         * docs/gst/tmpl/gstpad.sgml:
7771         * docs/gst/tmpl/gstprobe.sgml:
7772         * gst/Makefile.am:
7773         * gst/gstpad.c: (_gst_do_pass_data_accumulator),
7774         (gst_pad_class_init), (gst_pad_init), (gst_pad_chain),
7775         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
7776         (gst_pad_push_event), (gst_pad_send_event):
7777         * gst/gstpad.h:
7778         * gst/gstutils.c: (gst_pad_add_data_probe),
7779         (gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
7780         (gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
7781         (gst_pad_remove_buffer_probe):
7782         * gst/gstutils.h:
7783           Remove old probes, add new g-signal-based probes and some utility
7784           functions.
7785
7786 2005-06-29  Edward Hervey  <edward@fluendo.com>
7787
7788         * gst/gstelementfactory.c:
7789         * gst/gstutils.h:
7790         * gst/gstutils.c:
7791         Moved gst_element_factory_can_[sink|src]_caps() to gstutils and added
7792         the definition to the header file.
7793
7794 2005-06-29  Andy Wingo  <wingo@pobox.com>
7795
7796         * docs/gst/Makefile.am (scan-build.stamp): Totally only check
7797         plugins from the source directory.
7798
7799 2005-06-29  Wim Taymans  <wim@fluendo.com>
7800
7801         * docs/gst/tmpl/gstbuffer.sgml:
7802         * docs/gst/tmpl/gstclock.sgml:
7803         Some fixings for blantently wrong text.
7804
7805 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
7806
7807         * check/Makefile.am:
7808         * gst/gst.c: (add_path_func), (init_pre):
7809         * gst/gstregistry.c: (gst_registry_add_path):
7810           add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will
7811           only scan the GST_PLUGIN_PATH locations, and not add
7812           system locations
7813
7814 2005-06-29  Thomas Vander Stichele  <thomas at apestaart dot org>
7815
7816         * docs/gst/gstreamer-sections.txt:
7817         * docs/gst/tmpl/gstbasesrc.sgml:
7818         * gst/gstelement.c:
7819         * gst/gstelement.h:
7820         * gst/gstevent.c:
7821         * gst/gstutils.c:
7822           doc fixes
7823
7824 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7825
7826         * docs/manual/advanced-autoplugging.xml:
7827           Fix autoplugging example.
7828
7829 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7830
7831         * docs/manual/advanced-autoplugging.xml:
7832         * docs/manual/mime-world.fig:
7833           Try to get autoplugging working, fix type detection. Fix text
7834           in hello-world image.
7835
7836 2005-06-29  Wim Taymans  <wim@fluendo.com>
7837
7838         * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
7839         (gst_base_sink_change_state):
7840         Small debug line.
7841
7842         * gst/gstclock.h:
7843         map SIGNAL and BROADCAST to the right function.
7844
7845         * gst/gstobject.h:
7846         Remove redundant braces.
7847
7848         * gst/gstpad.c: (gst_pad_set_caps):
7849         Don't call setcaps function when reseting caps to NULL.
7850
7851         * gst/gstsystemclock.c: (gst_system_clock_dispose),
7852         (gst_system_clock_async_thread), (gst_system_clock_id_wait_async),
7853         (gst_system_clock_id_unschedule):
7854         Use BROADCAST as this is what we do.
7855
7856 2005-06-29  Wim Taymans  <wim@fluendo.com>
7857
7858         * gst/base/gstbasesink.c: (gst_base_sink_handle_object):
7859         We are actually prerolling before commiting the state
7860         change. 
7861
7862 2005-06-29  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
7863
7864         * docs/manual/advanced-clocks.xml:
7865         * docs/manual/advanced-interfaces.xml:
7866         * docs/manual/advanced-metadata.xml:
7867         * docs/manual/advanced-position.xml:
7868         * docs/manual/advanced-schedulers.xml:
7869         * docs/manual/advanced-threads.xml:
7870         * docs/manual/appendix-porting.xml:
7871         * docs/manual/basics-bins.xml:
7872         * docs/manual/basics-bus.xml:
7873         * docs/manual/basics-elements.xml:
7874         * docs/manual/basics-helloworld.xml:
7875         * docs/manual/basics-pads.xml:
7876         * docs/manual/highlevel-components.xml:
7877         * docs/manual/manual.xml:
7878         * docs/manual/thread.fig:
7879           Update (until threads/scheduling) Application Development Manual;
7880           remove GstThread, add GstBus, add simple porting checklist, add
7881           documentation for tag writing, clocks, make all examples until this
7882           part compile and run.
7883         * examples/manual/Makefile.am:
7884           Update from changes to Application Development Manual; add bus
7885           example, remove thread example.
7886
7887 2005-06-28  Wim Taymans  <wim@fluendo.com>
7888
7889         * gst/gstbus.c: (gst_bus_post), (gst_bus_have_pending),
7890         (gst_bus_set_flushing), (gst_bus_pop), (gst_bus_peek),
7891         (gst_bus_source_dispatch):
7892         Add debugging messages.
7893         Make internal methods static.
7894         Handle the case where the bus is flushed in the handler.
7895         
7896         * gst/gstelement.c: (gst_element_get_bus):
7897         Fix refcount in _get_bus();
7898
7899         * gst/gstpipeline.c: (gst_pipeline_change_state),
7900         (gst_pipeline_get_clock_func):
7901         Clock refcounting fixes.
7902         Handle the case where preroll timed out more gracefully.
7903         
7904         * gst/gstsystemclock.c: (gst_system_clock_dispose):
7905         Clean up the internal thread in dispose. This is needed
7906         for subclasses that actually get disposed.
7907         
7908         * gst/schedulers/threadscheduler.c:
7909         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
7910         (gst_thread_scheduler_dispose):
7911         Free thread pool in dispose.
7912
7913 2005-06-28  Andy Wingo  <wingo@pobox.com>
7914
7915         * tests/network-clock-utils.scm (debug, print-event): New utils.
7916
7917         * tests/network-clock.scm (*debug*, *with-graph*): New parameters.
7918         (*packet-loss*): Unified loss probability.
7919         (network-time): Report out-of-band events.
7920
7921         * tests/plot-data: Add support for out-of-band events. Hack it
7922         into this script instead of passing it down the pipe; should fix
7923         this later.
7924
7925 2005-06-28  Wim Taymans  <wim@fluendo.com>
7926
7927         * docs/gst/gstreamer.types:
7928         * docs/gst/tmpl/gstbasesrc.sgml:
7929         * docs/gst/tmpl/gstpad.sgml:
7930         Docs fixes.
7931
7932 2005-06-28  Wim Taymans  <wim@fluendo.com>
7933
7934         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
7935         (gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_acceptcaps),
7936         (gst_proxy_pad_do_fixatecaps):
7937         Correctly proxy the check_pull_range function.
7938
7939 2005-06-28  Andy Wingo  <wingo@pobox.com>
7940
7941         * tests/network-clock.scm: Removed need for slib.
7942         
7943 2005-06-28  Wim Taymans  <wim@fluendo.com>
7944
7945         * gst/base/gstbasesink.c: (gst_basesink_set_pad_functions),
7946         (gst_basesink_preroll_queue_flush):
7947         * gst/base/gstbasesrc.c: (gst_basesrc_set_dataflow_funcs):
7948         * gst/elements/gsttee.c: (gst_tee_update_pad_functions):
7949         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
7950         (gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
7951         (gst_proxy_pad_set_property):
7952         * gst/gstpad.c:
7953         * gst/gstpad.h:
7954         * gst/gstqueue.c: (gst_queue_init):
7955         The deprecated pad loop function is removed now.
7956
7957 2005-06-28  Andy Wingo  <wingo@pobox.com>
7958
7959         * tests/network-clock.scm (*timeout*, *send-loss*, *recv-loss*):
7960         New parameters, simulate network packet loss.
7961
7962         * tests/network-clock-utils.scm: Initialize the RNG.
7963
7964 2005-06-28  Wim Taymans  <wim@fluendo.com>
7965
7966         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_flush),
7967         (gst_basesink_event), (gst_basesink_deactivate):
7968         Flushing the preroll queue always needs to unlock the waiters.
7969
7970 2005-06-28  Edward Hervey  <edward@fluendo.com>
7971
7972         * gst/gstpipeline.c: (gst_pipeline_send_event): 
7973         Wheen a seek was successful on a pipeline, set the stream_time to the
7974         seek offset in order to have a synchronized stream_time.
7975
7976 2005-06-28  Wim Taymans  <wim@fluendo.com>
7977
7978         * gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
7979         (gst_proxy_pad_do_getrange), (gst_proxy_pad_do_checkgetrange),
7980         (gst_proxy_pad_do_getcaps), (gst_proxy_pad_do_acceptcaps),
7981         (gst_proxy_pad_do_fixatecaps):
7982         Call wrapper function instead of just calling the function
7983         pointers. This takes care of any locking and whatmore.
7984
7985 2005-06-28  Wim Taymans  <wim@fluendo.com>
7986
7987         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push),
7988         (gst_pad_pull_range):
7989         * gst/gstpad.h:
7990         CONNECTED -> LINKED.
7991
7992 2005-06-28  Andy Wingo  <wingo@pobox.com>
7993
7994         * *.c: Don't cast to GST_OBJECT when reffing or unreffing. Large
7995         source-munging commit!!!
7996
7997         * gst/gstobject.c (gst_object_unref, gst_object_ref) 
7998         (gst_object_sink): Take gpointer arguments, not GstObject --
7999         avoids casts. Like GLib.
8000
8001         * gst/gstghostpad.c (gst_proxy_pad_do_activate): Don't proxy
8002         activate.
8003
8004 2005-06-27  Andy Wingo  <wingo@pobox.com>
8005
8006         * gst/base/gsttypefindhelper.c (gst_type_find_helper): Unref any
8007         remaining buffer.
8008
8009         * gst/gsttrace.c (gst_alloc_trace_list_sorted): New helper,
8010         returns a sorted copy of the trace list.
8011         (gst_alloc_trace_print_live): New API, only prints traces with
8012         live objects. Sort the list.
8013         (gst_alloc_trace_print_all): Sort the list.
8014         (gst_alloc_trace_print): Align columns.
8015
8016         * gst/elements/gstttypefindelement.c:
8017         * gst/elements/gsttee.c:
8018         * gst/base/gstbasesrc.c:
8019         * gst/base/gstbasesink.c:
8020         * gst/base/gstbasetransform.c:
8021         * gst/gstqueue.c: Adapt for pad activation changes.
8022
8023         * gst/gstpipeline.c (gst_pipeline_init): Unref after parenting
8024         sched.
8025         (gst_pipeline_dispose): Drop ref on sched.
8026
8027         * gst/gstpad.c (gst_pad_init): Set the default activate func.
8028         (gst_pad_activate_default): Push mode by default.
8029         (pre_activate_switch, post_activate_switch): New stubs, things to
8030         do before and after switching activation modes on pads.
8031         (gst_pad_set_active): Take a boolean and not a mode, dispatch to
8032         the pad's activate function to choose which mode to activate.
8033         Shortcut on deactivation and call the right function directly.
8034         (gst_pad_activate_pull): New API, (de)activates a pad in pull
8035         mode.
8036         (gst_pad_activate_push): New API, same for push mode.
8037         (gst_pad_set_activate_function) 
8038         (gst_pad_set_activatepull_function) 
8039         (gst_pad_set_activatepush_function): Setters for new API.
8040
8041         * gst/gstminiobject.c (gst_mini_object_new, gst_mini_object_free):
8042         Trace all miniobjects.
8043         (gst_mini_object_make_writable): Unref the arg if we copy, like
8044         gst_caps_make_writable.
8045
8046         * gst/gstmessage.c (_gst_message_initialize): No trace init.
8047
8048         * gst/gstghostpad.c (gst_proxy_pad_do_activate) 
8049         (gst_proxy_pad_do_activatepull, gst_proxy_pad_do_activatepush):
8050         Adapt for new pad API.
8051
8052         * gst/gstevent.c (_gst_event_initialize): Don't initialize trace.
8053
8054         * gst/gstelement.h:
8055         * gst/gstelement.c (gst_element_iterate_src_pads) 
8056         (gst_element_iterate_sink_pads): New API functions.
8057         
8058         * gst/gstelement.c (iterator_fold_with_resync): New utility,
8059         should fold into gstiterator.c in some form.
8060         (gst_element_pads_activate): Simplified via use of fold and
8061         delegation of decisions to gstpad->activate.
8062
8063         * gst/gstbus.c (gst_bus_source_finalize): Set the bus to NULL,
8064         help in debugging.
8065
8066         * gst/gstbuffer.c (_gst_buffer_initialize): Ref the buffer type
8067         class once in init, like gstmessage. Didn't run into this issue
8068         but it seems correct. Don't initialize a trace, gstminiobject does
8069         that.
8070
8071         * check/pipelines/simple_launch_lines.c (test_stop_from_app): New
8072         test, runs fakesrc ! fakesink, stopping on ::handoff via a message
8073         to the bus.
8074         (assert_live_count): New util function, uses alloc traces to check
8075         cleanup.
8076
8077         * check/gst/gstghostpad.c (test_ghost_pads): More refcount checks.
8078         To be modified when unlink drops the internal pad.
8079
8080 2005-06-27  Wim Taymans  <wim@fluendo.com>
8081
8082         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_iterate_state_order),
8083         (gst_bin_change_state):
8084         Cleanup the get_state() function a little, make sure it
8085         iterates the same set of elements.
8086         Added stub iterate_state_order().
8087
8088 2005-06-27  Thomas Vander Stichele  <thomas at apestaart dot org>
8089
8090         * docs/gst/gstreamer-docs.sgml:
8091         * docs/gst/gstreamer-sections.txt:
8092         * docs/gst/gstreamer.types:
8093         * docs/gst/tmpl/gstbasesink.sgml:
8094         * docs/gst/tmpl/gstbasesrc.sgml:
8095         * docs/gst/tmpl/gstbasetransform.sgml:
8096         * docs/gst/tmpl/gstelement.sgml:
8097         * docs/gst/tmpl/gstiterator.sgml:
8098         * gst/base/gstbasesrc.c:
8099         * gst/base/gstbasesrc.h:
8100         * gst/base/gstbasetransform.h:
8101         * gst/gstelement.c:
8102         * gst/gstiterator.h:
8103           adding basetransform and iterator docs
8104
8105 2005-06-27  Andy Wingo  <wingo@pobox.com>
8106
8107         * docs/design/part-activation.txt: Notes on how activation should
8108         work -- not quite implemented yet.
8109
8110 2005-06-25  Wim Taymans  <wim@fluendo.com>
8111
8112         * gst/gstghostpad.c: (gst_proxy_pad_do_chain):
8113         At least get the chain function correct, needs more
8114         fixing.
8115
8116 2005-06-25  Wim Taymans  <wim@fluendo.com>
8117
8118         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
8119         (gst_basesink_handle_object), (gst_basesink_event),
8120         (gst_basesink_do_sync), (gst_basesink_handle_event),
8121         (gst_basesink_change_state):
8122         * gst/gsttask.h:
8123         Right, two problems here: ghostpads don't take locks and
8124         glib _rec_mutex_lock_full() with depth==0 still locks.
8125         Catch illegal locking and g_warn them.
8126
8127 2005-06-25  Wim Taymans  <wim@fluendo.com>
8128
8129         * check/states/sinks.c: (START_TEST), (gst_object_suite):
8130         Have to check for completion now...
8131
8132 2005-06-25  Wim Taymans  <wim@fluendo.com>
8133
8134         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
8135         (gst_basesink_handle_object), (gst_basesink_event),
8136         (gst_basesink_do_sync), (gst_basesink_handle_event),
8137         (gst_basesink_change_state):
8138         * gst/gstpad.h:
8139         Unlock STREAM_LOCK whatever the recursion was.
8140
8141 2005-06-25  Wim Taymans  <wim@fluendo.com>
8142
8143         * gst/base/gstbasesink.c: (gst_basesink_set_property),
8144         (gst_basesink_preroll_queue_empty),
8145         (gst_basesink_preroll_queue_flush), (gst_basesink_handle_object),
8146         (gst_basesink_event), (gst_basesink_do_sync),
8147         (gst_basesink_handle_event), (gst_basesink_handle_buffer),
8148         (gst_basesink_chain), (gst_basesink_loop), (gst_basesink_activate),
8149         (gst_basesink_change_state):
8150         Reworked the base sink, handle event and buffer serialisation
8151         correctly and removed possible deadlock.
8152         Handle EOS correctly.
8153
8154 2005-06-25  Wim Taymans  <wim@fluendo.com>
8155
8156         * gst/gstpipeline.c: (is_eos), (pipeline_bus_handler),
8157         (gst_pipeline_change_state):
8158         * tools/gst-launch.c: (check_intr), (event_loop), (main):
8159         Allow elements to post EOS in the state change function.
8160         Fix up -launch, make it exit the poll loop when the
8161         pipeline actually changed state.
8162         Fix up warning parsing in -launch.
8163
8164 2005-06-25  Wim Taymans  <wim@fluendo.com>
8165
8166         * gst/elements/gsttee.c: (gst_tee_chain), (gst_tee_loop),
8167         (gst_tee_sink_activate):
8168         Core takes STREAM_LOCK for us now.
8169
8170 2005-06-25  Wim Taymans  <wim@fluendo.com>
8171
8172         * gst/gstelement.c: (gst_element_get_state_func),
8173         (gst_element_set_state):
8174         * gst/gstelement.h:
8175         * gst/gstmessage.c: (gst_message_parse_error),
8176         (gst_message_parse_warning):
8177         Keep track of current target state while performing a state
8178         change so that subclasses can do something interesting.
8179         Fix parsing of warning/error messages when GError is NULL.
8180
8181 2005-06-24  Thomas Vander Stichele  <thomas at apestaart dot org>
8182
8183         * docs/gst/Makefile.am:
8184         * docs/gst/gstreamer-docs.sgml:
8185         * docs/gst/gstreamer-sections.txt:
8186         * docs/gst/gstreamer.types:
8187         * docs/gst/tmpl/gstbasesink.sgml:
8188         * docs/gst/tmpl/gstbasesrc.sgml:
8189         * docs/gst/tmpl/gstbin.sgml:
8190         * docs/gst/tmpl/gstcompat.sgml:
8191         * docs/gst/tmpl/gstfakesink.sgml:
8192         * docs/gst/tmpl/gstfakesrc.sgml:
8193         * docs/gst/tmpl/gstfilesink.sgml:
8194         * docs/gst/tmpl/gstfilesrc.sgml:
8195         * docs/gst/tmpl/gstindex.sgml:
8196         * docs/manual/appendix-quotes.xml:
8197         * gst/base/gstbasesrc.h:
8198         * gst/elements/gstfakesrc.h:
8199         * gst/gstmessage.h:
8200           start pulling in base classes and elements in our docs
8201
8202 2005-06-24  Stefan Kost  <ensonic@users.sf.net>
8203
8204         * docs/gst/Makefile.am:
8205         * docs/libs/Makefile.am:
8206           fixed make distcheck with gtk-doc 1.3
8207
8208 2005-06-23  Wim Taymans  <wim@fluendo.com>
8209
8210         * gst/gstelement.c: (gst_element_get_state_func),
8211         (gst_element_set_state), (gst_element_change_state):
8212         When the state did not change, also report NO_PREROLL
8213         when it matters.
8214
8215 2005-06-23  Wim Taymans  <wim@fluendo.com>
8216
8217         * gst/gstpad.c: (gst_pad_event_default):
8218         * gst/gstqueue.c: (gst_queue_loop):
8219         No unsafe task pausing please.
8220
8221 2005-06-23  Wim Taymans  <wim@fluendo.com>
8222
8223         * gst/schedulers/threadscheduler.c:
8224         (gst_thread_scheduler_task_start),
8225         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_func):
8226         Ref the task before pushing it on the threadpool. This
8227         makes sure that we have a ref when the threadfunction is
8228         actually called.
8229
8230 2005-06-23  Andy Wingo  <wingo@pobox.com>
8231
8232         * gst/base/gstbasesrc.c (gst_basesrc_get_range): Check if the
8233         offset is greater than the file's size.
8234
8235         * gst/gstobject.h (GST_CLASS_LOCK, GST_CLASS_TRYLOCK) 
8236         (GST_CLASS_UNLOCK, GST_CLASS_GET_LOCK, GstObjectClass)
8237         * gst/gstobject.c (gst_object_class_init): Make the class lock
8238         recursive. Wim won't let me drop deep_notify. Decodebin works
8239         again, whoopdy doo.
8240
8241         * gst/gstghostpad.c (on_int_notify): Catches notify::caps on the
8242         internal pad, and hacks accordingly. Doesn't do it on the target
8243         pad because we change its caps. Probably catches all cases of
8244         interest tho.
8245         (gst_ghost_pad_set_property): Connect to notify::caps as
8246         appropritate.
8247
8248         * tests/network-clock.scm (plot-simulation): Pipe data to the
8249         elite python skript.
8250
8251         * tests/network-clock-utils.scm (define-parameter): New macro,
8252         defines a parameter that can be set via the command line.
8253         (set-parameter!, parse-parameter-arguments): Command line args
8254         parser.
8255
8256         * tests/plot-data: Simple matplotlib-based plotter, takes input on
8257         stdin.
8258
8259 2005-06-23  Jan Schmidt  <thaytan@mad.scientist.com>
8260
8261         * gst/elements/gsttypefindelement.c:
8262         (gst_type_find_element_handle_event):
8263           Don't restart typefinding on a discont.
8264         * gst/gstelement.c: (gst_element_set_state):
8265           Debug spelling fix.
8266         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_send_event):
8267           Allow changing mode of an active pad.
8268           Debug output fixes.
8269         * gst/registries/gstlibxmlregistry.c: (load_feature):
8270           Don't cast a static pad template to a normal pad template.
8271
8272 2005-06-23  Thomas Vander Stichele  <thomas at apestaart dot org>
8273
8274         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
8275         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
8276           remove gst_strtoll completely, since it didn't actually do
8277           anything more than what g_ascii_strtoull already does.
8278           check for range errors when deserializing
8279           do a cast for the unsigned cases; but further fixing needs
8280           a decision on what the interpretation of "(int)" and
8281           deserialization should be for values that fall outside the
8282           type's boundaries (ie, refuse, or interpret as casting)
8283
8284 2005-06-23  Wim Taymans  <wim@fluendo.com>
8285
8286         * check/Makefile.am:
8287         * check/states/sinks.c: (START_TEST), (gst_object_suite), (main):
8288         * docs/design/part-live-source.txt:
8289         * docs/design/part-states.txt:
8290         * gst/base/gstbasesrc.c: (gst_basesrc_init),
8291         (gst_basesrc_set_live), (gst_basesrc_is_live),
8292         (gst_basesrc_get_range), (gst_basesrc_activate),
8293         (gst_basesrc_change_state):
8294         * gst/base/gstbasesrc.h:
8295         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
8296         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
8297         * gst/gstbin.c: (gst_bin_get_state), (gst_bin_change_state):
8298         * gst/gstelement.c: (gst_element_get_state_func),
8299         (gst_element_set_state):
8300         * gst/gstelement.h:
8301         * gst/gsttypes.h:
8302         * tools/gst-launch.c: (event_loop), (main):
8303         Added support for live sources and other elements that
8304         cannot do preroll.
8305         Updated design docs, added live-source design doc.
8306         Implemented live source functionality in basesrc
8307         Fix error condition in _bin_get_state()
8308         Implement live source handling in -launch.
8309         Added check for live sources.
8310         Fixed case in GstBin where elements were changed state
8311         multiple times.
8312
8313
8314 2005-06-23  Andy Wingo  <wingo@pobox.com>
8315
8316         * check/gst/gstpad.c (test_get_allowed_caps, test_refcount): Fix
8317         borken refcounting.
8318
8319         * gst/gstpad.c (gst_pad_set_caps): Remove needless refs,
8320         gst_caps_replace takes care of this for us.
8321
8322         * gst/gstghostpad.c (gst_proxy_pad_do_setcaps): Call the full
8323         gst_pad_set_caps on the target, not just its setcaps() function.
8324
8325         * tests/network-clock.scm: 
8326         * tests/network-clock-utils.scm: A network clock simulator.
8327         Something of an algorithmic testbed before doing something in C.
8328
8329 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
8330
8331         * check/Makefile.am:
8332         * check/gst/capslist.h:
8333           copy over from 0.8, and add two with bitmasks specified with
8334           (int) 0xFF...
8335         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
8336           add test to parse everything from capslist.h
8337         * check/gst/gststructure.c: (START_TEST), (gst_value_suite),
8338         (main):
8339           add test for structure deserialization
8340         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
8341           add tests for deserialization of strings to int types
8342         * gst/gststructure.c: (gst_structure_nth_field_name):
8343         * gst/gststructure.h:
8344           add a way to get the name of a field referenced by index
8345         * gst/gstvalue.c: (gst_value_deserialize_int_helper):
8346           instead of checking if the resulting long long lies between
8347           min and max, we check if the long long would fit into
8348           a number of bytes for the final type.
8349           This fixes cases where a string represents 2^32 - 1, which
8350           when cast to int would be the (valid) -1, but is bigger than
8351           G_MAXINT
8352
8353 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
8354
8355         * gst/parse/grammar.y:
8356           add a log line for type deserialization
8357
8358 2005-06-22  Thomas Vander Stichele  <thomas at apestaart dot org>
8359
8360         * check/gst/gstvalue.c: (START_TEST):
8361         * gst/gstvalue.c: (gst_value_deserialize):
8362           return long long, not int, so gint64 deserialization actually
8363           works.  Is there any flag that makes the compiler check this ?
8364           Fixes #308559
8365
8366 2005-06-22  Wim Taymans  <wim@fluendo.com>
8367
8368         * gst/gstbuffer.h:
8369         Added convenience macros for setting buffers in GValue.
8370
8371 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
8372
8373         * check/gst/.cvsignore:
8374         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
8375           add a test deserializing int64, and comment part out because
8376           it fails, yay !
8377
8378 2005-06-21  Thomas Vander Stichele  <thomas at apestaart dot org>
8379
8380         * check/Makefile.am:
8381         * check/gst/gstvalue.c: (START_TEST), (gst_value_suite), (main):
8382         * testsuite/Makefile.am:
8383         * testsuite/caps/Makefile.am:
8384         * testsuite/caps/value_serialize.c:
8385         * testsuite/test_gst_init.c:
8386           move a value_serialize test over
8387
8388 2005-06-20  Wim Taymans  <wim@fluendo.com>
8389
8390         * gst/gstpad.c:
8391         Small doc updates.
8392         
8393         * gst/gstvalue.c: (gst_value_compare_buffer),
8394         (gst_value_serialize_buffer), (gst_value_deserialize_buffer),
8395         (gst_value_compare_flags), (gst_value_serialize_flags),
8396         (gst_value_deserialize_flags), (_gst_value_initialize):
8397         Fix serialisation of buffers, they are not boxed types anymore
8398
8399 2005-06-20  Wim Taymans  <wim@fluendo.com>
8400
8401         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
8402         Testcase to show error in buffer-on-caps serialisation.
8403
8404 2005-06-20  Andy Wingo  <wingo@pobox.com>
8405
8406         * docs/random/wingo/porting-plugins-to-0.9: A pitiful document I
8407         will be adding to later.
8408
8409         * gst/gstsystemclock.c (gst_system_clock_init): Unlock the clock
8410         if its socks fill with rocks.
8411         (gst_system_clock_obtain): Set the name on object construction.
8412         Avoid double-checked locking.
8413
8414 2005-06-20  Tim-Philipp Müller  <tim at centricular dot net>
8415
8416         * gst/gsturi.c: (gst_element_make_from_uri):
8417           Fix potential endless loop.
8418
8419 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
8420
8421         * check/Makefile.am:
8422           add gsttag
8423         * check/gst/gsttag.c: (check_tags), (START_TEST), (gst_tag_suite),
8424         (main):
8425           move over from testsuite dir and clean up
8426         * configure.ac:
8427         * gst/gsttag.c:
8428         * testsuite/Makefile.am:
8429         * testsuite/tags/.cvsignore:
8430         * testsuite/tags/Makefile.am:
8431         * testsuite/tags/merge.c:
8432           remove testsuite/tags
8433
8434 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
8435
8436         * docs/gst/gstreamer-sections.txt:
8437         * docs/gst/tmpl/gstenumtypes.sgml:
8438         * win32/gstenumtypes.c:
8439           clean up documentation build a little
8440
8441 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
8442
8443         * check/gstcheck.h:
8444           add macros for checking refcounts on objects and caps
8445         * check/gst/gstpad.c: (START_TEST), (gst_pad_suite):
8446           add some more unit tests
8447         * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked),
8448         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_allowed_caps):
8449           fix leaked refcounts (I hope :)) so unittest works
8450         * gst/gstpad.h:
8451           whitespace removal
8452
8453 2005-06-19  Thomas Vander Stichele  <thomas at apestaart dot org>
8454
8455         * configure.ac: back to HEAD
8456
8457 === release 0.9.1 ===
8458
8459 2005-06-17  Thomas Vander Stichele  <thomas at apestaart dot org>
8460
8461         * NEWS:
8462         * RELEASE:
8463           updated
8464
8465 2005-06-17  Andy Wingo  <wingo@pobox.com>
8466
8467         * gst/base/gstbasesink.c (gst_basesink_chain): Remove bogus
8468         assert; it's always possible that the pad gets deactivated in
8469         between the checks in gstpad.c and the implementation. Rely on
8470         finish_preroll() to return a FLUSHING or similar instead of on the
8471         assert.
8472         
8473         * gst/base/gstbasesink.c (gst_basesink_event): Only wait for the
8474         clock and post an EOS message if we come out of finish_preroll in
8475         the playing state.
8476
8477 2005-06-16  David Schleef  <ds@schleef.org>
8478
8479         * gst/elements/gstcapsfilter.c: (gst_capsfilter_class_init),
8480         (gst_capsfilter_set_property): Allow NULL as possible value
8481         for filter_caps property, indicating GST_CAPS_ANY.
8482
8483 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
8484
8485         * gst/elements/gstfakesrc.c: (gst_fakesrc_create):
8486           fix debug output
8487         * gst/schedulers/Makefile.am:
8488           use libgst prefix
8489         * gstreamer.spec.in:
8490           fix spec for it
8491
8492 2005-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>
8493
8494         * gstreamer.spec.in:
8495           clean up
8496
8497 2005-06-08  Andy Wingo  <wingo@pobox.com>
8498
8499         * gst/gstutils.c: RPAD fixes all around.
8500         (gst_element_link_pads): Refcounting fixes.
8501
8502         * tools/gst-inspect.c:
8503         * tools/gst-xmlinspect.c:
8504         * parse/grammar.y:
8505         * gst/base/gsttypefindhelper.c:
8506         * gst/base/gstbasesink.c:
8507         * gst/gstqueue.c: RPAD fixes.
8508
8509         * gst/gstghostpad.h:
8510         * gst/gstghostpad.c: New ghost pad implementation as full proxy
8511         pads. The tricky thing is they provide both source and sink
8512         interfaces, since they proxy the internal pad for the external
8513         pad, and vice versa. Implement with lower-level ProxyPad objects,
8514         with the interior proxy pad as a child of the exterior ghost pad.
8515         Should write a doc on this.
8516         
8517         * gst/gstpad.h: s/RPAD/PAD/, s/RealPad/Pad/.
8518         (gst_pad_set_name, gst_pad_set_parent): Macros removed, use
8519         gst_object API.
8520         
8521         * gst/gstpad.c: Big changes. No more stub base GstPad, now all
8522         pads are real pads. No ghost pads in this file. Not documenting
8523         the myriad s/RPAD/PAD/ and REALIZE fixes.
8524         (gst_pad_class_init): Add properties for "direction" and
8525         "template". Both are construct-only, so they can't change during
8526         the life of the pad. Fixes properly deriving from GstPad.
8527         (gst_pad_custom_new, gst_pad_custom_new_from_template): Gone. For
8528         derived objects, just set properties when creating the objects via
8529         g_object_new.
8530         (gst_pad_get_parent): Implement as a function, return NULL if the
8531         parent is not an element.
8532         (gst_pad_get_real_parent, gst_pad_add_ghost_pad)
8533         (gst_pad_remove_ghost_pad, gst_pad_realize): Removed.
8534         
8535         * gst/gstobject.c (gst_object_class_init): Make name a construct
8536         property. Don't set it in the object init.
8537
8538         * gst/gstelement.c (gst_element_add_pad): Don't allow adding pads
8539         with UNKNOWN direction.
8540         (gst_element_add_ghost_pad): Remove non-orthogonal API. Replace
8541         with gst_element_add_pad (e, gst_ghost_pad_new (name, pad)).
8542         (gst_element_remove_pad): Remove ghost-pad special cases.
8543         (gst_element_pads_activate): Remove rpad cruft.
8544
8545         * gst/gstbin.c (gst_bin_change_state): Use gst_pad_get_parent to
8546         catch the pad's-parent-not-an-element case.
8547
8548         * gst/gst.h: Include gstghostpad.h.
8549
8550         * gst/gst.c (init_post): No more real, ghost pads.
8551
8552         * gst/Makefile.am: Add gstghostpad.[ch].
8553
8554         * check/Makefile.am:
8555         * check/gst/gstbin.c:
8556         * check/gst/gstghostpad.c (test_ghost_pads): Check that linking
8557         into a bin creates ghost pads, and that the refcounts are right.
8558         Partly moved from gstbin.c.
8559
8560 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8561
8562         * check/gst-libs/.cvsignore:
8563         * check/gst/.cvsignore:
8564         * check/pipelines/.cvsignore:
8565           ignore more
8566         * check/pipelines/cleanup.c: (setup_pipeline), (run_pipeline),
8567         (START_TEST), (cleanup_suite), (main):
8568           add some tests related to cleanup after running pipelines
8569
8570 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8571
8572         * check/gst/gstbuffer.c: (START_TEST), (gst_test_suite), (main):
8573           add a testsuite for GstBuffer
8574
8575 2005-06-08  Thomas Vander Stichele  <thomas at apestaart dot org>
8576
8577         * gst/gstminiobject.h:
8578           add defines for accessing the refcount
8579
8580 2005-06-03  Stefan Kost  <ensonic@users.sf.net>
8581
8582         * Makefile.am: added support for html unit test coverage reports
8583
8584 2005-06-03  Jan Schmidt  <thaytan@mad.scientist.com>
8585
8586         * gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):
8587           Free existing caps if the capsfilter changes. Add a FIXME about
8588           setting those caps on the pads.
8589
8590         * gst/gstutils.c: (gst_element_get_compatible_pad), (ghost_up):
8591           Before adding a ghost pad to a parent bin, check that there isn't
8592           already one for the element on the bin. Prevents infinite recursion
8593           when using decodebin in parse pipelines. Andy says he'll rewrite the
8594           way this works anyway, so ignore the hack.
8595
8596 2005-06-02  Andy Wingo  <wingo@pobox.com>
8597
8598         * gst/elements/gsttypefindelement.c (do_pull_typefind): Query the
8599         file size, pass it on to the type find helper.
8600
8601         * gst/base/gstbasesrc.c (gst_basesrc_do_seek): Set the
8602         segment_start and segment_end properly according to the seek
8603         method. Segment_end is still a bit flaky because offset can be
8604         negative for CUR and END cases, but it takes -1 as an "unset"
8605         value.
8606
8607 2005-06-02  Wim Taymans  <wim@fluendo.com>
8608
8609         * gst/base/gstbasesink.c: (gst_basesink_pad_buffer_alloc),
8610         (gst_base_sink_buffer_alloc), (gst_basesink_preroll_queue_push),
8611         (gst_basesink_activate):
8612         * gst/base/gstbasesink.h:
8613         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
8614         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
8615         (gst_pad_query), (gst_pad_start_task):
8616         * gst/gstpad.h:
8617         * gst/gstqueue.c: (gst_queue_bufferalloc),
8618         (gst_queue_handle_sink_event), (gst_queue_chain):
8619         Bufferalloc: return GstFlowReturn to more accuratly report
8620         why allocation failed.
8621
8622 2005-06-02  Wim Taymans  <wim@fluendo.com>
8623
8624         * gst/gstpipeline.c: (gst_pipeline_send_event):
8625         Take snapshot of state without blocking.
8626
8627 2005-06-02  Wim Taymans  <wim@fluendo.com>
8628
8629         * docs/design/part-TODO.txt:
8630         * docs/design/part-caps.txt:
8631         * docs/design/part-clocks.txt:
8632         * docs/design/part-negotiation.txt:
8633         * docs/design/part-preroll.txt:
8634         Small doc updates 
8635
8636 2005-05-30  Wim Taymans  <wim@fluendo.com>
8637
8638         * gst/elements/gstidentity.c: (gst_identity_event),
8639         (gst_identity_transform), (gst_identity_get_property):
8640         Protect last_message property as it is accessed from
8641         multiple threads.
8642
8643 2005-05-30  Wim Taymans  <wim@fluendo.com>
8644
8645         * gst/gstelement.c: (gst_element_init),
8646         (gst_element_pads_activate), (gst_element_change_state):
8647         Slicker pad activation code.
8648
8649 2005-05-30  Wim Taymans  <wim@fluendo.com>
8650
8651         * gst/Makefile.am:
8652         * gst/gstelement.h:
8653         * gst/gstelementfactory.h:
8654         * gst/gsttypes.h:
8655         Move elementfactory methods to separate .h file.
8656
8657 2005-05-30  Wim Taymans  <wim@fluendo.com>
8658
8659         * docs/design/part-overview.txt:
8660         * gst/gstsystemclock.h:
8661         Small typo fixes, doc updates.
8662
8663 2005-05-30  Wim Taymans  <wim@fluendo.com>
8664
8665         * gst/gst.c: (gst_init_get_popt_table), (init_post),
8666         (init_popt_callback):
8667         Remove cpu-opt flag.
8668
8669 2005-05-30  Wim Taymans  <wim@fluendo.com>
8670
8671         * gst/gstbuffer.c: (gst_subbuffer_finalize),
8672         (gst_buffer_create_sub), (gst_buffer_is_span_fast):
8673         * gst/gstbuffer.h:
8674         Avoid typechecking in places where not needed.
8675         Added accessor for malloc_data.
8676
8677 2005-05-30  Wim Taymans  <wim@fluendo.com>
8678
8679         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_set_active),
8680         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_accept_caps),
8681         (gst_pad_configure_sink), (gst_pad_configure_src),
8682         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_send_event),
8683         (gst_pad_start_task):
8684         Propagate errors from _set_caps() in configure_src/sink
8685         functions instead of returning TRUE.
8686         FLUSH events can travel up and downstream
8687
8688
8689 2005-05-30  Wim Taymans  <wim@fluendo.com>
8690
8691         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
8692         (gst_basesink_activate):
8693         Handle EOS in preroll.
8694
8695 2005-05-30  Wim Taymans  <wim@fluendo.com>
8696
8697         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
8698         (gst_queue_loop), (gst_queue_handle_src_event):
8699         Remove old pieces of code
8700         Flushing the queue in an upstream event is a very bad idea.
8701
8702 2005-05-26  Andy Wingo  <wingo@pobox.com>
8703
8704         * gst/gstminiobject.c (gst_value_mini_object_collect): Use
8705         gst_value_set_mini_object so as to add a ref on the object (which
8706         will be removed when the value is unset).
8707
8708         * gst/elements/gstfakesink.c (gst_fakesink_class_init): Fix signal
8709         arg type in ::handoff.
8710
8711         * gst/gstelement.c (gst_element_change_state): Also deactivate
8712         pads in READY->NULL, just in case the element didn't make it to
8713         PAUSED. Wingo tested, Wim approved.
8714
8715 2005-05-26  Wim Taymans  <wim@fluendo.com>
8716
8717         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
8718         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_alloc_buffer),
8719         (gst_pad_query), (gst_pad_send_event), (gst_pad_start_task):
8720         A flushing pad cannot be used to alloc_buffer from.
8721
8722 2005-05-26  Wim Taymans  <wim@fluendo.com>
8723
8724         * gst/gstbus.c: (gst_bus_init), (gst_bus_dispose), (gst_bus_post),
8725         (gst_bus_pop), (gst_bus_source_prepare), (gst_bus_source_check),
8726         (gst_bus_source_dispatch), (gst_bus_source_finalize),
8727         (gst_bus_create_watch), (gst_bus_add_watch_full):
8728         * gst/gstbus.h:
8729         Implement a real GSource and use g_main_context_wakeup() to
8730         signal new messages instead of the socketpair.
8731
8732 2005-05-25  Wim Taymans  <wim@fluendo.com>
8733
8734         * gst/gstbin.c: (bin_element_is_sink), (has_ancestor),
8735         (bin_element_is_semi_sink), (append_child), (gst_bin_change_state):
8736         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
8737         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
8738         (gst_pad_send_event), (gst_pad_start_task):
8739         * gst/gstqueue.c: (gst_queue_init), (gst_queue_locked_flush),
8740         (gst_queue_handle_sink_event), (gst_queue_chain), (gst_queue_loop),
8741         (gst_queue_sink_activate), (gst_queue_src_activate),
8742         (gst_queue_change_state):
8743         * gst/gstqueue.h:
8744         Fix state changes for non sinks. We now change sinks, then elements
8745         with unconnected srcpads, then the rest.
8746         More efficient queue unlocking in flush and state changes.
8747         Set the pad activate mode even if it does not have an activate
8748         function.
8749
8750 2005-05-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8751
8752         * gst/base/gstbasesrc.c: (gst_basesrc_activate):
8753           Don't go in pull mode for non-seekable sources.
8754         * gst/elements/gsttypefindelement.h:
8755         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
8756         (gst_type_find_element_dispose), (gst_type_find_handle_src_query),
8757         (free_entry), (stop_typefinding),
8758         (gst_type_find_element_handle_event), (find_peek),
8759         (gst_type_find_element_chain), (do_pull_typefind),
8760         (gst_type_find_element_change_state):
8761           Allow typefinding (w/o seeking) in push-mode, simplified version
8762           of what was in 0.8.
8763         * gst/gstutils.c: (gst_buffer_join):
8764         * gst/gstutils.h:
8765           gst_buffer_join() from 0.8.
8766
8767 2005-05-25  Wim Taymans  <wim@fluendo.com>
8768
8769         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
8770         (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
8771         (gst_pad_send_event), (gst_pad_start_task):
8772         Disable attempt at mode switching until it is figured out.
8773
8774 2005-05-25  Wim Taymans  <wim@fluendo.com>
8775
8776         * gst/base/gstadapter.c: (gst_adapter_peek), (gst_adapter_flush):
8777         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
8778         (gst_basesink_finish_preroll), (gst_basesink_chain),
8779         (gst_basesink_loop), (gst_basesink_activate),
8780         (gst_basesink_change_state):
8781         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek),
8782         (gst_basesrc_get_range), (gst_basesrc_loop),
8783         (gst_basesrc_activate):
8784         * gst/elements/gsttee.c: (gst_tee_sink_activate):
8785         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
8786         (gst_real_pad_init), (gst_real_pad_set_property),
8787         (gst_real_pad_get_property), (gst_pad_set_active),
8788         (gst_pad_is_active), (gst_pad_get_query_types), (gst_pad_unlink),
8789         (gst_pad_link_prepare), (gst_pad_link), (gst_pad_get_real_parent),
8790         (gst_real_pad_get_caps_unlocked), (gst_pad_peer_get_caps),
8791         (gst_pad_accept_caps), (gst_pad_get_peer), (gst_pad_realize),
8792         (gst_pad_event_default_dispatch), (gst_pad_event_default),
8793         (gst_pad_dispatcher), (gst_pad_query), (gst_real_pad_dispose),
8794         (gst_pad_save_thyself), (handle_pad_block), (gst_pad_chain),
8795         (gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
8796         (gst_pad_send_event), (gst_pad_start_task), (gst_pad_pause_task),
8797         (gst_pad_stop_task):
8798         * gst/gstpad.h:
8799         * gst/gstqueue.c: (gst_queue_handle_sink_event), (gst_queue_chain),
8800         (gst_queue_loop), (gst_queue_src_activate):
8801         * gst/gsttask.c: (gst_task_init), (gst_task_set_lock),
8802         (gst_task_get_state):
8803         * gst/gsttask.h:
8804         * gst/schedulers/threadscheduler.c:
8805         (gst_thread_scheduler_task_start), (gst_thread_scheduler_func):
8806         Implement gst_pad_pause/start/stop_task(), take STREAM lock
8807         in task function.
8808         Remove ACTIVE pad flag, use FLUSHING everywhere
8809         Added _pad_chain(), _pad_get_range() to call chain/getrange 
8810         functions.
8811         Add locks around IS_FLUSHING when reading.
8812         Take STREAM lock in chain(), get_range() functions so plugins
8813         don't need to take it anymore.
8814         
8815
8816
8817 2005-05-25  Wim Taymans  <wim@fluendo.com>
8818
8819         * tools/gst-launch.c: (event_loop):
8820         Unref message after using its contents instead of
8821         before.
8822
8823 2005-05-24  Wim Taymans  <wim@fluendo.com>
8824
8825         * docs/design/draft-ghostpads.txt:
8826         * docs/design/draft-push-pull.txt:
8827         * docs/design/draft-query.txt:
8828         * docs/design/part-overview.txt:
8829         Docs updates, added general overview doc.
8830
8831 2005-05-21  David Schleef  <ds@schleef.org>
8832
8833         * docs/gst/tmpl/old/GstBin.sgml:
8834         * docs/gst/tmpl/old/GstBuffer.sgml:
8835         * docs/gst/tmpl/old/GstCaps.sgml:
8836         * docs/gst/tmpl/old/GstClock.sgml:
8837         * docs/gst/tmpl/old/GstCompat.sgml:
8838         * docs/gst/tmpl/old/GstData.sgml:
8839         * docs/gst/tmpl/old/GstElement.sgml:
8840         * docs/gst/tmpl/old/GstEvent.sgml:
8841         * docs/gst/tmpl/old/GstIndex.sgml:
8842         * docs/gst/tmpl/old/GstStructure.sgml:
8843         * docs/gst/tmpl/old/GstTag.sgml:
8844         * docs/gst/tmpl/old/cothreads.sgml:
8845         * docs/gst/tmpl/old/cothreads_compat.sgml:
8846         * docs/gst/tmpl/old/gettext.sgml:
8847         * docs/gst/tmpl/old/gobject2gtk.sgml:
8848         * docs/gst/tmpl/old/grammar.tab.sgml:
8849         * docs/gst/tmpl/old/gst-i18n-app.sgml:
8850         * docs/gst/tmpl/old/gst-i18n-lib.sgml:
8851         * docs/gst/tmpl/old/gst_private.sgml:
8852         * docs/gst/tmpl/old/gstaggregator.sgml:
8853         * docs/gst/tmpl/old/gstarch.sgml:
8854         * docs/gst/tmpl/old/gstatomic_impl.sgml:
8855         * docs/gst/tmpl/old/gstbufferstore.sgml:
8856         * docs/gst/tmpl/old/gstdata_private.sgml:
8857         * docs/gst/tmpl/old/gstdisksink.sgml:
8858         * docs/gst/tmpl/old/gstdisksrc.sgml:
8859         * docs/gst/tmpl/old/gstelementfactory.sgml:
8860         * docs/gst/tmpl/old/gstextratypes.sgml:
8861         * docs/gst/tmpl/old/gstfakesink.sgml:
8862         * docs/gst/tmpl/old/gstfakesrc.sgml:
8863         * docs/gst/tmpl/old/gstfdsink.sgml:
8864         * docs/gst/tmpl/old/gstfdsrc.sgml:
8865         * docs/gst/tmpl/old/gstfilesink.sgml:
8866         * docs/gst/tmpl/old/gstfilesrc.sgml:
8867         * docs/gst/tmpl/old/gsthttpsrc.sgml:
8868         * docs/gst/tmpl/old/gstidentity.sgml:
8869         * docs/gst/tmpl/old/gstindexfactory.sgml:
8870         * docs/gst/tmpl/old/gstmarshal.sgml:
8871         * docs/gst/tmpl/old/gstmd5sink.sgml:
8872         * docs/gst/tmpl/old/gstmultidisksrc.sgml:
8873         * docs/gst/tmpl/old/gstmultifilesrc.sgml:
8874         * docs/gst/tmpl/old/gstpadtemplate.sgml:
8875         * docs/gst/tmpl/old/gstpipefilter.sgml:
8876         * docs/gst/tmpl/old/gstschedulerfactory.sgml:
8877         * docs/gst/tmpl/old/gstsearchfuncs.sgml:
8878         * docs/gst/tmpl/old/gstshaper.sgml:
8879         * docs/gst/tmpl/old/gstspider.sgml:
8880         * docs/gst/tmpl/old/gstspideridentity.sgml:
8881         * docs/gst/tmpl/old/gststatistics.sgml:
8882         * docs/gst/tmpl/old/gsttee.sgml:
8883         * docs/gst/tmpl/old/gsttimecache.sgml:
8884         * docs/gst/tmpl/old/gsttypefindfactory.sgml:
8885         * docs/gst/tmpl/old/gstxmlregistry.sgml:
8886         * docs/gst/tmpl/old/gthread-cothreads.sgml:
8887         * docs/gst/tmpl/old/types.sgml:
8888           I didn't intend to add these or check them in.
8889
8890 2005-05-19  David Schleef  <ds@schleef.org>
8891
8892         * configure.ac: Use -no-common everywhere.  In a sane world, it
8893           would be the default in libtool, because without it, you can't
8894           build DLLs on Windows.
8895         * docs/gst/gstreamer-docs.sgml: Remove GstCpu, GstData, GstThread
8896         * docs/gst/gstreamer-sections.txt:
8897         * docs/gst/tmpl/gstcpu.sgml:
8898         * docs/gst/tmpl/gstdata.sgml:
8899         * docs/gst/tmpl/gstthread.sgml:
8900
8901 2005-05-19  David Schleef  <ds@schleef.org>
8902
8903         * gst/gstminiobject.c: (gst_value_set_mini_object),
8904         (gst_value_take_mini_object), (gst_value_get_mini_object):
8905         * gst/gstminiobject.h: Add GValue set/get functions.
8906
8907 2005-05-19  Wim Taymans  <wim@fluendo.com>
8908
8909         * gst/gstbuffer.c: (gst_buffer_init), (gst_subbuffer_get_type),
8910         (gst_subbuffer_class_init), (gst_subbuffer_finalize),
8911         (gst_subbuffer_init), (gst_buffer_is_span_fast):
8912         * gst/gstbuffer.h:
8913         * gst/gstbus.c: (gst_bus_post):
8914         * gst/gstelement.c: (gst_element_get_random_pad):
8915         * gst/gstmessage.c: (gst_message_init), (gst_message_finalize):
8916         Make subbufer unref the parent in finalize.
8917         some more debugging info.
8918
8919
8920 2005-05-19  Wim Taymans  <wim@fluendo.com>
8921
8922         * gst/base/gstbasesink.c: (gst_basesink_class_init),
8923         (gst_basesink_init), (gst_basesink_finalize),
8924         (gst_basesink_activate), (gst_basesink_change_state):
8925         Don't free preroll queue too early.
8926
8927 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8928
8929         * gst/Makefile.am:
8930         * gst/ROADMAP:
8931           Hi, I'm outdated. Please shoot me.
8932
8933 2005-05-19  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8934
8935         * gst/gstpipeline.c: (gst_pipeline_send_event):
8936           Do not access variables after they have been deleted.
8937
8938 2005-05-19  Wim Taymans  <wim@fluendo.com>
8939
8940         * tools/gst-inspect.c: (print_plugin_features):
8941         A plugin feature does unfortunatly not use the
8942         object name yet...
8943
8944 2005-05-18  Wim Taymans  <wim@fluendo.com>
8945
8946         * gst/gstbuffer.c: (gst_buffer_is_span_fast), (gst_buffer_span):
8947         Port _span() functions to new subbuffers.
8948
8949 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8950
8951         * gst/gstbin.c: (gst_bin_add_func):
8952           Fix clock settery in bins when adding kids after the clock has
8953           been selected.
8954
8955 2005-05-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
8956
8957         * gst/elements/gstidentity.c: (gst_identity_class_init):
8958           Workaround until signals support GstMiniObject.
8959
8960 2005-05-18  Jan Schmidt  <thaytan@mad.scientist.com>
8961
8962         * gst/gstbuffer.c:
8963         Oops, fix a typo GST_TYPE_BUFFER -> GST_TYPE_SUBBUFFER.
8964
8965 2005-05-18  Wim Taymans  <wim@fluendo.com>
8966
8967         * gst/base/Makefile.am:
8968         * gst/base/gstadapter.c: (gst_adapter_base_init),
8969         (gst_adapter_class_init), (gst_adapter_init),
8970         (gst_adapter_dispose), (gst_adapter_finalize), (gst_adapter_new),
8971         (gst_adapter_clear), (gst_adapter_push), (gst_adapter_peek),
8972         (gst_adapter_flush), (gst_adapter_available),
8973         (gst_adapter_available_fast):
8974         * gst/base/gstadapter.h:
8975         Ported and added adapter to the base classes.
8976
8977 2005-05-17  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
8978
8979         * gst/gst.c:
8980         * gst/gstmessage.c:
8981           Make sure the class is reffed/unreffed once before threads can be
8982           used.  Fixes #304551.
8983
8984 2005-05-17  Wim Taymans  <wim@fluendo.com>
8985
8986         * gst/base/gstbasesink.c: (gst_basesink_finish_preroll),
8987         (gst_basesink_chain_unlocked), (gst_basesink_activate):
8988         * gst/gstminiobject.c: (gst_mini_object_get_type),
8989         (gst_mini_object_free):
8990         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query),
8991         (gst_pad_push), (gst_pad_push_event):
8992         * gst/gstqueue.c: (gst_queue_change_state):
8993         Don't queue buffers in basesink when we are flushing.
8994         Unref buffer when flushing in basesink.
8995         Flush queue when going to READY
8996         Unref buffer when _push() returns an error.
8997         Don't free MiniObject instance when refcount is incremented
8998         in _finalize() so that we can recover objects.
8999
9000 2005-05-17  Thomas Vander Stichele  <thomas at apestaart dot org>
9001
9002         * docs/manual/advanced-schedulers.xml:
9003         * docs/manual/appendix-checklist.xml:
9004         * docs/pwg/advanced-clock.xml:
9005         * docs/pwg/advanced-interfaces.xml:
9006         * docs/pwg/advanced-request.xml:
9007         * docs/pwg/advanced-types.xml:
9008         * docs/pwg/intro-preface.xml:
9009         * examples/plugins/example.c: (gst_example_get_type),
9010         (gst_example_class_init), (gst_example_chain),
9011         (gst_example_set_property), (gst_example_get_property),
9012         (gst_example_change_state), (plugin_init):
9013         * examples/plugins/example.h:
9014           small doc fixes
9015
9016 2005-05-17  Wim Taymans  <wim@fluendo.com>
9017
9018         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_set_caps),
9019         (gst_pad_alloc_buffer), (gst_pad_query), (gst_pad_push):
9020         * gst/gstqueue.c: (gst_queue_change_state):
9021         Clear queue when going to READY.
9022         Remove IN_SETCAPS flag too.
9023
9024 2005-05-17  Tim-Philipp Müller  <tim at centricular dot net>
9025
9026         * gst/base/gstbasesrc.c: (gst_basesrc_change_state):
9027           Remove implicit cast from gboolean to GstElementStateReturn;
9028           make sure we still return failure in paused => ready case if
9029           the parent class fails to change state and our own stop 
9030           vfunc succeeds.
9031
9032 2005-05-17  Wim Taymans  <wim@fluendo.com>
9033
9034         * tools/gst-launch.c: (event_loop):
9035         Message was unreffed too soon.
9036
9037 2005-05-16  Andy Wingo  <wingo@pobox.com>
9038
9039         * gst/gstbin.c (sink_iterator_filter): Err... um...
9040
9041         * check/gst/gstbin.c (test_ghost_pads): New test for the
9042         ghosting-if-elements-not-in-same-bin behavior.
9043
9044 2005-05-16  David Schleef  <ds@schleef.org>
9045
9046         * gst/gstminiobject.c: Use g_atomic_int_get() instead of
9047         accessing refcount directly.
9048
9049 2005-05-15  David Schleef  <ds@schleef.org>
9050
9051         * check/Makefile.am: remove GstData checks
9052         * check/gst-libs/gdp.c: (START_TEST): fix for API changes
9053         * gst/Makefile.am: add miniobject, remove data
9054         * gst/gst.h: add miniobject, remove data
9055         * gst/gstdata.c: remove
9056         * gst/gstdata.h: remove
9057         * gst/gstdata_private.h: remove
9058         * gst/gsttypes.h: remove GstEvent and GstMessage
9059         * gst/gstelement.c: (gst_element_post_message): fix for API changes
9060         * gst/gstmarshal.list: change BOXED -> OBJECT
9061
9062         Implement GstMiniObject.
9063         * gst/gstminiobject.c:
9064         * gst/gstminiobject.h:
9065
9066         Modify to be subclasses of GstMiniObject.
9067         * gst/gstbuffer.c: (_gst_buffer_initialize), (gst_buffer_get_type),
9068         (gst_buffer_class_init), (gst_buffer_finalize), (_gst_buffer_copy),
9069         (gst_buffer_init), (gst_buffer_new), (gst_buffer_new_and_alloc),
9070         (gst_subbuffer_get_type), (gst_subbuffer_init),
9071         (gst_buffer_create_sub), (gst_buffer_is_span_fast),
9072         (gst_buffer_span):
9073         * gst/gstbuffer.h:
9074         * gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type),
9075         (gst_event_class_init), (gst_event_init), (gst_event_finalize),
9076         (_gst_event_copy), (gst_event_new):
9077         * gst/gstevent.h:
9078         * gst/gstmessage.c: (_gst_message_initialize),
9079         (gst_message_get_type), (gst_message_class_init),
9080         (gst_message_init), (gst_message_finalize), (_gst_message_copy),
9081         (gst_message_new), (gst_message_new_error),
9082         (gst_message_new_warning), (gst_message_new_tag),
9083         (gst_message_new_state_changed), (gst_message_new_application):
9084         * gst/gstmessage.h:
9085         * gst/gstprobe.c: (gst_probe_perform),
9086         (gst_probe_dispatcher_dispatch):
9087         * gst/gstprobe.h:
9088         * gst/gstquery.c: (_gst_query_initialize), (gst_query_get_type),
9089         (gst_query_class_init), (gst_query_finalize), (gst_query_init),
9090         (_gst_query_copy), (gst_query_new):
9091
9092         Update elements for GstData -> GstMiniObject changes
9093         * gst/gstquery.h:
9094         * gst/gstqueue.c: (gst_queue_finalize), (gst_queue_locked_flush),
9095         (gst_queue_chain), (gst_queue_loop):
9096         * gst/elements/gstbufferstore.c:
9097         (gst_buffer_store_add_buffer_func),
9098         (gst_buffer_store_cleared_func), (gst_buffer_store_get_buffer):
9099         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
9100         (gst_fakesink_render):
9101         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
9102         * gst/elements/gstfilesrc.c: (gst_mmap_buffer_get_type),
9103         (gst_mmap_buffer_class_init), (gst_mmap_buffer_init),
9104         (gst_mmap_buffer_finalize), (gst_filesrc_map_region),
9105         (gst_filesrc_create_read):
9106         * gst/elements/gstidentity.c: (gst_identity_class_init):
9107         * gst/elements/gsttypefindelement.c:
9108         (gst_type_find_element_src_event), (free_entry_buffers),
9109         (gst_type_find_element_handle_event):
9110         * libs/gst/dataprotocol/dataprotocol.c:
9111         (gst_dp_header_from_buffer):
9112         * libs/gst/dataprotocol/dataprotocol.h:
9113         * libs/gst/dataprotocol/dp-private.h:
9114
9115 2005-05-15  David Schleef  <ds@schleef.org>
9116
9117         * gst/elements/gstelements.c: Don't include headers that were
9118         just removed.
9119
9120 2005-05-15  David Schleef  <ds@schleef.org>
9121
9122         * gst/elements/Makefile.am: Remove some elements that don't
9123         need to be in the core (or even exist at all).
9124         * gst/elements/gstaggregator.c:
9125         * gst/elements/gstaggregator.h:
9126         * gst/elements/gstmd5sink.c:
9127         * gst/elements/gstmd5sink.h:
9128         * gst/elements/gstmultifilesrc.c:
9129         * gst/elements/gstmultifilesrc.h:
9130         * gst/elements/gstpipefilter.c:
9131         * gst/elements/gstpipefilter.h:
9132         * gst/elements/gstshaper.c:
9133         * gst/elements/gstshaper.h:
9134         * gst/elements/gststatistics.c:
9135         * gst/elements/gststatistics.h:
9136         * po/POTFILES.in: Remove above files.
9137
9138 2005-05-14  Andy Wingo  <wingo@pobox.com>
9139
9140         * gst/gstbin.c (gst_bin_iterate_sinks): Use sink_iterator_filter
9141         so as to get the refs right.
9142         (sink_iterator_filter): New function, wraps bin_element_is_sink,
9143         unreffing objects that don't pass the filter.
9144
9145         * gst/gstpipeline.c (gst_pipeline_init): Drop ref on bus after
9146         gst_element_set_bus.
9147         (gst_pipeline_dispose): Set the bus on the pipeline to NULL. In
9148         normal cases, this will destroy the bus.
9149
9150         * gst/gstutils.c (prepare_link_maybe_ghosting): Drop ref on root
9151         object.
9152
9153         * gst/gstbin.c (gst_bin_change_state): Fix state changes if a bin
9154         has no sinks.
9155
9156 2005-05-13  Andy Wingo  <wingo@pobox.com>
9157
9158         * gst/gstutils.c (gst_element_link_pads): Instead of calling
9159         gst_pad_link, call pad_link_maybe_ghosting,
9160         (pad_link_maybe_ghosting): Links pads, making sure that the
9161         elements being linked are in the same bin.
9162         (find_common_root, object_has_ancestor, ghost_up, remove_pad):
9163         Helpers for pad_link_maybe_ghosting.
9164
9165 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
9166
9167         * configure.ac:
9168           Require GLib >= 2.4.0 (for the g_atomic_* funcs)
9169
9170 2005-05-13  Tim-Philipp Müller  <tim at centricular dot net>
9171
9172         * docs/design/part-element-source.txt:
9173           Mention GstPushSrc
9174
9175 2005-05-12  Wim Taymans  <wim@fluendo.com>
9176
9177         * gst/base/gstbasesink.c: (gst_basesink_init),
9178         (gst_basesink_activate):
9179         * gst/base/gstbasesrc.c: (gst_basesrc_unlock),
9180         (gst_basesrc_is_seekable):
9181         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
9182         (bin_element_is_sink), (gst_bin_change_state):
9183         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
9184         * gst/gstelement.h:
9185         Identify sinks by their flag to avoid overly complicated
9186         checks (fow now).
9187         Do state changes even for elements not reachable from the
9188         sinks.
9189         BaseSink is a sink now :)
9190         Some more debugging info in the basesrc.
9191
9192
9193 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9194
9195         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_query):
9196           Implement _query on a bin, similar to _send_event.
9197
9198 2005-05-12  Tim-Philipp Müller  <tim at centricular dot net>
9199
9200         * gst/base/gstbasesrc.c: (gst_basesrc_do_seek):
9201           Discont event offset format should be GST_FORMAT_BYTES,
9202           not GST_FORMAT_TIME.
9203
9204 2005-05-12  Wim Taymans  <wim@fluendo.com>
9205
9206         * gst/gstbin.c: (gst_bin_remove_func), (gst_bin_get_state):
9207         Same fix as Ronald's but without the signal. 
9208
9209 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9210
9211         * gst/gstutils.c: (gst_element_query_position):
9212           No, an element is not a pad.
9213
9214 2005-05-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9215
9216         * gst/gstbin.c: (gst_bin_add_func), (cb_parent_unset),
9217         (gst_bin_get_state):
9218           If a child is removed from a bin while we remove the child from
9219           the bin and while we're retrieving its state, signal this to the
9220           get_state function so we abort the wait (instead of waiting for
9221           a timeout) and can immediately re-iterate over all other elements.
9222
9223 2005-05-12  Wim Taymans  <wim@fluendo.com>
9224
9225         * gst/base/Makefile.am:
9226         * gst/base/gstbasesrc.c: (gst_basesrc_is_seekable),
9227         (gst_basesrc_start):
9228         * gst/base/gstbasesrc.h:
9229         * gst/base/gstpushsrc.c: (gst_pushsrc_get_type),
9230         (gst_pushsrc_base_init), (gst_pushsrc_class_init),
9231         (gst_pushsrc_init), (gst_pushsrc_create):
9232         * gst/base/gstpushsrc.h:
9233         Added is_seekable to BaseSrc
9234         Added simple PushSrc.
9235
9236 2005-05-11  Wim Taymans  <wim@fluendo.com>
9237
9238         * gst/gstelement.c: (gst_element_add_pad), (gst_element_query):
9239         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
9240         (gst_element_link_pads), (gst_element_query_position),
9241         (gst_element_query_convert), (intersect_caps_func),
9242         (gst_pad_query_position), (gst_pad_query_convert):
9243         Fix refcounting in utils function.
9244         No point in trying to activate a pad when it's added, it could
9245         be added from the state change function and then we deadlock, the
9246         element has to decide what to do.
9247
9248 2005-05-10  Andy Wingo  <wingo@pobox.com>
9249
9250         * gst/elements/gstfakesink.c (gst_fakesink_render): Er, emit with
9251         *all* the arguments.
9252
9253         * gst/base/gstbasetransform.c (gst_base_transform_event): Grab the
9254         stream lock if it's a FLUSH_DONE; normal flushes don't get the
9255         lock (according to the docs -- if this is wrong change the docs).
9256
9257         * gst/gstpipeline.c (gst_pipeline_change_state): Set the bus to
9258         flush messages in the NULL state.
9259
9260         * gst/gstbus.c (gst_bus_post): If a bus is flushing, unref the
9261         message immediately and return.
9262         (gst_bus_set_flushing): New function. If a bus is flushing, it
9263         flushes out any queued messages and immediately unrefs new
9264         messages. This is so when an element goes to NULL, all of the
9265         unhandled messages coming from it can be freed, and their
9266         references to the element dropped. In other words: message source
9267         ref considered harmful :P
9268
9269         * gst/gstbin.c (gst_bin_change_state): Unref peer element when
9270         we're finished with it.
9271
9272         * gst/gstmessage.c (gst_message_new_state_changed): 
9273
9274 2005-05-10  Wim Taymans  <wim@fluendo.com>
9275
9276         * gst/gstvalue.c: (gst_value_compare_flags),
9277         (gst_value_serialize_flags), (gst_value_deserialize_flags),
9278         (_gst_value_initialize):
9279         Added flags serialize/deserialize/compare code.
9280
9281 2005-05-09  Andy Wingo  <wingo@pobox.com>
9282
9283         * gst/base/gstbasetransform.c (gst_base_transform_proxy_getcaps):
9284         Intersect the peer's caps with our caps.
9285
9286 2005-05-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9287
9288         * gst/base/gsttypefindhelper.c: (helper_find_peek):
9289         * gst/elements/gsttypefindelement.c: (find_peek):
9290           Handle negative offsets better. Fixes decodebin.
9291
9292 2005-05-09  Wim Taymans  <wim@fluendo.com>
9293
9294         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps),
9295         (gst_base_transform_event):
9296         * gst/gstpad.c: (gst_pad_accept_caps), (gst_pad_query):
9297         Implement accept_caps.
9298         Fix silly lock/unlock mismatch in base class.
9299
9300 2005-05-09  Wim Taymans  <wim@fluendo.com>
9301
9302         * docs/design/draft-push-pull.txt:
9303         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_query):
9304         * gst/elements/gstfilesink.c: (gst_filesink_init),
9305         (gst_filesink_query):
9306         * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
9307         (gst_type_find_handle_src_query), (find_element_get_length):
9308         * gst/gstelement.c: (gst_element_seek), (gst_element_query):
9309         * gst/gstelement.h:
9310         * gst/gstmessage.c:
9311         * gst/gstmessage.h:
9312         * gst/gstpad.c: (gst_real_pad_init), (gst_pad_get_query_types),
9313         (gst_real_pad_get_caps_unlocked),
9314         (gst_pad_get_internal_links_default), (gst_pad_get_internal_links),
9315         (gst_pad_event_default_dispatch), (gst_pad_event_default),
9316         (gst_pad_dispatcher), (gst_pad_query), (gst_pad_query_default),
9317         (gst_real_pad_dispose), (gst_real_pad_finalize),
9318         (gst_pad_load_and_link), (gst_pad_save_thyself),
9319         (gst_ghost_pad_save_thyself), (handle_pad_block), (gst_pad_push),
9320         (gst_pad_check_pull_range), (gst_pad_pull_range),
9321         (gst_pad_template_get_type), (gst_pad_template_class_init),
9322         (gst_pad_template_init), (gst_pad_template_dispose),
9323         (name_is_valid), (gst_static_pad_template_get),
9324         (gst_pad_template_new), (gst_static_pad_template_get_caps),
9325         (gst_pad_template_get_caps), (gst_pad_set_element_private),
9326         (gst_pad_get_element_private), (gst_pad_start_task),
9327         (gst_pad_pause_task), (gst_pad_stop_task),
9328         (gst_ghost_pad_get_type), (gst_ghost_pad_class_init),
9329         (gst_ghost_pad_init), (gst_ghost_pad_dispose),
9330         (gst_ghost_pad_set_property), (gst_ghost_pad_get_property),
9331         (gst_ghost_pad_new):
9332         * gst/gstpad.h:
9333         * gst/gstquery.c: (_gst_query_initialize), (gst_query_new),
9334         (gst_query_new_position), (gst_query_set_position),
9335         (gst_query_parse_position), (gst_query_new_convert),
9336         (gst_query_set_convert), (gst_query_parse_convert):
9337         * gst/gstquery.h:
9338         * gst/gstqueryutils.c:
9339         * gst/gstqueryutils.h:
9340         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
9341         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
9342         (gst_queue_handle_src_query):
9343         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
9344         (gst_element_query_position), (gst_element_query_convert),
9345         (intersect_caps_func), (gst_pad_query_position),
9346         (gst_pad_query_convert):
9347         * gst/gstutils.h:
9348         * tools/gst-inspect.c: (print_pad_info):
9349         * tools/gst-xmlinspect.c: (print_element_info):
9350         Remove old query functions. Ported old code.
9351         Added position/convert helper functions to gstutils.
9352         Reordered gstpad.c code, grouping relevant things.
9353         Remove gst_message_new(), always need to speficy a specific
9354         message.
9355
9356
9357 2005-05-09  Andy Wingo  <wingo@pobox.com>
9358
9359         * gst/gstiterator.h: Add some includes.
9360
9361         * gst/gstqueryutils.h: Include more headers.
9362
9363         * gst/gstpad.h:
9364         * gst/gstpad.c (gst_pad_query_position): New routine, replaces
9365         some uses of gst_pad_query.
9366
9367         * gst/gstqueryutils.c: Build fixes. Make parse functions ignore
9368         NULL out parameters.
9369         (gst_query_new_position): New proc, allocates a new position
9370         query.
9371
9372         * gst/Makefile.am (libgstreamer_@GST_MAJORMINOR@_la_SOURCES): Add
9373         gstqueryutils.c to the build.
9374
9375         * gst/gststructure.c (gst_structure_set_valist): Implement with
9376         the generic G_VALUE_COLLECT.
9377         
9378 2005-05-08  Edward Hervey  <bilboed@bilboed.com>
9379
9380         * gst/Makefile.am: (gst_headers):
9381         Added gstqueryutils.h to the list of headers to install, that was
9382         a 'nachty' move wingo :)
9383
9384 2005-05-06  Andy Wingo  <wingo@pobox.com>
9385
9386         * gst/gstquery.h
9387         * gst/gstquery.c (_gst_query_initialize): Extend GstQuery from
9388         GstData, init a memchunk.
9389         (standard_definitions): Add a few query types, deprecate a few.
9390         (gst_query_get_type): New proc.
9391         (_gst_query_copy, _gst_query_free, gst_query_new): GstData
9392         implementation.
9393         (gst_query_new_application, gst_query_get_structure): New public
9394         procs.
9395
9396         * docs/design/draft-query.txt: Removed LINKS from the query types,
9397         because all the rest can be dispatched to other pads -- seemed
9398         ugly to have a query that couldn't be dispatched. internal_links
9399         is fine as a pad method.
9400
9401         * gst/gstpad.h: Add query2 as a pad method, add the new functions
9402         in gstpad.c, but maintain binary compatibility for the moment.
9403         Will fix before 0.9 is out.
9404
9405         * gst/gstqueryutils.c: 
9406         * gst/gstqueryutils.h: New files, implement 3 methods for each
9407         query type: parse_query, parse_response, and set. Probably need an
9408         allocator as well.
9409
9410         * gst/gst.h: Add gstquery.h and gstqueryutils.h to the list.
9411
9412         * gst/elements/gstfilesink.c (gst_filesink_query2):
9413         * gst/base/gstbasesrc.c (gst_basesrc_query2): Replace old query,
9414         query_types, and formats methods.
9415
9416         * gst/gstpad.c (gst_pad_query2, gst_pad_query2_default)
9417         (gst_pad_set_query2_function): New functions.
9418         (gst_real_pad_init): Set query2_default as the default query2
9419         function. Basically just dispatches to internally linked pads.
9420
9421         Needs review!
9422         
9423         * gst/gstdata_private.h (_GST_DATA_INIT): Set data->refcount to 1
9424         without using the atomic operations. Only one thread can possibly
9425         be accessing the data at this point. Changed so as to avoid
9426         gst_atomic operations.
9427
9428 2005-05-06  Wim Taymans  <wim@fluendo.com>
9429
9430         * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push):
9431         Also set caps if we use the fallback buffer alloc.
9432
9433 2005-05-06  Tim-Philipp Müller  <tim at centricular dot net>
9434
9435         * docs/gst/Makefile.am:
9436         * docs/gst/gstreamer-docs.sgml:
9437         * docs/gst/gstreamer-sections.txt:
9438         * docs/gst/tmpl/gstatomic.sgml:
9439         * docs/gst/tmpl/gstmemchunk.sgml:
9440         * testsuite/elements/struct_i386.h:
9441         * win32/GStreamer.vcproj:
9442         * win32/Makefile:
9443           Purge GstAtomic stuff from docs and win32 makefiles as well
9444
9445 2005-05-06  Wim Taymans  <wim@fluendo.com>
9446
9447         * gst/base/gstbasetransform.c: (gst_base_transform_proxy_getcaps):
9448         * gst/elements/gstcapsfilter.c: (gst_capsfilter_getcaps):
9449         * gst/gstpad.c: (gst_pad_peer_get_caps):
9450         * gst/gstqueue.c: (gst_queue_init), (gst_queue_getcaps),
9451         (gst_queue_bufferalloc), (gst_queue_handle_sink_event),
9452         (gst_queue_src_activate), (gst_queue_change_state):
9453         * gst/gstqueue.h:
9454         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
9455         (intersect_caps_func):
9456         Fix gst_pad_peer_get_caps(), make it return NULL if no peer.
9457         Always take QUEUE_LOCK after STREAM_LOCK or we might deadlock.
9458         Some fixes for the peer_get_caps() change.
9459
9460 2005-05-06  Wim Taymans  <wim@fluendo.com>
9461
9462         * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
9463         (gst_basesink_handle_buffer), (gst_basesink_chain_unlocked),
9464         (gst_basesink_activate):
9465         Actually do something with error codes returned from the push
9466         functions.
9467
9468 2005-05-06  Wim Taymans  <wim@fluendo.com>
9469
9470         * docs/design/part-element-sink.txt:
9471         * docs/design/part-element-source.txt:
9472         * gst/base/gstbasesink.c: (gst_basesink_class_init),
9473         (gst_basesink_event), (gst_basesink_activate):
9474         * gst/base/gstbasesink.h:
9475         * gst/base/gstbasesrc.c: (gst_basesrc_init), (gst_basesrc_unlock),
9476         (gst_basesrc_activate):
9477         * gst/base/gstbasesrc.h:
9478         * gst/gstelement.c: (gst_element_pads_activate):
9479         Some more documentation.
9480         Fixed scheduling decision in _pads_activate().
9481
9482 2005-05-05  Andy Wingo  <wingo@pobox.com>
9483
9484         * check/pipelines/simple_launch_lines.c (test_2_elements): "Fix"
9485         the test suite.
9486
9487 2005-05-05  Wim Taymans  <wim@fluendo.com>
9488
9489         * gst/base/Makefile.am:
9490         * gst/base/gstbasesink.h:
9491         * gst/base/gstbasesrc.c: (gst_basesrc_init),
9492         (gst_basesrc_set_dataflow_funcs), (gst_basesrc_query):
9493         * gst/base/gstcollectpads.c: (gst_collectpads_get_type),
9494         (gst_collectpads_class_init), (gst_collectpads_init),
9495         (gst_collectpads_finalize), (gst_collectpads_new),
9496         (gst_collectpads_set_function), (gst_collectpads_add_pad),
9497         (find_pad), (gst_collectpads_remove_pad),
9498         (gst_collectpads_is_active), (gst_collectpads_collect),
9499         (gst_collectpads_collect_range), (gst_collectpads_start),
9500         (gst_collectpads_stop), (gst_collectpads_peek),
9501         (gst_collectpads_pop), (gst_collectpads_available),
9502         (gst_collectpads_read), (gst_collectpads_flush),
9503         (gst_collectpads_chain):
9504         * gst/base/gstcollectpads.h:
9505         * gst/elements/Makefile.am:
9506         * gst/elements/gstelements.c:
9507         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
9508         (gst_fakesink_get_times), (gst_fakesink_event),
9509         (gst_fakesink_preroll), (gst_fakesink_render):
9510         * gst/elements/gstfilesink.c: (gst_filesink_class_init),
9511         (gst_filesink_init), (gst_filesink_set_location),
9512         (gst_filesink_open_file), (gst_filesink_close_file),
9513         (gst_filesink_pad_query), (gst_filesink_event),
9514         (gst_filesink_render), (gst_filesink_change_state):
9515         * gst/elements/gstfilesink.h:
9516         Added object to help in making collect pad based elements.
9517         Ported filesink.
9518         Make event function in sink baseclass return gboolean.
9519
9520 2005-05-05  Wim Taymans  <wim@fluendo.com>
9521
9522         * gst/gstbin.c: (gst_bin_send_event), (compare_name),
9523         (gst_bin_get_by_name):
9524         * gst/gstbuffer.h:
9525         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_class_init),
9526         (gst_clock_finalize):
9527         * gst/gstdata.c: (gst_data_replace):
9528         * gst/gstdata.h:
9529         * gst/gstelement.c: (gst_element_request_pad),
9530         (gst_element_pads_activate):
9531         * gst/gstobject.c: (gst_object_init), (gst_object_ref),
9532         (gst_object_unref):
9533         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
9534         (gst_pad_set_checkgetrange_function),
9535         (gst_pad_link_check_compatible_unlocked), (gst_pad_set_caps),
9536         (gst_pad_check_pull_range), (gst_pad_pull_range),
9537         (gst_static_pad_template_get_caps), (gst_pad_start_task),
9538         (gst_pad_pause_task), (gst_pad_stop_task):
9539         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
9540         (gst_element_request_pad), (gst_pad_proxy_getcaps):
9541         Fix name lookup in GstBin.
9542         Added _data_replace() function and _buffer_replace()
9543         Use finalize method to clean up clock.
9544         Fix refcounting on request pads.
9545         Fix pad schedule mode error.
9546         Some more object refcounting debug info,
9547
9548
9549 2005-05-04  Andy Wingo <wingo@pobox.com>
9550
9551         * check/Makefile.am:
9552         * docs/gst/tmpl/gstatomic.sgml:
9553         * docs/gst/tmpl/gstplugin.sgml:
9554         * gst/base/gstbasesink.c: (gst_basesink_activate):
9555         * gst/base/gstbasesrc.c: (gst_basesrc_class_init),
9556         (gst_basesrc_init), (gst_basesrc_set_dataflow_funcs),
9557         (gst_basesrc_query), (gst_basesrc_set_property),
9558         (gst_basesrc_get_property), (gst_basesrc_check_get_range),
9559         (gst_basesrc_activate):
9560         * gst/base/gstbasesrc.h:
9561         * gst/base/gstbasetransform.c: (gst_base_transform_sink_activate),
9562         (gst_base_transform_src_activate):
9563         * gst/elements/gstelements.c:
9564         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
9565         (gst_fakesrc_set_property), (gst_fakesrc_get_property):
9566         * gst/elements/gsttee.c: (gst_tee_sink_activate):
9567         * gst/elements/gsttypefindelement.c: (find_element_get_length),
9568         (gst_type_find_element_checkgetrange),
9569         (gst_type_find_element_activate):
9570         * gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
9571         * gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
9572         (gst_caps_load_thyself):
9573         * gst/gstelement.c: (gst_element_pads_activate),
9574         (gst_element_save_thyself), (gst_element_restore_thyself):
9575         * gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
9576         (gst_ghost_pad_save_thyself), (gst_pad_check_pull_range):
9577         * gst/gstpad.h:
9578         * gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
9579         (gst_xml_parse_file), (gst_xml_parse_memory),
9580         (gst_xml_get_element), (gst_xml_make_element):
9581         * gst/indexers/gstfileindex.c: (gst_file_index_load),
9582         (_file_index_id_save_xml), (gst_file_index_commit):
9583         * gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
9584         (read_enum), (load_pad_template), (load_feature), (load_plugin),
9585         (load_paths):
9586         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
9587         (gst_dp_packet_from_event), (gst_dp_caps_from_packet):
9588         * tools/gst-complete.c: (main):
9589         * tools/gst-compprep.c: (main):
9590         * tools/gst-inspect.c: (print_element_properties_info):
9591         * tools/gst-launch.c: (xmllaunch_parse_cmdline):
9592         * tools/gst-xmlinspect.c: (print_element_properties):
9593         GCC 4 fixen.
9594         
9595 2005-05-03  Thomas Vander Stichele  <thomas at apestaart dot org>
9596
9597         * gst/gstplugin.c: (gst_plugin_check_module),
9598         (gst_plugin_check_file), (gst_plugin_load_file):
9599             apply patch from #172526 to make register work on MacOSX
9600
9601 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
9602
9603         * docs/gst/tmpl/gstconfig.sgml:
9604         * gst/gstconfig.h.in:
9605           move documentation for some symbols.  Add doc for GST_PTR_FORMAT
9606         * testsuite/debug/printf_extension.c: (main):
9607           Do not use GST_PTR_FORMAT on pointers to types with
9608           sizeof < sizeof(gpointer).  Fixes test on 64-bit
9609         * testsuite/elements/property.h:
9610           use correct printf format
9611
9612 2005-05-02  Wim Taymans  <wim@fluendo.com>
9613
9614         * docs/design/draft-push-pull.txt:
9615         * docs/design/draft-query.txt:
9616         * gst/base/gstbasesrc.c: (gst_basesrc_get_range_unlocked),
9617         (gst_basesrc_start):
9618         Added draft for new query API.
9619         Added draft for better selecting scheduling methods.
9620         Make basesrc ignore length if the subclass does not support
9621         it.
9622
9623 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
9624
9625         * gst/Makefile.am:
9626           possible fixes for automake-1.5 - _LIBADD is reserved
9627
9628 2005-05-02  Thomas Vander Stichele  <thomas at apestaart dot org>
9629
9630         * docs/faq/Makefile.am:
9631         * docs/manual/Makefile.am:
9632         * docs/manuals.mak:
9633         * docs/pwg/Makefile.am:
9634         * gst/Makefile.am:
9635           possible fixes for automake-1.5
9636
9637 2005-04-28  Wim Taymans  <wim@fluendo.com>
9638
9639         * gst/base/gstbasesink.c: (gst_basesink_base_init),
9640         (gst_basesink_pad_getcaps), (gst_basesink_init),
9641         (gst_basesink_do_sync):
9642         * gst/gstclock.c: (gst_clock_entry_new):
9643         * gst/gstevent.c: (gst_event_discont_get_value):
9644         * gst/gstpipeline.c: (pipeline_bus_handler),
9645         (gst_pipeline_change_state):
9646         * gst/gstsystemclock.c: (gst_system_clock_id_wait_unlocked):
9647         Better debugging of clocking info.
9648         Allow NULL values when getting discont values.
9649
9650 2005-04-27  Wim Taymans  <wim@fluendo.com>
9651
9652         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
9653         * check/gst/gstpad.c: (gst_pad_suite):
9654         Increase timeout for checks.
9655
9656 2005-04-27  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
9657
9658         * check/Makefile.am:
9659           fix the broken rule for cleanup.  Apparently this rule is
9660           only needed on FC2, so maybe this warrants further autotool
9661           inspection.
9662
9663 2005-04-26  Wim Taymans  <wim@fluendo.com>
9664
9665         * gst/gsttrashstack.h:
9666         Ooohh. a nasty one! After having a failed pop() from the stack,
9667         it's possible that the stack is empty. In that case, don't
9668         follow the NULL pointer.
9669
9670 2005-04-25  Wim Taymans  <wim@fluendo.com>
9671
9672         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
9673         (gst_pad_set_checkgetrange_function),
9674         (gst_pad_link_check_compatible_unlocked), (gst_pad_link_prepare),
9675         (gst_pad_check_pull_range), (gst_pad_pull_range),
9676         (gst_static_pad_template_get_caps), (gst_pad_start_task),
9677         (gst_pad_pause_task), (gst_pad_stop_task):
9678         * gst/gstplugin.c: (gst_plugin_load):
9679         * gst/gstplugin.h:
9680         Remove gst_library_load as it does more harm than good with
9681         the new g_module flags.
9682         Revert bogus caps template check in pad linking, pad caps
9683         are important when linking not the template, which is more
9684         general than the current caps.
9685
9686 2005-04-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9687
9688         * gst/autoplug/.cvsignore:
9689         * gst/autoplug/Makefile.am:
9690         * gst/autoplug/gstsearchfuncs.c:
9691         * gst/autoplug/gstsearchfuncs.h:
9692         * gst/autoplug/gstspider.c:
9693         * gst/autoplug/gstspider.h:
9694         * gst/autoplug/gstspideridentity.c:
9695         * gst/autoplug/gstspideridentity.h:
9696         * gst/autoplug/spidertest.c:
9697           Die, spider, die.
9698
9699 2005-04-25  Wim Taymans  <wim@fluendo.com>
9700
9701         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
9702         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
9703         (gst_pad_pull_range), (gst_static_pad_template_get_caps),
9704         (gst_pad_start_task), (gst_pad_pause_task), (gst_pad_stop_task):
9705         * gst/gstpad.h:
9706         Added stubs for unimplemented functions. 
9707
9708 2005-04-24  David Schleef  <ds@schleef.org>
9709
9710         * gst/gstpad.h: Disable some unimplemented functions.  Wim,
9711         please fix.
9712
9713 2005-04-24  David Schleef  <ds@schleef.org>
9714
9715         Convert everything from GstAtomicInt to g_atomic_int_*, and
9716         remove gstatomic.
9717         * gst/Makefile.am:
9718         * gst/gstatomic.c:
9719         * gst/gstatomic.h:
9720         * gst/gstatomic_impl.h:
9721         * gst/gstbuffer.c:
9722         * gst/gstcaps.c:
9723         * gst/gstcaps.h:
9724         * gst/gstclock.c:
9725         * gst/gstclock.h:
9726         * gst/gstdata.c:
9727         * gst/gstdata.h:
9728         * gst/gstdata_private.h:
9729         * gst/gstevent.c:
9730         * gst/gstinfo.c:
9731         * gst/gstinfo.h:
9732         * gst/gstmessage.c:
9733         * gst/gstobject.c:
9734         * gst/gstobject.h:
9735         * gst/gststructure.c:
9736         * gst/gststructure.h:
9737         * gst/gstutils.c: Add gst_atomic_int_set() compaitibility function.
9738         * gst/gstutils.h:
9739
9740 2005-04-24  David Schleef  <ds@schleef.org>
9741
9742         * check/gst/gstpad.c: (START_TEST): Oh yeah, it's always nice to
9743         make the regressions tests work.  Remove some code that is no
9744         longer true.
9745         * gst/gstpad.c: (gst_pad_link_check_templates_compatible_unlocked):
9746         Disable warning for pads without templates.
9747
9748 2005-04-24  David Schleef  <ds@schleef.org>
9749
9750         * gst/gstpad.c: Remove handling of filtered caps.  Fix/merge
9751         functions that handle filtered links.
9752         * gst/gstpad.h: Remove 'appfilter' field and prototypes of
9753         removed functions.
9754         * gst/gstutils.c: Fix/remove utility functions that handle
9755         filtered caps.
9756         * gst/gstutils.h:
9757         * gst/gstvalue.c: Add serialization/deserialization of caps
9758         * gst/parse/grammar.y: Ignore filtered caps when linking.  This
9759         requires fixing so that the filter caps notation creates
9760         a capsfilter element and sets the filter_caps property.  I
9761         think everyone probably wants to keep the shorthand notation.
9762         * docs/gst/tmpl/gstelement.sgml: updates for API changes.
9763         * docs/gst/tmpl/gstpad.sgml:
9764
9765         * gst/elements/gstelements.c: Register capsfilter element.
9766         * gst/Makefile.am: fix spacing
9767         * docs/random/ds/0.9-suggested-changes: random
9768
9769 2005-04-23  David Schleef  <ds@schleef.org>
9770
9771         * gst/elements/Makefile.am:
9772         * gst/elements/gstcapsfilter.c: New element that acts like an
9773         identity, but filters caps.  Will eventually replace filtered
9774         caps in pad linking.
9775         * gst/gstutils.c: (gst_element_create_all_pads): New function
9776         to create all the ALWAYS pads that are registered with an
9777         element class.  This functionality should eventually be
9778         merged in with GstElement initialization.
9779         * gst/gstutils.h:
9780         * testsuite/trigger/README: part of trigger test code that should
9781         have been checked in a long time ago.
9782
9783 2005-04-23  David Schleef  <ds@schleef.org>
9784
9785         * gst/Makefile.am: Remove as-libtool stuff.  It's likely not
9786         needed with new versions of libtool (nobody will confirm this),
9787         and hard to carry around.
9788         * gst/autoplug/Makefile.am:
9789         * gst/base/Makefile.am:
9790         * gst/elements/Makefile.am:
9791         * gst/indexers/Makefile.am:
9792         * gst/schedulers/Makefile.am:
9793         * libs/gst/bytestream/Makefile.am:
9794         * libs/gst/control/Makefile.am:
9795         * libs/gst/dataprotocol/Makefile.am:
9796         * libs/gst/getbits/Makefile.am:
9797
9798 2005-04-21  Wim Taymans  <wim@fluendo.com>
9799
9800         * docs/design/draft-push-pull.txt:
9801         * docs/design/part-MT-refcounting.txt:
9802         * docs/design/part-TODO.txt:
9803         * docs/design/part-caps.txt:
9804         * docs/design/part-events.txt:
9805         * docs/design/part-gstbus.txt:
9806         * docs/design/part-gstpipeline.txt:
9807         * docs/design/part-messages.txt:
9808         * docs/design/part-push-pull.txt:
9809         * docs/design/part-query.txt:
9810         Some more docs.
9811
9812 2005-04-21  Wim Taymans  <wim@fluendo.com>
9813
9814         * gst/gstmessage.c: (_gst_message_copy), (_gst_message_free),
9815         (gst_message_new), (gst_message_new_error),
9816         (gst_message_new_warning), (gst_message_new_tag),
9817         (gst_message_new_state_changed), (gst_message_new_application),
9818         (gst_message_get_structure):
9819         * gst/gstmessage.h:
9820         * gst/gststructure.c: (gst_structure_set_parent_refcount),
9821         (gst_structure_copy_conditional):
9822         Use parent refcount in GstMessage to ensure GstStructure
9823         consistency.
9824         Cleaned up headers a bit.
9825         
9826
9827 2005-04-20  Wim Taymans  <wim@fluendo.com>
9828
9829         * gst/base/gstbasesink.c: (gst_basesink_base_init),
9830         (gst_basesink_pad_getcaps), (gst_basesink_init),
9831         (gst_basesink_chain_unlocked):
9832         * gst/base/gsttypefindhelper.c: (helper_find_suggest),
9833         (gst_type_find_helper):
9834         * gst/elements/gsttypefindelement.c:
9835         (gst_type_find_element_have_type), (gst_type_find_element_init),
9836         (stop_typefinding), (gst_type_find_element_handle_event),
9837         (find_suggest), (gst_type_find_element_chain),
9838         (gst_type_find_element_checkgetrange),
9839         (gst_type_find_element_getrange), (do_typefind),
9840         (gst_type_find_element_activate):
9841         * gst/gstbuffer.c: (_gst_buffer_sub_free),
9842         (gst_buffer_default_free), (gst_buffer_default_copy),
9843         (gst_buffer_set_caps):
9844         * gst/gstcaps.c: (gst_caps_ref), (gst_caps_unref),
9845         (gst_caps_replace):
9846         * gst/gstmessage.c: (gst_message_new),
9847         (gst_message_new_state_changed):
9848         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
9849         (gst_pad_set_checkgetrange_function),
9850         (gst_pad_link_prepare_filtered), (gst_pad_relink_filtered),
9851         (gst_pad_set_caps), (gst_pad_check_pull_range),
9852         (gst_pad_pull_range), (gst_static_pad_template_get_caps):
9853         * gst/gstpad.h:
9854         * gst/gsttypefind.c: (gst_type_find_register):
9855         Make gst_caps_replace() work like other _replace() functions.
9856         Use _caps_replace() where possible.
9857         Make sure _message_new() initialises its field.
9858         Add gst_static_pad_template_get_caps()
9859
9860
9861 2005-04-18  Andy Wingo  <wingo@pobox.com>
9862
9863         * gst/gstelement.c (gst_element_pads_activate): Check pull_range
9864         on the peer, not the pad. I think that was a typo. Pass an extra
9865         arg to see if random access is possible. Activate the pads as
9866         PULL_RANGE if possible.
9867
9868         * gst/elements/gstfakesrc.c: s/ARG_/PROP_/.
9869
9870         * gst/base/gstbasesrc.c (gst_basesrc_set_property) 
9871         (gst_basesrc_get_property): BLOCKSIZE is a ULONG. Rename ARG_...
9872         to PROP_....
9873
9874 2005-04-14  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9875
9876         * docs/faq/using.xml:
9877           Add note on gstreamer-properties (#154996).
9878
9879 2005-04-13  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9880
9881         * docs/random/bbb/optional-properties:
9882           Some analysis on optional properties.
9883
9884 2005-04-12  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
9885
9886         * docs/gst/tmpl/gstelementfactory.sgml:
9887         * gst/gstelement.h:
9888         * gst/gstelementfactory.c: (gst_element_factory_init),
9889         (gst_element_factory_cleanup), (gst_element_register),
9890         (__gst_element_factory_add_static_pad_template),
9891         (gst_element_factory_get_static_pad_templates),
9892         (gst_element_factory_can_src_caps),
9893         (gst_element_factory_can_sink_caps):
9894         * gst/registries/Makefile.am:
9895         * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_get_type),
9896         (gst_xml_registry_class_init), (gst_xml_registry_init),
9897         (gst_xml_registry_new), (gst_xml_registry_set_property),
9898         (gst_xml_registry_get_property), (get_time), (make_dir),
9899         (gst_xml_registry_get_perms_func),
9900         (plugin_times_older_than_recurse), (plugin_times_older_than),
9901         (gst_xml_registry_open_func), (gst_xml_registry_load_func),
9902         (gst_xml_registry_save_func), (gst_xml_registry_close_func),
9903         (add_to_char_array), (read_string), (read_uint), (read_enum),
9904         (load_pad_template), (load_feature), (load_plugin), (load_paths),
9905         (gst_xml_registry_load), (gst_xml_registry_load_plugin),
9906         (gst_xml_registry_save_caps), (gst_xml_registry_save_pad_template),
9907         (gst_xml_registry_save_feature), (gst_xml_registry_save_plugin),
9908         (gst_xml_registry_save), (gst_xml_registry_rebuild_recurse),
9909         (gst_xml_registry_rebuild):
9910         * gst/registries/gstlibxmlregistry.h:
9911         * tools/gst-compprep.c: (main):
9912         * tools/gst-inspect.c: (print_pad_templates_info):
9913         * tools/gst-xmlinspect.c: (print_element_info):
9914           Use libxml2 for registry parsing, use staticpadtemplates in
9915           elementfactories. Makes gst_init() +/- 10x faster.
9916
9917 2005-04-12  Wim Taymans  <wim@fluendo.com>
9918
9919         * gst/base/Makefile.am:
9920         * gst/base/gstbasesink.c: (gst_basesink_base_init),
9921         (gst_basesink_pad_getcaps), (gst_basesink_init),
9922         (gst_basesink_event), (gst_basesink_change_state):
9923         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
9924         (gst_basesrc_init), (gst_basesrc_query),
9925         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
9926         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
9927         (gst_basesrc_check_get_range), (gst_basesrc_loop),
9928         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
9929         (gst_basesrc_stop), (gst_basesrc_activate),
9930         (gst_basesrc_change_state):
9931         * gst/base/gsttypefindhelper.c: (helper_find_peek),
9932         (helper_find_suggest), (gst_type_find_helper):
9933         * gst/base/gsttypefindhelper.h:
9934         * gst/elements/Makefile.am:
9935         * gst/elements/gstelements.c:
9936         * gst/elements/gstfakesink.c: (gst_fakesink_class_init),
9937         (gst_fakesink_get_times), (gst_fakesink_event),
9938         (gst_fakesink_preroll), (gst_fakesink_render):
9939         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
9940         (gst_fakesrc_init), (gst_fakesrc_event_handler),
9941         (gst_fakesrc_get_property), (gst_fakesrc_create),
9942         (gst_fakesrc_start), (gst_fakesrc_stop):
9943         * gst/elements/gstfakesrc.h:
9944         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init),
9945         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
9946         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
9947         (gst_filesrc_create_read), (gst_filesrc_create),
9948         (gst_filesrc_is_seekable), (gst_filesrc_get_size),
9949         (gst_filesrc_start):
9950         * gst/elements/gsttypefindelement.c:
9951         (gst_type_find_element_have_type), (gst_type_find_element_init),
9952         (start_typefinding), (stop_typefinding), (push_buffer_store),
9953         (gst_type_find_element_handle_event),
9954         (gst_type_find_element_chain),
9955         (gst_type_find_element_checkgetrange),
9956         (gst_type_find_element_getrange), (do_typefind),
9957         (gst_type_find_element_activate),
9958         (gst_type_find_element_change_state):
9959         * gst/elements/gsttypefindelement.h:
9960         * gst/gstpipeline.c: (pipeline_bus_handler):
9961         Added typefind helper.
9962         Small preroll fix in the base sink.
9963         Disable typefind code in basesrc.
9964         Crude port of typefindelement.
9965         Fakesrc cleanups.
9966
9967
9968 2005-04-11  Wim Taymans  <wim@fluendo.com>
9969
9970         * check/gst/gstbus.c: (gstbus_suite):
9971         * check/gst/gstdata.c: (thread_ref), (gst_data_suite):
9972         * check/gstcheck.h:
9973           Fix up the timeout so that the test does not fail.
9974
9975 2005-04-06  Wim Taymans  <wim@fluendo.com>
9976
9977         * gst/base/README:
9978         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
9979         (gst_basesrc_init), (gst_basesrc_get_formats), (gst_basesrc_query),
9980         (gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
9981         (gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
9982         (gst_basesrc_check_get_range), (gst_basesrc_loop),
9983         (gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
9984         (gst_basesrc_stop), (gst_basesrc_activate),
9985         (gst_basesrc_change_state), (basesrc_find_peek),
9986         (basesrc_find_suggest), (gst_basesrc_type_find):
9987         * gst/base/gstbasesrc.h:
9988         * gst/elements/gstfilesrc.c: (gst_filesrc_base_init),
9989         (gst_filesrc_class_init), (gst_filesrc_init),
9990         (gst_filesrc_finalize), (gst_filesrc_set_location),
9991         (gst_filesrc_set_property), (gst_filesrc_get_property),
9992         (gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
9993         (gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
9994         (gst_filesrc_create_read), (gst_filesrc_create),
9995         (gst_filesrc_get_size), (gst_filesrc_start), (gst_filesrc_stop):
9996         * gst/elements/gstfilesrc.h:
9997         * gst/gstelement.c: (gst_element_get_state_func),
9998         (gst_element_lost_state), (gst_element_pads_activate):
9999         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10000         (gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
10001         (gst_pad_pull_range):
10002         * gst/gstpad.h:
10003         More work on the generic source base class, implement seeking,
10004         query.
10005         Make filesrc extend the base source class.
10006         Added gst_pad_set_checkgetrange_function to GstPad.
10007
10008 2005-04-06  Andy Wingo  <wingo@pobox.com>
10009
10010         * pkgconfig/gstreamer-base.pc.in:
10011         * pkgconfig/gstreamer-base-uninstalled.pc.in: New files.
10012
10013         * pkgconfig/Makefile.am:
10014         * configure.ac (AC_OUTPUT): Add gstreamer-base pkgconfig files.
10015
10016 2005-04-04  Wim Taymans  <wim@fluendo.com>
10017
10018         * gst/base/Makefile.am:
10019         * gst/base/README:
10020         * gst/base/gstbasesink.c: (gst_basesink_base_init),
10021         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
10022         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
10023         (gst_basesink_do_sync), (gst_basesink_chain_unlocked):
10024         * gst/base/gstbasesrc.c: (gst_basesrc_get_type),
10025         (gst_basesrc_base_init), (gst_basesrc_class_init),
10026         (gst_basesrc_init), (gst_basesrc_get_formats),
10027         (gst_basesrc_get_query_types), (gst_basesrc_query),
10028         (gst_basesrc_get_event_mask), (gst_basesrc_event_handler),
10029         (gst_basesrc_set_property), (gst_basesrc_get_property),
10030         (gst_basesrc_get_range_unlocked), (gst_basesrc_get_range),
10031         (gst_basesrc_loop), (gst_basesrc_activate),
10032         (gst_basesrc_change_state):
10033         * gst/base/gstbasesrc.h:
10034         * gst/elements/gstfakesrc.c: (gst_fakesrc_base_init),
10035         (gst_fakesrc_class_init), (gst_fakesrc_init),
10036         (gst_fakesrc_event_handler), (gst_fakesrc_set_property),
10037         (gst_fakesrc_get_property), (gst_fakesrc_create):
10038         * gst/elements/gstfakesrc.h:
10039         * gst/elements/gstfilesrc.c: (gst_filesrc_getrange),
10040         (gst_filesrc_open_file), (gst_filesrc_loop),
10041         (gst_filesrc_activate), (filesrc_find_peek),
10042         (gst_filesrc_type_find):
10043         Made base source class, make fakesrc extend it.
10044         Add comments to basesink class.
10045         Some filesrc cleanup.
10046
10047 2005-03-31  David Schleef  <ds@schleef.org>
10048
10049         * gst/gstplugin.c: (gst_plugin_check_file), (gst_plugin_load_file):
10050         Switch to using G_MODULE_BIND_LOCAL, which means plugins are now
10051         expected to link against libgstreamer.
10052         * gst/base/Makefile.am: link against libgstreamer
10053         * gst/elements/Makefile.am: same
10054
10055 2005-03-31  Andy Wingo  <wingo@pobox.com>
10056
10057         * tests/instantiate/Makefile.am:
10058         * tests/instantiate/caps.c: Add test to test speed of caps copy
10059         and free.
10060
10061         * tests/memchunk/gmemchunktest.c (main): Use alloc only on the
10062         GMemChunk to be fair.
10063
10064         * gst/gsttrashstack.h: Remove warning about using the fallback
10065         trash stack implementation, it's still faster than malloc.
10066
10067 2005-03-30  Andy Wingo  <wingo@pobox.com>
10068
10069         * tests/complexity.c: Add a copyright.
10070
10071 2005-03-31  Wim Taymans  <wim@fluendo.com>
10072
10073         * gst/base/gstbasetransform.c: (gst_base_transform_base_init),
10074         (gst_base_transform_class_init), (gst_base_transform_init),
10075         (gst_base_transform_setcaps), (gst_base_transform_handle_buffer),
10076         (gst_base_transform_get_property),
10077         (gst_base_transform_sink_activate),
10078         (gst_base_transform_src_activate),
10079         (gst_base_transform_change_state):
10080         * gst/base/gstbasetransform.h:
10081         * gst/elements/gstidentity.c: (gst_identity_class_init),
10082         (gst_identity_event), (gst_identity_check_perfect),
10083         (gst_identity_transform), (gst_identity_start),
10084         (gst_identity_stop):
10085         Added start/stop methods to transform base class so subclasses 
10086         don't need to deal with state changes even.
10087
10088 2005-03-31  Wim Taymans  <wim@fluendo.com>
10089
10090         * gst/gstevent.c: (gst_event_new_discontinuous_valist),
10091         (gst_event_new_discontinuous), (gst_event_discont_get_value):
10092         * gst/gstevent.h:
10093         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10094         (gst_pad_pull_range):
10095         Added rate to the discont event to prepare for variable speed
10096         and reverse playback.
10097
10098 2005-03-29  David Schleef  <ds@schleef.org>
10099
10100         * configure.ac:
10101         * testsuite/trigger/Makefile.am:
10102         * testsuite/trigger/trigger.c: A little example program to show
10103         how trigger-based elements can work.
10104
10105 2005-03-29  Wim Taymans  <wim@fluendo.com>
10106
10107         * gst/base/Makefile.am:
10108         * gst/base/README:
10109         * gst/base/gstbasesink.c: (gst_basesink_get_type),
10110         (gst_basesink_base_init), (gst_basesink_class_init),
10111         (gst_basesink_pad_getcaps), (gst_basesink_init),
10112         (gst_basesink_activate), (gst_basesink_change_state):
10113         * gst/base/gstbasesink.h:
10114         * gst/base/gstbasetransform.c: (gst_base_transform_get_type),
10115         (gst_base_transform_base_init), (gst_base_transform_finalize),
10116         (gst_base_transform_class_init), (gst_base_transform_init),
10117         (gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
10118         (gst_base_transform_event), (gst_base_transform_getrange),
10119         (gst_base_transform_chain), (gst_base_transform_handle_buffer),
10120         (gst_base_transform_set_property),
10121         (gst_base_transform_get_property),
10122         (gst_base_transform_sink_activate),
10123         (gst_base_transform_src_activate),
10124         (gst_base_transform_change_state):
10125         * gst/base/gstbasetransform.h:
10126         * gst/elements/gstidentity.c: (gst_identity_finalize),
10127         (gst_identity_class_init), (gst_identity_init),
10128         (gst_identity_event), (gst_identity_check_perfect),
10129         (gst_identity_transform), (gst_identity_set_property),
10130         (gst_identity_get_property), (gst_identity_change_state):
10131         * gst/elements/gstidentity.h:
10132         * gst/gstelement.c: (gst_element_get_state_func),
10133         (gst_element_lost_state), (gst_element_pads_activate):
10134         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
10135         (gst_pad_check_pull_range), (gst_pad_pull_range):
10136         * gst/gstpad.h:
10137         Simplify pad activation.
10138         Added function to check if pull_range can be performed.
10139         Error out when pulling inactive or flushing pads.
10140         Removed const from refcounted types as it does not make sense.
10141         Simplify pad templates in basesink
10142         Added base class for simple 1-to-1 transforms.
10143         Make identity subclass the base transform.
10144
10145 2005-03-29  Andy Wingo  <wingo@pobox.com>
10146
10147         * docs/libs/gstreamer-libs-overrides.txt: 
10148         * docs/gst/gstreamer-overrides.txt: Add these files to CVS. Now I
10149         really don't understand what's going on, but like whatever. I want
10150         green buildbot!
10151
10152         * docs/gst/Makefile.am:
10153         * docs/libs/Makefile.am: Dist the overrides files.
10154
10155         * check/Makefile.am (clean-local): Remove .libs directories.
10156
10157         * gst/elements/Makefile.am (EXTRA_DIST): Add all the attic
10158         elements to EXTRA_DIST, so po/ files are happy.
10159
10160         * po/POTFILES.in: Er, remove it here.
10161
10162         * po/POTFILES: Remove gstspider.c.
10163
10164         * configure.ac (AC_OUTPUT): Add missing testsuite makefiles.
10165
10166         * docs/libs/gstreamer-libs-docs.sgml: 
10167         * docs/libs/gstreamer-libs-sections.txt: Remove the section on
10168         bytestream.
10169
10170         * tests/complexity.c (main): Set the length of the preroll queue
10171         on the sinks to prevent a lockup.
10172
10173         * libs/gst/dataprotocol/Makefile.am: 
10174         * libs/gst/dataprotocol/dataprotocol-test.c: Remove test, it's
10175         the same as the one in check/gst-libs/gdp.c.
10176
10177         * po/, docs/gst/: Commit automatic changes to docs and po files.
10178
10179         * gst/elements/Makefile.am (libgstelements_la_LDFLAGS): Link to
10180         the versioned libgstbase.
10181
10182         * check/Makefile.am: Depend on an unversioned gst-register, seems
10183         to make autoconf happier.
10184
10185         * gst/base/Makefile.am: Make libgstbase a versioned lib.
10186
10187 2005-03-28  Wim Taymans  <wim@fluendo.com>
10188
10189         * configure.ac:
10190         * docs/design/part-gstelement.txt:
10191         * docs/design/part-negotiation.txt:
10192         * docs/design/part-preroll.txt:
10193         * docs/design/part-scheduling.txt:
10194         * docs/design/part-states.txt:
10195         * gst/Makefile.am:
10196         * gst/base/Makefile.am:
10197         * gst/base/README:
10198         * gst/base/gstbasesink.c: (gst_basesink_get_template),
10199         (gst_basesink_base_init), (gst_basesink_class_init),
10200         (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps),
10201         (gst_basesink_pad_buffer_alloc), (gst_basesink_init),
10202         (gst_basesink_set_pad_functions),
10203         (gst_basesink_set_all_pad_functions), (gst_basesink_set_clock),
10204         (gst_basesink_set_property), (gst_basesink_get_property),
10205         (gst_base_sink_get_template), (gst_base_sink_get_caps),
10206         (gst_base_sink_set_caps), (gst_base_sink_buffer_alloc),
10207         (gst_basesink_preroll_queue_push),
10208         (gst_basesink_preroll_queue_empty),
10209         (gst_basesink_preroll_queue_flush), (gst_basesink_finish_preroll),
10210         (gst_basesink_event), (gst_basesink_get_times),
10211         (gst_basesink_do_sync), (gst_basesink_handle_buffer),
10212         (gst_basesink_chain_unlocked), (gst_basesink_chain),
10213         (gst_basesink_loop), (gst_basesink_activate),
10214         (gst_basesink_change_state):
10215         * gst/base/gstbasesink.h:
10216         * gst/elements/Makefile.am:
10217         * gst/elements/gstfakesink.c: (gst_fakesink_base_init),
10218         (gst_fakesink_class_init), (gst_fakesink_init),
10219         (gst_fakesink_set_property), (gst_fakesink_get_property),
10220         (gst_fakesink_get_times), (gst_fakesink_event),
10221         (gst_fakesink_preroll), (gst_fakesink_render),
10222         (gst_fakesink_change_state):
10223         * gst/elements/gstfakesink.h:
10224         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
10225         (gst_bin_get_state), (gst_bin_change_state), (gst_bin_send_event):
10226         * gst/gstelement.c: (gst_element_add_pad),
10227         (gst_element_get_state_func), (gst_element_abort_state),
10228         (gst_element_commit_state), (gst_element_lost_state),
10229         (gst_element_set_state), (gst_element_pads_activate):
10230         * gst/gstpad.c: (gst_pad_set_active), (gst_pad_event_default):
10231         * gst/gstpipeline.c: (gst_pipeline_send_event),
10232         (gst_pipeline_change_state):
10233         Added state change code.
10234         Added/updated docs.
10235         Added sink base class, make fakesink extend the base class.
10236         Small cleanups in GstPipeline.
10237
10238 2005-03-26  David Schleef  <ds@schleef.org>
10239
10240         * gst/Makefile.am: remove gstcpu.[ch].  The gst_cpu functionality
10241         is broken and should be implemented in a different library.
10242         * gst/gst.c: (init_post): don't call _gst_cpu_initialize()
10243         * gst/gst.h: remove gstcpu.h
10244         * gst/gstcpu.c: remove
10245         * gst/gstcpu.h: remove
10246         * gst/Makefile.am.future: Remove this file.  It's ancient.
10247
10248 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10249
10250         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_manager),
10251         (gst_bin_send_event):
10252           Add default event/set_manager handlers. The set_manager handler
10253           takes care that the manager is distributed over kids that were
10254           already in the bin before the manager was set. The event handler
10255           is a utility virtual function that sends the event over all sinks,
10256           so that gst_element_send_event (bin, event); has the expected
10257           behaviour.
10258         * gst/gstpad.c: (gst_pad_event_default):
10259           Re-install default event handling for discontinuities, so that
10260           seeking works without requiring hacks in applications or extra
10261           code in sinks.
10262         * gst/gstpipeline.c: (gst_pipeline_class_init),
10263         (gst_pipeline_send_event):
10264           Half hack, half utility: set a pipeline to PAUSED for seek events,
10265           since that is the only way we can guarantee a/v sync. Means that
10266           you can do gst_element_seek (pipeline, method, pos); on a pipeline
10267           and it "just works".
10268
10269 2005-03-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
10270
10271         * gst/gstpipeline.c: (gst_pipeline_use_clock):
10272           Lock/unlock mismatch.
10273
10274 2005-03-25  Thomas Vander Stichele  <thomas at apestaart dot org>
10275
10276         * docs/faq/gst-uninstalled:
10277           add gst-plugins-base
10278         * docs/gst/Makefile.am:
10279           don't error out until docs are fixed
10280         * docs/gst/gstreamer.types:
10281           remove thread
10282
10283 2005-03-22  Wim Taymans  <wim@fluendo.com>
10284
10285         * check/Makefile.am:
10286         * check/gst/gstmessage.c: (START_TEST), (gst_data_suite), (main):
10287         * gst/gststructure.c: (gst_structure_set_valist),
10288         (gst_structure_copy_conditional):
10289         Activated more tests.
10290         Added message test.
10291         Added G_TYPE_POINTER to GstStructure.
10292         
10293
10294 2005-03-22  Wim Taymans  <wim@fluendo.com>
10295
10296         * docs/design/part-TODO.txt:
10297         * docs/design/part-events.txt:
10298         * docs/design/part-gstbin.txt:
10299         * docs/design/part-gstbus.txt:
10300         * docs/design/part-gstpipeline.txt:
10301         * docs/design/part-messages.txt:
10302         * gst/gstbus.c:
10303         * gst/gstmessage.c:
10304         Docs updates
10305
10306 2005-03-21  Wim Taymans  <wim@fluendo.com>
10307
10308         * gst/gstbus.c: (gst_bus_post):
10309         Fix copy-and-paste error.
10310
10311 2005-03-21  Wim Taymans  <wim@fluendo.com>
10312
10313         * check/Makefile.am:
10314         * gst/Makefile.am:
10315         * gst/elements/Makefile.am:
10316         * gst/elements/gstelements.c:
10317         * gst/elements/gstfakesink.c: (gst_fakesink_init),
10318         (gst_fakesink_event), (gst_fakesink_chain):
10319         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init),
10320         (gst_fakesrc_init), (gst_fakesrc_get_event_mask),
10321         (gst_fakesrc_event_handler), (gst_fakesrc_set_pad_functions),
10322         (gst_fakesrc_set_all_pad_functions), (gst_fakesrc_request_new_pad),
10323         (gst_fakesrc_set_property), (gst_fakesrc_get_property),
10324         (gst_fakesrc_get_range_unlocked), (gst_fakesrc_get_range),
10325         (gst_fakesrc_loop), (gst_fakesrc_activate),
10326         (gst_fakesrc_change_state):
10327         * gst/elements/gstfakesrc.h:
10328         * gst/elements/gstfilesrc.c: (gst_filesrc_init),
10329         (gst_filesrc_get_read), (gst_filesrc_getrange), (gst_filesrc_get),
10330         (gst_filesrc_open_file), (gst_filesrc_loop),
10331         (gst_filesrc_activate), (gst_filesrc_change_state),
10332         (filesrc_find_peek), (filesrc_find_suggest),
10333         (gst_filesrc_type_find):
10334         * gst/elements/gstidentity.c: (gst_identity_finalize),
10335         (gst_identity_class_init), (gst_identity_init),
10336         (gst_identity_proxy_getcaps), (identity_queue_push),
10337         (identity_queue_pop), (identity_queue_flush), (gst_identity_event),
10338         (gst_identity_getrange), (gst_identity_chain),
10339         (gst_identity_sink_loop), (gst_identity_src_loop),
10340         (gst_identity_handle_buffer), (gst_identity_set_dataflow_funcs),
10341         (gst_identity_set_property), (gst_identity_get_property),
10342         (gst_identity_change_state):
10343         * gst/elements/gstidentity.h:
10344         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_init),
10345         (gst_tee_update_pad_functions), (gst_tee_request_new_pad),
10346         (gst_tee_set_property), (gst_tee_get_property), (gst_tee_do_push),
10347         (gst_tee_handle_buffer), (gst_tee_chain), (gst_tee_loop),
10348         (gst_tee_sink_activate):
10349         * gst/elements/gsttee.h:
10350         * gst/gst.c: (gst_register_core_elements), (init_post):
10351         * gst/gst.h:
10352         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_bus),
10353         (gst_bin_set_scheduler), (gst_bin_add_func), (gst_bin_add),
10354         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_get_state),
10355         (gst_bin_change_state):
10356         * gst/gstbin.h:
10357         * gst/gstbus.c: (gst_bus_get_type), (gst_bus_class_init),
10358         (gst_bus_init), (gst_bus_dispose), (gst_bus_set_property),
10359         (gst_bus_get_property), (gst_bus_new), (gst_bus_post),
10360         (gst_bus_have_pending), (gst_bus_pop), (gst_bus_peek),
10361         (gst_bus_set_sync_handler), (gst_bus_create_watch),
10362         (bus_watch_callback), (bus_watch_destroy),
10363         (gst_bus_add_watch_full), (gst_bus_add_watch), (poll_handler),
10364         (poll_timeout), (gst_bus_poll):
10365         * gst/gstbus.h:
10366         * gst/gstcaps.h:
10367         * gst/gstdata.h:
10368         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
10369         (gst_element_post_message), (gst_element_message_full),
10370         (gst_element_get_state_func), (gst_element_get_state),
10371         (gst_element_abort_state), (gst_element_commit_state),
10372         (gst_element_lost_state), (gst_element_set_state),
10373         (gst_element_pads_activate), (gst_element_change_state),
10374         (gst_element_dispose), (gst_element_set_manager_func),
10375         (gst_element_set_bus_func), (gst_element_set_scheduler_func),
10376         (gst_element_set_manager), (gst_element_get_manager),
10377         (gst_element_set_bus), (gst_element_get_bus),
10378         (gst_element_set_scheduler), (gst_element_get_scheduler):
10379         * gst/gstelement.h:
10380         * gst/gstevent.c: (gst_event_new_segment_seek),
10381         (gst_event_new_flush):
10382         * gst/gstevent.h:
10383         * gst/gstmessage.c: (_gst_message_initialize), (_gst_message_copy),
10384         (_gst_message_free), (gst_message_get_type), (gst_message_new),
10385         (gst_message_new_eos), (gst_message_new_error),
10386         (gst_message_new_warning), (gst_message_new_tag),
10387         (gst_message_new_state_changed), (gst_message_new_application),
10388         (gst_message_get_structure), (gst_message_parse_tag),
10389         (gst_message_parse_state_changed), (gst_message_parse_error),
10390         (gst_message_parse_warning):
10391         * gst/gstmessage.h:
10392         * gst/gstpad.c: (gst_real_pad_class_init), (gst_real_pad_init),
10393         (gst_real_pad_set_property), (gst_pad_set_active),
10394         (gst_pad_is_active), (gst_pad_set_blocked_async),
10395         (gst_pad_set_blocked), (gst_pad_is_blocked),
10396         (gst_pad_set_activate_function), (gst_pad_set_loop_function),
10397         (gst_pad_set_getrange_function), (gst_pad_set_acceptcaps_function),
10398         (gst_pad_set_fixatecaps_function), (gst_pad_set_setcaps_function),
10399         (gst_pad_unlink), (gst_pad_link_prepare_filtered),
10400         (gst_pad_link_filtered), (gst_pad_relink_filtered),
10401         (gst_real_pad_get_caps_unlocked), (gst_pad_get_caps),
10402         (gst_pad_peer_get_caps), (gst_pad_fixate_caps),
10403         (gst_pad_accept_caps), (gst_pad_peer_accept_caps),
10404         (gst_pad_set_caps), (gst_pad_configure_sink),
10405         (gst_pad_configure_src), (gst_pad_get_negotiated_caps),
10406         (gst_pad_get_filter_caps), (gst_pad_alloc_buffer),
10407         (gst_real_pad_dispose), (gst_real_pad_finalize),
10408         (handle_pad_block), (gst_pad_push), (gst_pad_pull_range),
10409         (gst_pad_event_default_dispatch), (gst_pad_event_default),
10410         (gst_pad_push_event), (gst_pad_send_event), (gst_pad_get_formats):
10411         * gst/gstpad.h:
10412         * gst/gstpipeline.c: (gst_pipeline_init), (is_eos),
10413         (pipeline_bus_handler), (gst_pipeline_change_state),
10414         (gst_pipeline_get_scheduler), (gst_pipeline_get_bus):
10415         * gst/gstpipeline.h:
10416         * gst/gstprobe.h:
10417         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_init),
10418         (gst_queue_finalize), (gst_queue_getcaps), (gst_queue_link_sink),
10419         (gst_queue_link_src), (gst_queue_bufferalloc),
10420         (gst_queue_locked_flush), (gst_queue_handle_sink_event),
10421         (gst_queue_is_empty), (gst_queue_is_filled), (gst_queue_chain),
10422         (gst_queue_loop), (gst_queue_handle_src_event),
10423         (gst_queue_handle_src_query), (gst_queue_src_activate),
10424         (gst_queue_change_state):
10425         * gst/gstqueue.h:
10426         * gst/gstscheduler.c: (gst_scheduler_init),
10427         (gst_scheduler_dispose), (gst_scheduler_create_task),
10428         (gst_scheduler_factory_create):
10429         * gst/gstscheduler.h:
10430         * gst/gststructure.c: (gst_structure_get_type),
10431         (gst_structure_copy_conditional):
10432         * gst/gststructure.h:
10433         * gst/gsttaginterface.h:
10434         * gst/gsttask.c: (gst_task_get_type), (gst_task_class_init),
10435         (gst_task_init), (gst_task_dispose), (gst_task_create),
10436         (gst_task_get_state), (gst_task_start), (gst_task_stop),
10437         (gst_task_pause):
10438         * gst/gsttask.h:
10439         * gst/gstthread.c:
10440         * gst/gstthread.h:
10441         * gst/gsttypes.h:
10442         * gst/schedulers/Makefile.am:
10443         * gst/schedulers/cothreads_compat.h:
10444         * gst/schedulers/entryscheduler.c:
10445         * gst/schedulers/faircothreads.c:
10446         * gst/schedulers/faircothreads.h:
10447         * gst/schedulers/fairscheduler.c:
10448         * gst/schedulers/gstbasicscheduler.c:
10449         * gst/schedulers/gstoptimalscheduler.c:
10450         * gst/schedulers/gthread-cothreads.h:
10451         * gst/schedulers/threadscheduler.c:
10452         (gst_thread_scheduler_task_get_type),
10453         (gst_thread_scheduler_task_class_init),
10454         (gst_thread_scheduler_task_init),
10455         (gst_thread_scheduler_task_start),
10456         (gst_thread_scheduler_task_stop),
10457         (gst_thread_scheduler_task_pause), (gst_thread_scheduler_get_type),
10458         (gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
10459         (gst_thread_scheduler_init), (gst_thread_scheduler_create_task),
10460         (gst_thread_scheduler_setup), (gst_thread_scheduler_reset),
10461         (plugin_init):
10462         * libs/gst/Makefile.am:
10463         * libs/gst/bytestream/bytestream.c: (gst_bytestream_get_next_buf):
10464         * libs/gst/bytestream/filepad.c: (gst_file_pad_init),
10465         (gst_file_pad_parent_set):
10466         * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
10467         (gst_dp_event_from_packet):
10468         * tests/complexity.c: (main):
10469         * tests/mass_elements.c: (main):
10470         * testsuite/states/locked.c: (message_received), (main):
10471         * testsuite/states/parent.c: (main):
10472         * tools/gst-inspect.c: (print_element_flag_info),
10473         (print_implementation_info), (print_pad_info):
10474         * tools/gst-launch.c: (check_intr), (play_handler), (event_loop),
10475         (main):
10476         * tools/gst-md5sum.c: (event_loop), (main):
10477         * tools/gst-typefind.c: (main):
10478         * tools/gst-xmlinspect.c: (print_element_info):
10479         Next big merge.
10480         Added GstBus for mainloop integration.
10481         Added GstMessage for sending notifications on the bus.
10482         Added GstTask as an abstraction for pipeline entry points.
10483         Removed GstThread.
10484         Removed Schedulers.
10485         Simplified GstQueue for multithreaded core.
10486         Made _link threadsafe, removed old capsnego.
10487         Added STREAM_LOCK and PREROLL_LOCK in GstPad.
10488         Added pad blocking functions.
10489         Reworked scheduling functions in GstPad to prepare for
10490         scheduling updates soon.
10491         Moved events out of data stream.
10492         Simplified GstEvent types.
10493         Added return values to push/pull.
10494         Removed clocking from GstElement.
10495         Added prototypes for state change function for next merge.
10496         Removed iterate from bins and state change management.
10497         Fixed some elements, disabled others for now.
10498         Fixed -inspect and -launch.
10499         Added check for GstBus.
10500
10501 2005-03-10  Wim Taymans  <wim@fluendo.com>
10502
10503         * docs/design/part-MT-refcounting.txt:
10504         * docs/design/part-clocks.txt:
10505         * docs/design/part-gstelement.txt:
10506         * docs/design/part-gstobject.txt:
10507         * docs/design/part-standards.txt:
10508         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
10509         (gst_bin_remove_func), (gst_bin_remove):
10510         * gst/gstbin.h:
10511         * gst/gstbuffer.c:
10512         * gst/gstcaps.h:
10513         * testsuite/clock/clock1.c: (main):
10514         * testsuite/clock/clock2.c: (gst_clock_debug), (element_wait),
10515         (main):
10516         * testsuite/dlopen/loadgst.c: (do_test):
10517         * testsuite/refcounting/bin.c: (add_remove_test1),
10518         (add_remove_test2), (main):
10519         * testsuite/refcounting/element.c: (main):
10520         * testsuite/refcounting/element_pad.c: (main):
10521         * testsuite/refcounting/pad.c: (main):
10522         * tools/gst-launch.c: (sigint_handler_sighandler):
10523         * tools/gst-typefind.c: (main):
10524         Doc updates.
10525         Added doc about clock.
10526         removed gst_bin_iterate_recurse_up(), marked methods
10527         for removal.
10528         Fix more testsuites.
10529
10530 2005-03-09  Wim Taymans  <wim@fluendo.com>
10531
10532         * gst/gstpad.c: (gst_pad_get_direction),
10533         (_gst_pad_default_fixate_foreach), (gst_pad_collectv),
10534         (gst_pad_collect_valist):
10535         * testsuite/bins/interface.c: (main):
10536         * testsuite/caps/audioscale.c: (test_caps):
10537         * testsuite/caps/caps.c: (test1), (test2), (test3):
10538         * testsuite/caps/deserialize.c: (main):
10539         * testsuite/caps/enumcaps.c: (main):
10540         * testsuite/caps/filtercaps.c: (main):
10541         * testsuite/caps/intersect2.c: (main):
10542         * testsuite/caps/random.c: (main):
10543         * testsuite/caps/renegotiate.c: (my_fixate), (main):
10544         * testsuite/caps/sets.c: (check_caps):
10545         * testsuite/caps/simplify.c: (check_caps), (main):
10546         * testsuite/caps/subtract.c: (check_caps):
10547         Fix _pad_get_direction wrt ghostpads.
10548         Fix caps testsuite.
10549
10550 2005-03-09  Wim Taymans  <wim@fluendo.com>
10551
10552         * check/Makefile.am:
10553         * check/gst/gstbin.c: (START_TEST), (gst_bin_suite), (main):
10554         * check/gst/gstsystemclock.c: (START_TEST), (gst_clock_debug),
10555         (ok_callback), (error_callback), (gst_systemclock_suite), (main):
10556         * gst/gstbin.c: (gst_bin_class_init), (gst_bin_set_index_func),
10557         (gst_bin_set_clock_func), (gst_bin_get_clock_func),
10558         (gst_bin_add_func), (gst_bin_add), (gst_bin_remove_func),
10559         (gst_bin_remove), (gst_bin_iterate_recurse_up),
10560         (bin_element_is_sink), (gst_bin_iterate_sinks),
10561         (gst_bin_iterate_all_by_interface):
10562         * gst/gstbin.h:
10563         * gst/gstelement.c: (gst_element_init), (gst_element_error_full),
10564         (gst_element_change_state), (gst_element_dispose),
10565         (gst_element_finalize), (gst_element_set_loop_function):
10566         * gst/gstelement.h:
10567         * gst/gstiterator.c: (find_custom_fold_func):
10568         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
10569         (gst_pad_collectv), (gst_pad_collect_valist),
10570         (gst_pad_template_new):
10571         * gst/gstpipeline.c: (gst_pipeline_class_init),
10572         (gst_pipeline_dispose), (gst_pipeline_set_property),
10573         (gst_pipeline_get_property), (gst_pipeline_get_clock_func),
10574         (gst_pipeline_get_clock), (gst_pipeline_use_clock),
10575         (gst_pipeline_set_clock), (gst_pipeline_auto_clock):
10576         * gst/gstutils.h:
10577         * gst/schedulers/entryscheduler.c:
10578         * gst/schedulers/gstbasicscheduler.c:
10579         (gst_basic_scheduler_cothreaded_chain),
10580         (gst_basic_scheduler_chain_add_element):
10581         * testsuite/bins/interface.c: (main):
10582         Added GstBin test.
10583         Added GstSystemClock test.
10584         Implemented clock distribution code in GstBin.
10585         Implemented iterate sinks method for future use.
10586         Rearranged gstelement.h
10587         Fix GstIterator comparison bug.
10588         Moved some code to GstPipeline, mostly clocking related.
10589
10590 2005-03-09  Wim Taymans  <wim@fluendo.com>
10591
10592         * configure.ac:
10593         * gst/gst_private.h:
10594         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
10595         (gst_bin_remove_func), (gst_bin_remove),
10596         (gst_bin_get_by_name_recurse_up):
10597         * gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
10598         (gst_clock_id_compare_func), (gst_clock_id_wait),
10599         (gst_clock_id_wait_async), (gst_clock_init),
10600         (gst_clock_adjust_unlocked), (gst_clock_get_time):
10601         * gst/gstelement.h:
10602         * gst/gstinfo.c: (_gst_debug_init):
10603         * gst/gstobject.h:
10604         * gst/gstpad.c: (_gst_pad_default_fixate_foreach),
10605         (gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
10606         * gst/gstpad.h:
10607         Bump version number, we're now 0.9.0
10608         Add future debugging category.
10609         Fix NULL _unref() in _get_by_name_recurse_up
10610         Rearrange gstpad.h.
10611         Update some docs.
10612
10613 2005-03-08  Wim Taymans  <wim@fluendo.com>
10614
10615         * gst/elements/gstaggregator.c: (gst_aggregator_class_init):
10616         * gst/elements/gstfakesink.c: (gst_fakesink_class_init):
10617         * gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
10618         * gst/elements/gstfdsink.c: (gst_fdsink_class_init):
10619         * gst/elements/gstfdsrc.c: (gst_fdsrc_class_init):
10620         * gst/elements/gstfilesink.c: (gst_filesink_class_init):
10621         * gst/elements/gstfilesrc.c: (gst_filesrc_class_init):
10622         * gst/elements/gstidentity.c: (gst_identity_class_init):
10623         * gst/elements/gstmd5sink.c: (gst_md5sink_class_init):
10624         * gst/elements/gstmultifilesrc.c: (gst_multifilesrc_class_init):
10625         * gst/elements/gstshaper.c: (gst_shaper_class_init):
10626         * gst/elements/gststatistics.c: (gst_statistics_class_init):
10627         * gst/elements/gsttee.c: (gst_tee_class_init), (gst_tee_getcaps),
10628         (gst_tee_link):
10629         * gst/gstelement.c: (gst_element_class_init),
10630         (gst_element_base_class_init), (gst_element_init),
10631         (gst_element_get_random_pad), (gst_element_wait_state_change),
10632         (gst_element_change_state), (gst_element_dispose),
10633         (gst_element_finalize), (gst_element_set_loop_function):
10634         * gst/gstelement.h:
10635         * gst/gstqueue.c: (gst_queue_class_init), (gst_queue_link_src):
10636         * gst/gstthread.c: (gst_thread_class_init),
10637         (gst_thread_release_children_locks), (gst_thread_change_state):
10638         * gst/schedulers/gstbasicscheduler.c:
10639         (gst_basic_scheduler_loopfunc_wrapper),
10640         (gst_basic_scheduler_chain_wrapper),
10641         (gst_basic_scheduler_src_wrapper),
10642         (gst_basic_scheduler_remove_element):
10643         * gst/schedulers/gstoptimalscheduler.c: (schedule_group):
10644         Remove threadsafe properties. Fix elements because GObject
10645         complains when installing a property before declaring a
10646         set/get_property handler.
10647         Rearrange gstelement.h file, use STATE macros for state locks.
10648         Free mutexes in the finalize method instead of dispose.
10649
10650 2005-03-08  Wim Taymans  <wim@fluendo.com>
10651
10652         * check/gst/gstobject.c: (START_TEST), (gst_object_suite):
10653         * gst/gstthread.c: (gst_thread_release_children_locks):
10654         Added parentage check.
10655         Fix build og GstThread again.
10656
10657 2005-03-08  Wim Taymans  <wim@fluendo.com>
10658
10659         * docs/design/part-MT-refcounting.txt:
10660         * docs/design/part-conventions.txt:
10661         * docs/design/part-gstobject.txt:
10662         * docs/design/part-relations.txt:
10663         * docs/design/part-standards.txt:
10664         * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
10665         (gst_bin_remove_func), (gst_bin_remove), (gst_bin_iterate_recurse),
10666         (gst_bin_get_by_name), (gst_bin_get_by_interface),
10667         (gst_bin_iterate_all_by_interface):
10668         * gst/gstbuffer.h:
10669         * gst/gstclock.h:
10670         * gst/gstelement.c: (gst_element_class_init),
10671         (gst_element_change_state), (gst_element_set_loop_function):
10672         * gst/gstelement.h:
10673         * gst/gstiterator.c:
10674         * gst/gstobject.c: (gst_object_class_init), (gst_object_ref),
10675         (gst_object_unref), (gst_object_sink), (gst_object_dispose),
10676         (gst_object_dispatch_properties_changed), (gst_object_set_name),
10677         (gst_object_set_parent), (gst_object_unparent),
10678         (gst_object_check_uniqueness):
10679         * gst/gstobject.h:
10680         Docs updates, clean up some headers.
10681
10682 2005-03-07  Wim Taymans  <wim@fluendo.com>
10683
10684         * check/.cvsignore:
10685         * check/Makefile.am:
10686         * check/gst-libs/.cvsignore:
10687         * check/gst-libs/gdp.c: (START_TEST), (gst_object_suite), (main):
10688         * check/gst/.cvsignore:
10689         * check/gst/gstbus.c: (pound_bus_with_messages), (pull_messages),
10690         (START_TEST), (gstbus_suite), (main):
10691         * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite), (main):
10692         * check/gst/gstdata.c: (START_TEST), (thread_ref), (thread_unref),
10693         (gst_data_suite), (main):
10694         * check/gst/gstiterator.c: (make_list_of_ints), (START_TEST),
10695         (add_fold_func), (gstiterator_suite), (main):
10696         * check/gst/gstobject.c: (gst_fake_object_get_type), (START_TEST),
10697         (thread_name_object), (thread_name_object_default),
10698         (gst_object_name_compare), (gst_object_suite), (main):
10699         * check/gst/gstpad.c: (START_TEST), (thread_link_unlink),
10700         (gst_pad_suite), (main):
10701         * check/gstcheck.c: (gst_check_log_message_func),
10702         (gst_check_log_critical_func), (gst_check_init):
10703         * check/gstcheck.h:
10704         * check/pipelines/simple_launch_lines.c: (setup_pipeline),
10705         (run_pipeline), (START_TEST), (simple_launch_lines_suite), (main):
10706         Added checks.
10707
10708 2005-03-07  Wim Taymans  <wim@fluendo.com>
10709
10710         * gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
10711         (gst_list_iterator_next), (gst_list_iterator_resync),
10712         (gst_list_iterator_free), (gst_iterator_new_list),
10713         (gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
10714         (gst_iterator_free), (gst_iterator_push), (filter_next),
10715         (filter_resync), (filter_uninit), (filter_free),
10716         (gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
10717         (gst_iterator_foreach), (find_custom_fold_func),
10718         (gst_iterator_find_custom):
10719         * gst/gstiterator.h:
10720         Added missing files.
10721
10722 2005-03-07  Wim Taymans  <wim@fluendo.com>
10723
10724         * Makefile.am:
10725         * configure.ac:
10726         * docs/design/part-MT-refcounting.txt:
10727         * docs/design/part-conventions.txt:
10728         * docs/design/part-gstobject.txt:
10729         * docs/design/part-relations.txt:
10730         * examples/mixer/mixer.c: (main):
10731         * examples/thread/thread.c: (eos), (main):
10732         * gst/Makefile.am:
10733         * gst/autoplug/gstsearchfuncs.c: (gst_autoplug_caps_intersect):
10734         * gst/autoplug/gstspider.c: (gst_spider_identity_plug),
10735         (gst_spider_plug_from_srcpad):
10736         * gst/autoplug/gstspideridentity.c: (gst_spider_identity_getcaps),
10737         (gst_spider_identity_change_state),
10738         (gst_spider_identity_sink_loop_type_finding):
10739         * gst/elements/gstfakesrc.c: (gst_fakesrc_loop):
10740         * gst/elements/gstidentity.c: (gst_identity_init):
10741         * gst/elements/gsttee.c: (gst_tee_init), (gst_tee_getcaps),
10742         (gst_tee_link), (gst_tee_request_new_pad), (gst_tee_chain):
10743         * gst/elements/gsttypefindelement.c: (free_entry):
10744         * gst/gst.c:
10745         * gst/gst.h:
10746         * gst/gstbin.c: (gst_bin_init), (gst_bin_get_clock_func),
10747         (gst_bin_set_clock_func), (gst_bin_auto_clock),
10748         (gst_bin_set_index), (gst_bin_set_element_sched),
10749         (gst_bin_unset_element_sched), (gst_bin_add_func), (gst_bin_add),
10750         (gst_bin_remove_func), (gst_bin_remove), (iterate_child),
10751         (gst_bin_iterate_elements), (iterate_child_recurse),
10752         (gst_bin_iterate_recurse), (gst_bin_dispose), (compare_name),
10753         (gst_bin_get_by_name), (gst_bin_get_by_name_recurse_up),
10754         (compare_interface), (gst_bin_get_by_interface),
10755         (gst_bin_iterate_all_by_interface), (gst_bin_iterate_func):
10756         * gst/gstbin.h:
10757         * gst/gstbuffer.c: (gst_buffer_get_type), (_gst_buffer_sub_free),
10758         (gst_buffer_default_free), (gst_buffer_default_copy),
10759         (gst_buffer_new), (gst_buffer_get_caps), (gst_buffer_set_caps),
10760         (gst_buffer_create_sub):
10761         * gst/gstbuffer.h:
10762         * gst/gstcaps.c: (gst_caps_get_type), (gst_caps_new_empty),
10763         (_gst_caps_free), (gst_caps_make_writable), (gst_caps_ref),
10764         (gst_caps_unref), (gst_static_caps_get),
10765         (gst_caps_remove_and_get_structure), (gst_caps_append),
10766         (gst_caps_append_structure), (gst_caps_remove_structure),
10767         (gst_caps_copy_nth), (gst_caps_set_simple),
10768         (gst_caps_set_simple_valist), (gst_caps_is_fixed_foreach),
10769         (gst_structure_is_equal_foreach), (gst_caps_is_subset),
10770         (gst_caps_structure_intersect_field), (gst_caps_intersect),
10771         (gst_caps_structure_subtract_field), (gst_caps_subtract),
10772         (gst_caps_normalize_foreach), (gst_caps_compare_structures),
10773         (gst_caps_structure_figure_out_union),
10774         (gst_caps_switch_structures), (gst_caps_do_simplify),
10775         (gst_caps_replace), (gst_caps_from_string),
10776         (gst_caps_copy_conditional):
10777         * gst/gstcaps.h:
10778         * gst/gstclock.c: (gst_clock_entry_new), (gst_clock_id_ref),
10779         (_gst_clock_id_free), (gst_clock_id_unref),
10780         (gst_clock_id_compare_func), (gst_clock_id_wait),
10781         (gst_clock_id_wait_async), (gst_clock_class_init),
10782         (gst_clock_init), (gst_clock_dispose), (gst_clock_adjust_unlocked),
10783         (gst_clock_get_time), (gst_clock_set_time_adjust),
10784         (gst_clock_set_property), (gst_clock_get_property):
10785         * gst/gstclock.h:
10786         * gst/gstcompat.h:
10787         * gst/gstcpu.c: (_gst_cpu_initialize_i386), (gst_cpu_get_flags):
10788         * gst/gstdata.c: (gst_data_is_writable), (gst_data_copy_on_write):
10789         * gst/gstdata.h:
10790         * gst/gstelement.c: (gst_element_class_init), (gst_element_init),
10791         (gst_element_requires_clock), (gst_element_provides_clock),
10792         (gst_element_set_clock), (gst_element_clock_wait),
10793         (gst_element_wait), (gst_element_set_time_delay),
10794         (gst_element_is_indexable), (gst_element_add_pad),
10795         (gst_element_add_ghost_pad), (gst_element_remove_pad),
10796         (pad_compare_name), (gst_element_get_static_pad),
10797         (gst_element_request_pad), (gst_element_get_request_pad),
10798         (gst_element_get_pad), (iterate_pad), (gst_element_iterate_pads),
10799         (gst_element_class_get_pad_template_list),
10800         (gst_element_class_get_pad_template), (gst_element_error_func),
10801         (gst_element_get_random_pad), (gst_element_get_event_masks),
10802         (gst_element_send_event), (gst_element_seek),
10803         (gst_element_get_query_types), (gst_element_query),
10804         (gst_element_get_formats), (gst_element_convert),
10805         (gst_element_is_locked_state), (gst_element_set_locked_state),
10806         (gst_element_sync_state_with_parent), (gst_element_change_state),
10807         (gst_element_finalize), (gst_element_yield),
10808         (gst_element_interrupt), (gst_element_set_scheduler),
10809         (gst_element_get_scheduler), (gst_element_set_loop_function):
10810         * gst/gstelement.h:
10811         * gst/gstevent.h:
10812         * gst/gstformat.c: (_gst_format_initialize), (gst_format_register),
10813         (gst_format_get_by_nick), (gst_format_get_details),
10814         (gst_format_iterate_definitions):
10815         * gst/gstformat.h:
10816         * gst/gstindex.c: (gst_index_gtype_resolver):
10817         * gst/gstinfo.c:
10818         * gst/gstinfo.h:
10819         * gst/gstmemchunk.c: (gst_mem_chunk_alloc), (gst_mem_chunk_alloc0),
10820         (gst_mem_chunk_free):
10821         * gst/gstobject.c: (gst_object_class_init), (gst_object_init),
10822         (gst_object_ref), (gst_object_unref), (gst_object_sink),
10823         (gst_object_replace), (gst_object_dispose), (gst_object_finalize),
10824         (gst_object_dispatch_properties_changed),
10825         (gst_object_set_name_default), (gst_object_set_name),
10826         (gst_object_get_name), (gst_object_set_name_prefix),
10827         (gst_object_get_name_prefix), (gst_object_set_parent),
10828         (gst_object_get_parent), (gst_object_unparent),
10829         (gst_object_check_uniqueness), (gst_object_save_thyself),
10830         (gst_object_restore_thyself), (gst_object_real_restore_thyself),
10831         (gst_object_set_property), (gst_object_get_property),
10832         (gst_object_get_path_string):
10833         * gst/gstobject.h:
10834         * gst/gstpad.c: (gst_pad_dispose), (gst_real_pad_class_init),
10835         (gst_real_pad_init), (gst_real_pad_get_property),
10836         (gst_pad_custom_new), (gst_pad_get_direction),
10837         (gst_pad_set_active), (gst_pad_is_active),
10838         (gst_pad_set_event_function), (gst_pad_is_linked),
10839         (gst_pad_link_free), (gst_pad_link_intersect),
10840         (gst_pad_link_fixate), (gst_pad_set_caps),
10841         (gst_pad_try_set_caps_nonfixed), (gst_pad_set_pad_template),
10842         (gst_pad_get_real_parent), (gst_pad_add_ghost_pad),
10843         (gst_pad_remove_ghost_pad), (_gst_pad_default_fixate_foreach),
10844         (gst_pad_link_unnegotiate), (gst_pad_proxy_fixate),
10845         (gst_pad_get_caps), (gst_pad_peer_get_caps),
10846         (gst_pad_get_pad_template_caps), (gst_pad_get_peer),
10847         (gst_pad_realize), (gst_pad_get_allowed_caps),
10848         (gst_real_pad_dispose), (gst_real_pad_finalize),
10849         (gst_pad_collectv), (gst_pad_collect_valist),
10850         (gst_pad_template_dispose), (gst_pad_template_new),
10851         (gst_pad_get_internal_links):
10852         * gst/gstpad.h:
10853         * gst/gstpipeline.c: (gst_pipeline_dispose),
10854         (gst_pipeline_change_state):
10855         * gst/gstpipeline.h:
10856         * gst/gstplugin.c:
10857         * gst/gstpluginfeature.c: (gst_plugin_feature_get_name),
10858         (gst_plugin_feature_set_rank), (gst_plugin_feature_get_rank):
10859         * gst/gstpluginfeature.h:
10860         * gst/gstprobe.c: (gst_probe_dispatcher_dispatch):
10861         * gst/gstquery.c: (_gst_query_type_initialize),
10862         (gst_query_type_register), (gst_query_type_get_by_nick),
10863         (gst_query_type_get_details), (gst_query_type_iterate_definitions):
10864         * gst/gstquery.h:
10865         * gst/gstqueue.c: (gst_queue_link_sink), (gst_queue_link_src):
10866         * gst/gstscheduler.c: (gst_scheduler_add_element),
10867         (gst_scheduler_factory_create):
10868         * gst/gststructure.c: (gst_structure_set_parent_refcount),
10869         (gst_structure_free), (gst_structure_set_name),
10870         (gst_structure_id_set_value), (gst_structure_set_value),
10871         (gst_structure_set_valist), (gst_structure_remove_field),
10872         (gst_structure_remove_fields),
10873         (gst_structure_remove_fields_valist),
10874         (gst_structure_remove_all_fields), (gst_structure_foreach),
10875         (gst_structure_map_in_place),
10876         (gst_caps_structure_fixate_field_nearest_int),
10877         (gst_caps_structure_fixate_field_nearest_double):
10878         * gst/gststructure.h:
10879         * gst/gstsystemclock.c: (gst_system_clock_class_init),
10880         (gst_system_clock_init), (gst_system_clock_dispose),
10881         (gst_system_clock_async_thread),
10882         (gst_system_clock_id_wait_unlocked), (gst_system_clock_id_wait),
10883         (gst_system_clock_id_wait_async), (gst_system_clock_id_unschedule):
10884         * gst/gstsystemclock.h:
10885         * gst/gsttag.c: (gst_tag_list_add_value_internal),
10886         (gst_tag_list_copy_foreach), (structure_foreach_wrapper):
10887         * gst/gsttaginterface.c:
10888         * gst/gstthread.c: (gst_thread_dispose),
10889         (gst_thread_release_children_locks), (gst_thread_change_state),
10890         (gst_thread_main_loop):
10891         * gst/gsttrashstack.h:
10892         * gst/gsttypefind.c: (gst_type_find_factory_dispose):
10893         * gst/gsttypes.h:
10894         * gst/gstutils.c: (gst_element_get_compatible_pad_template),
10895         (gst_element_request_pad), (gst_element_get_pad_from_template),
10896         (gst_element_request_compatible_pad),
10897         (gst_element_get_compatible_pad_filtered),
10898         (gst_element_get_compatible_pad), (gst_element_state_get_name),
10899         (gst_element_link_pads_filtered), (gst_element_link_filtered),
10900         (gst_element_link_many), (gst_element_link),
10901         (gst_element_link_pads), (gst_element_unlink_pads),
10902         (gst_element_unlink_many), (gst_element_unlink),
10903         (gst_pad_can_link_filtered), (gst_pad_can_link),
10904         (gst_pad_use_fixed_caps), (gst_pad_get_fixed_caps_func),
10905         (gst_object_default_error), (gst_bin_add_many),
10906         (gst_bin_remove_many), (gst_element_populate_std_props),
10907         (gst_element_class_install_std_props), (gst_buffer_merge),
10908         (gst_buffer_stamp), (intersect_caps_func), (gst_pad_proxy_getcaps),
10909         (link_fold_func), (gst_pad_proxy_setcaps):
10910         * gst/gstutils.h:
10911         * gst/gstvalue.c: (gst_value_deserialize_string):
10912         * gst/parse/grammar.y:
10913         * gst/schedulers/gstbasicscheduler.c:
10914         (gst_basic_scheduler_cothreaded_chain),
10915         (gst_basic_scheduler_chain_recursive_add),
10916         (gst_basic_scheduler_pad_link):
10917         * gst/schedulers/gstoptimalscheduler.c:
10918         (get_group_schedule_function),
10919         (gst_opt_scheduler_state_transition),
10920         (gst_opt_scheduler_add_element), (element_get_reachables_func):
10921         * libs/gst/bytestream/bytestream.c:
10922         * libs/gst/dataprotocol/dataprotocol.c:
10923         (gst_dp_header_from_buffer):
10924         * po/nb.po:
10925         * po/ru.po:
10926         * tests/threadstate/threadstate2.c: (eos):
10927         * tools/gst-compprep.c: (main):
10928         * tools/gst-inspect.c: (print_field), (print_element_flag_info),
10929         (print_pad_info), (print_children_info):
10930         * tools/gst-launch.c: (idle_func), (main):
10931         * tools/gst-md5sum.c: (idle_func), (main):
10932         * tools/gst-xmlinspect.c: (print_element_info):
10933         First THREADED backport attempt, focusing on adding locks and
10934         making sure the API is threadsafe. Needs more work. More docs
10935         follow this week.
10936
10937 2005-02-24  Andy Wingo  <wingo@pobox.com>
10938
10939         * tests/bench-complexity.scm:
10940         * tests/complexity.gnuplot: New files, good for running complexity
10941         benchmarks.
10942
10943         * tests/Makefile.am:
10944         * tests/complexity.c: New test, sets up N elements, at each level
10945         teeing into M streams per element. Eeeenteresting.
10946
10947         * tests/mass_elements.gnuplot: gnuplot file for the mass_elements
10948         benchmark. Run as gnuplot mass_elements.gnuplot > foo.ps, after
10949         running bench-mass_elements.scm.
10950
10951         * tests/bench-mass_elements.scm: New script, runs mass_elements
10952         for various numbers of identities, outputting the results to a
10953         file. Requires guile 1.6. Just for testing.
10954
10955 2005-02-23  Thomas Vander Stichele  <thomas at apestaart dot org>
10956
10957         * gst/schedulers/fairscheduler.c:
10958           compile with debug disabled
10959
10960 2005-02-22  Thomas Vander Stichele  <thomas at apestaart dot org>
10961
10962         * configure.ac:
10963           hunting season on 0.9 is now OPEN