Commit graph

1280 commits

Author SHA1 Message Date
Erik Walthinsen f987d766e9 added discont enum for events
Original commit message from CVS:
added discont enum for events
2001-09-27 20:11:12 +00:00
Joshua N. Pritikin c786e56b3a add get'er
Original commit message from CVS:
add get'er
2001-09-26 23:14:32 +00:00
Wim Taymans 3fe230abd0 This is the one..
Original commit message from CVS:
This is the one..
2001-09-26 20:46:12 +00:00
Wim Taymans 6bed828c63 Added a doc on the current state of events.
Original commit message from CVS:
Added a doc on the current state of events.
2001-09-26 20:45:29 +00:00
Joshua N. Pritikin 41f7bfd02b fix bugs in gst_buffer_print_live()
Original commit message from CVS:
fix bugs in gst_buffer_print_live()
2001-09-25 22:35:19 +00:00
Wim Taymans 3e00a80989 Make debugging code less CPU consuling when compiled out.
Original commit message from CVS:
Make debugging code less CPU consuling when compiled out.
2001-09-25 22:09:45 +00:00
Joshua N. Pritikin b51de8d6ee 1 cope with running out of data 2 add a few assertions
Original commit message from CVS:
1 cope with running out of data

2 add a few assertions
2001-09-25 04:08:23 +00:00
Joshua N. Pritikin 7f5ec15359 add refcnt assertions
Original commit message from CVS:
add refcnt assertions
2001-09-25 04:07:09 +00:00
Joshua N. Pritikin a3a159e216 fix memory leak in destroy, maybe pad needs help too
Original commit message from CVS:
fix memory leak in destroy, maybe pad needs help too
2001-09-24 19:57:45 +00:00
Erik Walthinsen aabc218a93 fleshed out the _destroy function
Original commit message from CVS:
fleshed out the _destroy function
2001-09-24 19:42:41 +00:00
Joshua N. Pritikin 071646673d 1 Add gtk+-2.0 detection, hopefully correctly.
Original commit message from CVS:
1 Add gtk+-2.0 detection, hopefully correctly.

2 Add comment about the non-use of FOMIT_FRAME_POINTER.
2001-09-24 06:04:06 +00:00
Joshua N. Pritikin 5538c9eed5 make build trickery less invisible
Original commit message from CVS:
make build trickery less invisible
2001-09-24 04:35:47 +00:00
Andy Wingo a7fa31afef - if you call gst_element_request_pad_by_name() with, say "sink4" as the pad name and there is a "sink%d" template, t...
Original commit message from CVS:
- if you call gst_element_request_pad_by_name() with, say "sink4" as the pad name
and there is a "sink%d" template, the request_new_pad function will be called.
this is to allow for, for example, requesting a certain channel on a multichannel
device.
- to this end, request_new_pad now has the following prototype:
GstPad* (*request_new_pad) (GstElement *element, GstPadTemplate *templ, const gchar *name)
if request_pad_by_name was called with a name like "sink%d" (i.e. no parsing
was necessary) then NULL is passed as 'name'.
- all plugins that use request pads have been changed to the new api.

also, some incremental (untested) alsa updates, switching to the bytestream api...
2001-09-23 22:52:32 +00:00
Joshua N. Pritikin 3056a25c58 1 Switch back to GSList.
Original commit message from CVS:
1 Switch back to GSList.

2 Improve gst_buffer_print_live output.
2001-09-23 06:21:54 +00:00
Joshua N. Pritikin b77946f3a0 Oops! Turn off by default.
Original commit message from CVS:
Oops!  Turn off by default.
2001-09-23 06:07:15 +00:00
Joshua N. Pritikin 2cbb2ffd35 1 Add GST_BUFFER_WHERE support to bytestream.
Original commit message from CVS:
1 Add GST_BUFFER_WHERE support to bytestream.

2 Sort live buffers by timestamp.  <g>

