René Stadler
f9274226e8
pulsesink: set desired minreq value to segsize/latency-time
...
If we let the daemon decide freely by passing -1, we end up always getting 20ms.
We want to set this value because in some cases we want to select a higher
latency-time in order to save power.
Fixes #597601
2009-10-14 12:05:14 +02:00
Tim-Philipp Müller
87bd79f4ba
jpegdec: fix bogus warning about discont flag on first buffer
...
The very first buffer should always have the DISCONT flag set, no
need to warn about that. Only warn if we get a DISCONT buffer in
non-packetised mode and we already have some data.
2009-10-13 01:10:59 +01:00
Tim-Philipp Müller
6ae6af9dab
jpegdec: fix crash for unusual vertical chroma subsampling factors
...
Fixes #597351 .
2009-10-13 01:10:59 +01:00
Josep Torra
c581e6f205
jpegdec: fixes warning building in snow leopard
2009-10-10 00:37:08 +02:00
Stefan Kost
f1fe1f52fd
flac: apparently on some platforms a FLAC__uint64!=guint64
2009-10-09 14:37:32 +03:00
Stefan Kost
f41d7e7bd5
build: don't cast, but use the right format specified instead
...
This correct some of the previous macos fixes.
2009-10-09 13:54:24 +03:00
Josep Torra
696e350c7b
dv: fix warnings on macosx
2009-10-09 12:40:47 +02:00
Josep Torra
133ebe76a3
flac: fix warnings on macosx
2009-10-09 12:25:19 +02:00
Josep Torra
6320de853b
annodex: fix warnings in macosx
2009-10-09 12:19:35 +02:00
Stefan Kost
e0cdd879b4
build: fprintf, sprintf, sscanf need stdio.h
2009-10-07 14:03:20 +03:00
René Stadler
15c6175044
pulsesrc: guard fragment size with a lower limit based on latency-time
...
In case that the pulse daemon runs the source device at a relatively low fixed
fragment size compared to the requested latency-time, configure the ring buffer
segsize to the largest integer multiple of the fragment size that is still
smaller than or equal to the requested latency-time.
Fixes bug #597463 .
2009-10-06 20:54:20 +03:00
Stefan Kost
86b8935b07
jpegdec: comment/logging cleanups and more branch guides
2009-10-06 17:46:49 +03:00
René Stadler
ccddf0643d
pulse: rename pa_buffer_attr variables
...
Makes it much easier to see what is going on and is a lot less error prone.
2009-10-02 23:21:02 +03:00
Christian F.K. Schaller
e2623815d1
Update makefile with missing header file
2009-09-30 18:06:07 +01:00
Stefan Kost
b1feeee166
jpegdec: don't leak output buffers on decoding errors
...
The setjmp handles libjpeg error. Free the outputbffer if we don't need it.
2009-09-30 09:19:48 +03:00
Tim-Philipp Müller
477cb58640
jpegdec: fix 'unused variable' compiler warning when compiling with GST_DISABLE_GST_DEBUG
2009-09-29 00:01:59 +01:00
Stefan Kost
69c24fb991
jpeg: handle more libjpeg return values, add some more branch hints
...
Also remove unused size variable in _chain().
2009-09-28 17:25:35 +03:00
Alessandro Decina
195883b30a
Fix compile warnings with gcc 4.0.1.
2009-09-22 15:04:36 +02:00
Stefan Kost
253f43203d
jpegdec: add a G_UNLIKELY and put perf-cat log to code path that copies
2009-09-21 16:07:50 +03:00
Mark Nauwelaerts
50c41acdff
speexdec: allow for unknown varying number of frames per buffer
...
In particular, this caters for RTP payloads with multiple frames
per packet.
2009-09-18 14:46:38 +02:00
Mark Nauwelaerts
35f9efac88
speexdec: use correct sample size in conversions
2009-09-18 14:46:38 +02:00
Mark Nauwelaerts
f4482e4ae3
speexenc: fix buffer time and duration for multiple frames per packet
2009-09-18 14:46:38 +02:00
Sebastian Dröge
317d6e18a2
pulsesrc: Don't dereference NULL pointers
...
pa_stream_get_timing_info() can return NULL.
Fixes bug #595220 .
2009-09-15 10:05:51 +02:00
David Henningsson
bb787f1030
pulsesink: Don't dereference NULL pointers
...
pa_stream_get_timing_info() can return NULL.
Fixes bug #595220 .
2009-09-15 10:05:51 +02:00
Wim Taymans
ccda761562
pulsesink: handle stream events
...
Handle stream events and request a PAUSE/PLAY state change from the application
when we receive a CORK/UNCORK event.
2009-09-14 16:05:30 +02:00
David Schleef
903c79e767
dvdemux: Use values from decoder structure directly
...
Don't store the same values in the GstDvDemux. This
fixes a bug where dvdemux would detect a stream as PAL
instead of NTSC, and silently parse it wrong.
2009-09-13 19:59:45 -07:00
David Schleef
29173242bb
dvdemux: Add code to parse SMPTE time codes
...
Code to convert time codes to/from timestamps and frame numbers.
2009-09-13 13:22:35 -07:00
David Schleef
1b57f19509
dvdemux: Fix detection of new media
...
There are 5 or 6 AAUX source control packs in a frame, and any
of them could have REC_ST cleared, indicating a recording start
point. libdv only checks the first.
2009-09-13 12:34:07 -07:00
Edward Hervey
b1dab0fce1
dvdemux: Set DISCONT flag on buffers when REC_ST flag is set.
...
Also add a few branch prediction macros
2009-09-12 19:26:56 +02:00
Sebastian Dröge
0c50816aaa
pulsesink: Implement GstStreamVolume interface
2009-09-11 16:38:03 +02:00
Sebastian Dröge
7fb6ad6d4c
pulsesink: Implement mute property
2009-09-11 16:38:03 +02:00
Wim Taymans
d4316e74fc
gdkpixbufsink: fix docs refering to send-messages
2009-09-11 13:33:31 +02:00
Wim Taymans
9fb92af2df
pixbufsink: add post-messages property
...
Add post-messages and deprecate send-messages as the former is more
descriptive of what actually happens.
2009-09-11 13:20:06 +02:00
David Schleef
3dc2c2472c
dv1394src: Add a clock based on isochronous cycle counter
...
Partial fix for #169383 .
2009-09-09 18:19:56 -07:00
Wim Taymans
42ee5e22a2
pulsesink: remove ringbuffer reset compensation
...
Remove the code to deal with a ringbuffer reset as this code is now in the base
class.
Bump the -base requirement as we need the new baseaudiosink code to function
properly.
2009-09-09 16:25:06 +02:00
Wim Taymans
75a48e238a
pulsesink: whitespace fixes
2009-09-09 16:24:49 +02:00
Wim Taymans
ca7bec0d65
pulse: small cleanups
...
Add some debug info
Fix the state changes
2009-09-08 19:34:09 +02:00
David Schleef
55d2754098
Remove Ronald Bultje from Authors field
...
Replaced with "GStreamer maintainers
<gstreamer-devel@lists.sourceforge.net>" or just removed,
depending on the number of other authors.
2009-09-05 20:53:10 -07:00
Edward Hervey
65d90baf84
jpegdec: Avoid unnecessary processing until we have a full picture.
...
This is for non-packetized mode, when we know the upstream size in bytes.
2009-09-03 17:40:20 +02:00
Stefan Kost
0541c44add
speexenc: small taglist handling cleanup
...
Don't eventualy leak the list and instead assert (like in other elements).
2009-09-03 14:48:14 +03:00
Stefan Kost
e82e16480d
pulsesink: also guard reseting subscribe callback with ifdefs
...
It is conditionaly set, so do the same when unsetting.
2009-09-02 23:14:20 +03:00
Tim-Philipp Müller
d875e72b02
flactag, wavparse: GstAdapter is not a GstObject
2009-08-31 13:07:53 +01:00
Wim Taymans
abee4f1d64
pulsesink: don't use relative seeks
...
Don't use relative seeks, it's too hard to track where we are after a flush
etc.
fixes #593015
2009-08-25 17:33:04 +02:00
Wim Taymans
08808f7f32
pulsesrc: don't discard the result of _set_caps()
...
Use the result of gst_pad_set_caps() instead of assuming success.
See #590678
2009-08-24 16:22:47 +02:00
Tim-Philipp Müller
68c4019057
smokeenc: don't crash when compiled against libjpeg7
...
Set parameters so that we don't crash with libjpeg7. Based on
Stefan Kost's fix for jpegenc. Fixes #591951 .
2009-08-17 17:08:45 +01:00
Zaheer Merali
8dd9583357
dvdec: set bottom field first on PAL interlaced content, not top field first
...
DV interlaced content is always bottom field first. Fixes #591712 .
2009-08-14 13:34:53 +01:00
Edward Hervey
d522f94f98
dv1394src: Fix element for live usage... which has been broken for 2 years :(
...
This is a live source, therefore:
* Use GST_FORMAT_TIME as the default format
* set_timestamp to True
* properly implement query latency.
This allows expected live usage like : playbin2 uri=dv://
2009-08-10 09:58:34 +02:00
Edward Hervey
3fd4cdcc43
raw1394: Remove unneeded variable
2009-08-10 09:58:34 +02:00
Sebastian Dröge
153ae910a0
wavpack: Use GLib GChecksum instead of our own MD5 implementation
...
This requires GLib 2.16 but that version is already required by core anyway.
2009-08-10 09:54:16 +02:00
Sebastian Dröge
c42f0ad5b6
souphttpsrc: Use SOUP_METHOD_GET instead of "GET" string
...
Fixes bug #590970 .
2009-08-06 21:24:14 +02:00
Wim Taymans
b32ef1d51e
pulsesrc: set the default slave method to skew
...
Set the default slave method to the much better skew algorithm. This is the
default in the new base class but we override this here as well for the
upcomming release.
2009-08-06 13:03:13 +02:00
Tim-Philipp Müller
1425c46e20
pulsesrc: fix compilation with --disable-gst-debug
2009-08-06 10:21:38 +01:00
Jonathan Tellier
dbf4d8a910
pulsesrc: initialize the probe with the server
...
When creating a new probe, pass the server instead of the device string.
fixes #590401
2009-08-03 13:32:12 +02:00
Tim-Philipp Müller
a3c393248a
pulsesink: don't do logic within g_assert() statements
...
Otherwise that code will just be expanded to nothing when compiled
-DG_DISABLE_ASSERT (PS: why is mainloop_start() called in the init
function and not when changing state to READY?)
2009-08-02 11:49:17 +01:00
Tim-Philipp Müller
cee10cb439
flacdec: send newsegment event when operating push-based and unframed
...
For some reason flac doesn't call our metadata callback when we operate
in push mode with unframed input, but that's where we set up the
newsegment event (since that's where we'd get the duration from the
stream info header), so we didn't send a newsegment event at all in this
case. Hack around this by storing a generic newsegment event for now
which will be used if we don't replace it with a better one that
includes the duration.
2009-08-01 17:07:42 +01:00
Tim-Philipp Müller
3cf8790906
flacdec: small cleanups
...
Remove some callback indirections which are no longer needed because
there's only one decoder object type now. Also remove unused variable.
2009-08-01 16:48:36 +01:00
Tim-Philipp Müller
e8badc0686
flacdec: use gst_adapter_copy() to avoid unnecessary buffer merges
...
gst_adapter_peek() will merge buffers as needed, which we can avoid
here since we're doing a memcpy anyway and then flush the copied
data from the adapter right away.
2009-08-01 15:22:49 +01:00
Tim-Philipp Müller
33b686974e
flacdec: repair some broken indenting
2009-08-01 12:30:32 +01:00
Edward Hervey
4e6fcd2345
soup: Use "GET" instead of SOUP_METHOD_GET. Fixes build with libsoup-2.7.*
...
This is due to a quality API change in libsoup 2.7. SOUP_METHOD_* are now
integers and not strings... they could have changed the names.
2009-07-31 18:35:12 +02:00
Stefan Kost
a07a575209
jpeg: use longer macro names to not clash with some stupid windows defines
...
libjpeg headers pull some windows system inlcudes (on windows) that contain a
define for DEFAULT_QUALITY.
2009-07-30 17:57:53 +03:00
Wim Taymans
9c341347ba
pulse: conditionally compile newer stuff
...
configured_sink/source_usec in the timing_info is only since 0.9.11 so
conditionally compile this information.
fixes #590038
2009-07-29 12:13:20 +02:00
Wim Taymans
2d88251d9d
pulsesrc: cleanups
...
Keep track of the paused state of the source and leave the read function when
paused.
don't wait for a latency update when the delay is not yet known but simply
return 0 instead of blocking.
Keep track of the corked state of the stream.
Fix the state changes.
2009-07-28 18:34:15 +02:00
Wim Taymans
19233e9671
pulsesrc: set maxlength always to -1
2009-07-28 18:34:15 +02:00
Wim Taymans
1a89388f97
pulsesrc; cleanups, report real latency
...
Add some more debug info
Avoid some type casts
Report the real latency to the application.
2009-07-28 18:34:15 +02:00
Mark Nauwelaerts
7a89fb0468
jpegdec: when scanning for 0xff marker ends, ensure desired result
...
Otherwise, any non 0xff byte at end of data would be mistaken for
a tag byte, and in case of a frame_len 0 tag subsequently lead to an
infinite loop.
2009-07-28 16:18:38 +02:00
Wim Taymans
2308999849
pulsesink: avoid using ivalid stream indexes
...
when we get an invalid stream index from pulse because we were just starting,
avoid using it for getting and setting the volume.
Fixes #589365
2009-07-27 11:51:39 +02:00
Stefan Kost
23967b03a7
jpeg: make encoder work with libjpeg v7
...
We have to specify do_fancy_downsampling = FALSE in the encoder with did not exist before.
2009-07-24 10:50:13 +03:00
Sebastian Dröge
169283dfc2
flacdec: Implement SEEKING query
...
Fixes bug #589423 .
2009-07-23 12:07:33 +02:00
Colin Guthrie
4efca7b68e
pulsesink: Fix a couple error messages that mentioned incorrect function names.
...
Fixes #589459 .
2009-07-23 10:54:45 +01:00
Tim-Philipp Müller
375976c847
flacdec: fix intermittent FLAC__STREAM_DECODER_ABORTED errors when seeking
...
When seeking in a local flac file (ie. operating pull-based), the decoder
would often just error out after the loop function sees a DECODER_ABORTED
status. This, however, is the read callback's way of telling our loop
function that pull_range failed and streaming should stop, in this case
because of the flush-start event that the seek handler pushed upstream
from the seeking thread. Handle this slightly better by storing the last
flow return from pull_range, so the loop function can evaluate it properly
when it encounters a DECODER_ABORTED and take the right action.
Fixes #578612 .
2009-07-21 19:58:04 +01:00
Stefan Kost
11c93fc1df
jpeg: code cleanups for encoder
...
Remove some disabled code in encoder. Try #if 0'ed code and add comments about
why it is disabled. Move idct-method enum to jpeg.c and use in both encoder and
decoder. Add idct-method property to encoder.
2009-07-21 10:04:36 +03:00
Wim Taymans
b3c55f5ce5
pulsesink: set some values to their defaults
...
Set the minreq and maxlength buffer attributes to -1 to let puleseaudio select a
sensible value.
2009-07-20 19:09:19 +02:00
Wim Taymans
8bfd80e5a2
pulsesink: don't wait for posted message
...
We can't wait for the ENTER/LEAVE messages to be be posted because the base
class sometimes calls the start method with the object lock, which would block
the message posting.
Instead, just assume that the message will be posted soon and continue. We'll
have to fix this in the base class.
2009-07-20 19:07:19 +02:00
Wim Taymans
e914f5254a
pulsesink: use relative seeks
...
Use relative seeks because I was told that absolute seeks don't work.
2009-07-20 19:07:19 +02:00
Sebastian Dröge
9d9d08622b
cairorender: Add support for ARGB/BGRA input
...
Note that videotestsrc outputs 100% transparent video
which will result in white output from cairorender.
2009-07-20 08:08:22 +02:00
Sebastian Dröge
bdb1e59d77
cairorender: Add to the documentation
2009-07-17 13:49:21 +02:00
Sebastian Dröge
7ba6ef6672
cairorender: Return not-negotiated if we have no caps
2009-07-17 13:42:49 +02:00
Sebastian Dröge
52f17631d9
cairorender: Fix caps and colorspace handling
2009-07-17 13:41:19 +02:00
Sebastian Dröge
12fbfabb6a
cairorender: Use correct mimetypes for PDF and SVG
2009-07-17 13:30:02 +02:00
Sebastian Dröge
644e113064
cairorender: Remove pull mode, it only adds complexity but not advantages
2009-07-17 13:24:28 +02:00
Sebastian Dröge
5d0787aa20
cairorender: Fix caps negotiation and cairo surface creation
2009-07-16 21:55:31 +02:00
Sebastian Dröge
28bee12728
cairorender: Correctly set srccaps
2009-07-16 21:42:21 +02:00
Sebastian Dröge
13f23f81e8
cairorender: Move instance/class struct definitions to the header
2009-07-16 21:31:43 +02:00
Sebastian Dröge
0b990f3f6c
cairorender: Add Lutz' copyright to the file header
2009-07-16 21:30:00 +02:00
Lutz Mueller
596f53c84a
cairo: Add cairo-based PDF/PS/SVG encoder element
...
Fixes bug #331420 .
2009-07-16 21:27:45 +02:00
Sebastian Dröge
598e0c8cc6
flacenc: Optionally write a PADDING block
...
The size of the PADDING block is specified by a new
"padding" property.
Fixes bug #588483 .
2009-07-16 20:44:40 +02:00
Sebastian Dröge
226a125056
souphttpsrc: Only assume seekability if the server provides Content-Length
...
Previously seekability way always assumed until the first seek actually
failed. Now we assume that all servers are not seekable unless they provide
a Content-Length header. If a seek fails after that we continue to
assume no seekability. Fixes bug #585576 .
2009-07-16 19:35:44 +02:00
Arnout Vandecappelle
07c454d61e
souphttpsrc: don't try to authenticate if no username/password is set.
2009-07-16 17:14:15 +02:00
Olivier Crête
dbb8a331de
pulsesink: Emit stream-status leave message
...
Fixes #587695
2009-07-14 18:52:15 +02:00
Olivier Crête
b2e9f0a7c9
pulsesink: Emit stream-status enter message
...
Emit stream-status messages for the pulse thread.
Don't use our own GCond for signaling but simply use the pulse mainloop
mechanisms for synchronisation.
See #587695
2009-07-14 18:44:21 +02:00
Wim Taymans
b0643b745a
pulsesink: debug the latency update values
2009-07-14 18:15:59 +02:00
Wim Taymans
ab3bed81a5
pulsesink: add 24bit sample formats
...
Add check for pulseaudio 0.9.15 and enable 24bits samples in that case.
2009-07-14 16:14:34 +02:00
Edward Hervey
f2ba1229ba
flacdec: Don't send empty string tags
2009-07-01 08:40:40 +02:00
Stefan Kost
6d0007372b
pulsesink: include "1.0=100%" in volume and change upper limit
...
Upper volume limmit was 1000. That appear unneceasrily high. It would also cause
sever distortion if accidentialy used. Now its 10 (~ +15db) which is also in
sync with volume and playbin2.
2009-06-30 14:53:25 +03:00
Wim Taymans
ce7a24cbd9
pulse: some more trivial cleanups
2009-06-29 15:39:43 +02:00
Wim Taymans
53e19e71f1
pulse: trivial cleanups
2009-06-29 15:38:49 +02:00
Wim Taymans
1e98580204
pulsesink: clear ringbuffer when asked to
...
Since we map the ringbuffer to the pulseaudio internal ringbuffer, flush the
pulseaudio buffer when we are asked to clear the ringbuffer.
This avoids some leftover audio after a seek.
2009-06-29 15:21:37 +02:00
Stefan Kost
d260a92dce
souphttpsrc: free memory in finalize
...
finalize is called only once. no need to clear pointers there. dispose is for
unreffing.
2009-06-24 17:45:42 +03:00
Edward Hervey
ef02d1da1d
raw1394: sprinkle branch likeliness macros accross the code.
2009-06-24 12:37:38 +02:00
Tim-Philipp Müller
d0056049d3
dvdemux: post container-format tag
...
Also merge the two almost identical _add_*_pad() functions into one.
2009-06-22 10:49:02 +01:00