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