3 Rename GST_WHERE macro to GST_WHERE_ARGS.
2001-09-23 06:03:20 +00:00
Joshua N. Pritikin 03587e2155 improve diag output
Original commit message from CVS:
improve diag output
2001-09-23 04:38:00 +00:00
Joshua N. Pritikin 478fff7d78 more doc
Original commit message from CVS:
more doc
2001-09-23 04:24:22 +00:00
Joshua N. Pritikin 4f81b9a5da 1 Add option GST_BUFFER_WHERE (off by default) to track the file:line info where each buffer is created. This is use...
Original commit message from CVS:
1 Add option GST_BUFFER_WHERE (off by default) to track the file:line
info where each buffer is created.  This is useful for tracking
buffer memory leaks.

2 Removed gst_buffer_ref_by_count.

3 Merged the GstBufferCopyFunc fix from HEAD.
2001-09-23 01:47:10 +00:00
Joshua N. Pritikin c1051d5087 fix memory leak
Original commit message from CVS:
fix memory leak
2001-09-23 00:00:19 +00:00
Andy Wingo c4fcc0b947 fixed warning if mixmod-dev is not present
Original commit message from CVS:
fixed warning if mixmod-dev is not present
2001-09-22 20:17:37 +00:00
David I. Lehn aa66e0f801 Remove duplicate g_slist_delete_link func
Original commit message from CVS:
Remove duplicate g_slist_delete_link func
2001-09-22 18:04:10 +00:00
Erik Walthinsen 803cf898ed added EOS event handling to filesrc
Original commit message from CVS:
added EOS event handling to filesrc
2001-09-21 20:02:01 +00:00
Erik Walthinsen 7be0cd55de added g_[s]list_delete_link
Original commit message from CVS:
added g_[s]list_delete_link
2001-09-21 20:01:27 +00:00
Wim Taymans 515b9b770b LGPL headers added.
Original commit message from CVS:
LGPL headers added.
2001-09-21 19:51:02 +00:00
Wim Taymans 73dbfbffe1 Renamed bytestream2 to bytestream again, the previous implementation sucked anyway.
Original commit message from CVS:
Renamed bytestream2 to bytestream again, the previous implementation
sucked anyway.
2001-09-21 19:25:28 +00:00
Wim Taymans f443469504 Added the missing g_slist_delete_link
Original commit message from CVS:
Added the missing g_slist_delete_link
2001-09-21 18:30:58 +00:00
Wim Taymans 4cbc68b7d6 Leave unreffing the buffers up to the plugin doing the _span.
Original commit message from CVS:
Leave unreffing the buffers up to the plugin doing the _span.
2001-09-21 17:31:45 +00:00
Wim Taymans c51ee618f1 Removed anoying debugging info
Original commit message from CVS:
Removed anoying debugging info
2001-09-21 17:28:44 +00:00
Erik Walthinsen ff191d4b7b added peek_bytes, please note comments in gstbstest.c
Original commit message from CVS:
added peek_bytes, please note comments in gstbstest.c
2001-09-21 06:39:22 +00:00
Erik Walthinsen 48c1d9cc8e removed some annoying debugging
Original commit message from CVS:
removed some annoying debugging
2001-09-21 06:26:10 +00:00
Erik Walthinsen 8f3cfa70e6 I'm too lazy to comment this
Original commit message from CVS:
*** empty log message ***
2001-09-21 06:13:42 +00:00
Erik Walthinsen d2ed932d25 Totally new bytestream code, works well for non-spannable buffers, there's some refcounting problem still when used w...
Original commit message from CVS:
Totally new bytestream code, works well for non-spannable buffers, there's
some refcounting problem still when used with filesrc (spannable buffers).
To test, set the bytesperread or blocksize parameter of disksrc or filesrc
(resp), attach it to gstbstest (in this dir) with byte_size and count
parameters set, and pipe to fakesink or something.  gstbstest will exit(1)
after count buffers have been read from the bytestream.

