| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Rename internal method for consistency.
|
|
|
|
|
| |
We were putting the requested values back into ringbuffer spec, instead of
using the queried values.
|
|
|
|
|
|
| |
A malformed (or simply huge) PNG file can lead to integer overflow in
calculating the size of the output buffer, leading to crashes or buffer
overflows later. Fixes SA35205 security advisory.
|
|
|
|
|
| |
Also, the final fixing up of the headers is expected and not something
we should warn about.
|
|
|
|
|
|
|
|
|
| |
Let's be paranoid and make sure we never pass a number that takes up
more than 36 bits to _set_total_samples_estimate(), since libFLAC
expects all the other bits to be zero, and if this is not the case
neighbouring fields in the global stream info header may get messed
up inadvertently, so that flac -d refuses to decode the stream.
See #584455.
|
|
|
|
|
|
| |
Commit df707c666433a78d3878af6f055698d5756226c4
introduced an obvious bug in the sample length calculation,
using the wrong macro for conversion.
|
|
|
|
|
|
| |
Matching g_malloc() with a g_free() is important when a custom allocator is
installed.
Fixes #583803
|
|
|
|
|
|
|
| |
When "Content-Type" header is "audio/L16", we need to set the caps on the
outgoing buffers so that downstream elements can have means to detect the
stream type and handle it appropriately. Tested with HTTP stream provided
by pulse-audio's http module (git master).
|
| |
|
|
|
|
|
| |
Remove artificial jpeg image limits.
Fixes #583048.
|
|
|
|
|
| |
Occasionally, we get a change callback for an old stream, triggering
the assertion unnecessarily. Just ignore such callbacks.
|
| |
|
|
|
|
|
| |
gst_buffer_replace() will take its own ref, so we still have
to unref the buffer if we don't need it any longer.
|
|
|
|
| |
Fixes compiler warning when compiling with xml stuff in core disabled.
|
|
|
|
|
|
| |
It was previously sending the bogus buffer which was returned from
the bufferalloc (required for reverse negotiation apparently) instead
of the pending buffer.
|
| |
|
|
|
|
|
|
|
|
| |
This allows to set the Referer header among other things by
adding a "extra-headers" property that takes a GstStructure
with field=string pairs.
Fixes bug #581806.
|
| |
|
|
|
|
|
|
|
| |
Store the offset and caps when allocating a buffer during seeking, and then
allocate a new buffer with buffer_alloc before we push it out. This ensures
that in all respects the first buffer decoded during seeking behaves like
all other buffers, including allowing downstream re-negotiation.
|
| |
|
|
|
|
| |
Fixes #579808
|
|
|
|
|
|
| |
JPEG markers may be preceded by additional 0xff. jpegdec should
skip over these, even before the end marker.
See #579808
|
|
|
|
|
|
| |
The libjpeg api says that we need to set the colorspace before we call
_set_defaults(). Indeed, if we don't do that we end up with some very freaky
non-standard quant table and huffman table indexes.
|
| |
|
|
|
|
| |
has been decoded.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Always signal the waiters in the async callbacks. Especially for the volume
callbacks since this might cause deadlocks.
|
|
|
|
| |
tag events
|
|
|
|
|
|
| |
Don't pass a 0 divisor to gst_util_uint64_scale(), or it will complain
in the single image case where fps=0/1 (are we supposed to differentiate
between no fps=still image and fps=0/1=variable rate here btw?)
|
|
|
|
| |
* ext/libpng/gstpngdec.c: Fix size_t vs unsigned int format in error message.
|
| |
|
| |
|
|
|
|
| |
Detected by LLVM's CLang static analyzer
|
| |
|
|
|
|
| |
Don't crash when the timing info is not yet available.
|
|
|
|
|
|
|
|
| |
First we ignore request to fill the ringbuffer which are less then a segment.
The small request where causing stutter.
Then we disable flushing the stream when running against pa 0.9.12 as this
triggers an assertiong in the sound server and terminates it. It does not happen
with 0.9.10 and 0.9.14.
|
|
|
|
|
| |
When the server is disconnected or when we are shut down, make our clock return
an invalid time instead of erroring out.
|
|
|
|
|
| |
Keep bps as gint instead of guint because we will be doing signed math with it
later on and we don't want weird results.
|
|
|
|
|
| |
Don't try to change the stream volume (and other things) when we don't have a
stream yet. Just store the values for later.
|
| |
|
|
|
|
|
|
|
| |
We can use prebuf = 0 to instruct pulse to not pause the stream on underflows.
This way we can remove the underflow callback. We however have to manually
uncork the stream now when we have no available space in the buffer or when we
are writing too far away from the current read_index.
|
| |
|
|
|
|
|
| |
Start filling up the buffer with empty samples when an underflow happens. We
need to do this to keep pulseaudio reporting the right time for us.
|
|
|
|
|
| |
Use the default basesink methods for implementing pull based scheduling, it
works fine for us.
|
| |
|
|
|
|
|
|
|
| |
when we switch streams, the clock will reset to 0. Make sure that the provided
clock doesn't get stuck when this happens by keeping an initial offset. We also
need to make sure that we subtract this offset in samples when writing to the
ringbuffer.
|
|
|
|
|
| |
Derive from BaseAudioSink and implement our custom ringbuffer that maps to the
internal pulseaudio ringbuffer.
|
| |
|