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