disksrc location= bytesperread= ! gstbstest byte_size= count= ! fakesink
2001-09-20 20:48:49 +00:00
Wim Taymans d1ba7c212d some fixes to _span
Original commit message from CVS:
some fixes to _span
2001-09-17 00:15:46 +00:00
Wim Taymans 2f4462aa0f Added buffer shrinking.
Original commit message from CVS:
Added buffer shrinking.
2001-09-17 00:15:10 +00:00
Wim Taymans ed5460e787 Removed the _bytes_ from the methods because we don't return raw bytes.
Original commit message from CVS:
Removed the _bytes_ from the methods because we don't return raw bytes.
2001-09-16 18:41:14 +00:00
Wim Taymans e8e88392e9 Fixed the _is_span_fast check, NULL pointers are not an option.
Original commit message from CVS:
Fixed the _is_span_fast check, NULL pointers are not an option.
Fixed the memcpy in _span
2001-09-16 18:25:09 +00:00
Wim Taymans 55c2704ced Make bytestream functions return a GstBuffer so that we can do proper refcounting.
Original commit message from CVS:
Make bytestream functions return a GstBuffer so that we can do proper
refcounting.
Added first optimisations.
2001-09-16 18:22:42 +00:00
Wim Taymans 3557396a0a Added the bytestream stuff
Original commit message from CVS:
Added the bytestream stuff
2001-09-16 14:29:46 +00:00
Wim Taymans 6bf73136b2 Completely unoptimized bytestream code, but it works.
Original commit message from CVS:
Completely unoptimized bytestream code, but it works.
2001-09-16 14:29:20 +00:00
Wim Taymans 0735fb06b1 Added the bytestream dir.
Original commit message from CVS:
Added the bytestream dir.
2001-09-16 14:28:54 +00:00
Wim Taymans 3b006eabcf Added a function to get the gstreamer version number at runtime.
Original commit message from CVS:
Added a function to get the gstreamer version number at runtime.
2001-09-13 22:28:06 +00:00
Wim Taymans 2377b5d86d Added a plain copy of the bytstream code found in a52dec. it doesn't compile/work yet.
Original commit message from CVS:
Added a plain copy of the bytstream code found in a52dec.
it doesn't compile/work yet.
2001-09-13 21:56:11 +00:00
Wim Taymans f3f3a8fe7d Clean up some of the mess I made..
Original commit message from CVS:
Clean up some of the mess I made..
2001-09-12 22:53:56 +00:00
Wim Taymans c72c3f6596 Corrected what looks like a typo.
Original commit message from CVS:
Corrected what looks like a typo.
2001-09-12 21:59:34 +00:00
Wim Taymans 37db6764dc Register the event type.
Original commit message from CVS:
Register the event type.
Don't process an event in gstfakesink.c
2001-09-11 19:03:59 +00:00
Erik Walthinsen bd13c9eb8e Sync with my copy before wtay starts hacking...
Original commit message from CVS:
Sync with my copy before wtay starts hacking...
Decided to keep the GstBuffer name through most code because it's really
messy otherwise, and it doesn't really mean much either way.  Saves lots
of stupid casting.  fakesrc num_buffers=N ! fakesink ends with a segfault
on EOS right now, not tracked down yet.
2001-09-11 09:58:16 +00:00
Wim Taymans e435484b29 Set the event type in _new
Original commit message from CVS:
Set the event type in _new
2001-09-10 22:29:09 +00:00
Wim Taymans 792745e8a6 Added the event code to create/register/destroy events from a memchunk.
Original commit message from CVS:
Added the event code to create/register/destroy events from a memchunk.
2001-09-10 22:27:06 +00:00
Wim Taymans e0ad55e8cd Make GstEvent extend GstData and added some macros.
Original commit message from CVS:
Make GstEvent extend GstData and added some macros.
2001-09-10 22:06:04 +00:00