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