Commit graph

10212 commits

Author SHA1 Message Date
René Stadler
ae87731de5 pulsesink: prevent race condition causing ref leak
Since commit 8bfd80, gst_pulseringbuffer_stop doesn't wait for the
deferred call to be run before returning. This causes a race when
READY->NULL is executed shortly after, which stops the mainloop. This
leaks the element reference which is passed as userdata for the callback
(introduced in commit 7cf996, bug #614765).

The correct fix is to wait in READY->NULL for all outstanding calls to
be fired (since libpulse doesn't provide a DestroyNotify for the
userdata). We get rid of the reference passing from 7cf996 altogether,
since finalization from the callback would anyways lead to a deadlock.

Re-fixes bug #614765.
2011-07-05 16:36:17 +02:00
René Stadler
f8456e2a1a pulsesink: small cleanup of copy-paste code 2011-07-05 16:36:17 +02:00
René Stadler
3589cee762 pulsesink: remove unused member variable and misleading log message
Wim changed it in commit 8bfd80 so that pa_defer_ran is not read
anywhere.

The log message used to annotate a mainloop_wait call which is gone.
2011-07-05 16:36:17 +02:00
David Schleef
f2c8761a50 goom: Don't answer lantency queries before negotiation 2011-07-04 12:59:50 -07:00
Mark Nauwelaerts
0c25863253 jpegdec: avoid crashing on invalid input without components 2011-07-04 14:32:27 +02:00
Mark Nauwelaerts
b307c74e9e flvmux: pass along segment info to collectpads
... so it can track this and be subsequently used to determine running time etc.
2011-07-04 11:36:48 +02:00
Mark Nauwelaerts
350b9b9d2d flvdemux: indicate raw format in aac caps 2011-07-04 11:36:46 +02:00
David Schleef
f69dcaab58 pulse: Increase ranks to PRIMARY + 10
So that pulsesrc/pulsesink get chosen over other possible PRIMARY
src/sinks by autoaudiosink.  Presumably, if pulse is available, it
is always preferred over another src/sink.

Fixes: #647540.
2011-07-03 19:53:42 -07:00
David Schleef
32aa80cda8 multipartmux: Add \r\n to tail of pushed buffers
Clients such as Firefox require the \r\n after the payload.
2011-07-03 18:27:17 -07:00
Branko Subasic
e385108f84 matroskademux: avoid looping when searching for clusters
Fixes some bugs that results in the demuxer looping when seaching
for clusters in non-finalized files.

https://bugzilla.gnome.org/show_bug.cgi?id=652195
2011-07-01 17:19:40 +01:00
Debarshi Ray
c8619aa0fd matroskaparse: fix reference counting of parse->streamheader
https://bugzilla.gnome.org/show_bug.cgi?id=652286

Signed-off-by: David Schleef <ds@schleef.org>
2011-06-29 23:56:53 -07:00
David Schleef
2f94df8032 jpegenc: Don't round up size of encoded buffers
For some reason, in code dating to 2001, encoded jpeg buffers were
rounded up to multiples of 4 bytes.  With the added bonus that the
extra bytes are unwritten, causing valgrind issues.  Oops.  I can't
think of any reason why JPEG buffers need to be multiples of 4 bytes,
so I removed the padding.  There might be some code somewhere that
depends on this behavior, so if this needs to be reverted, please fix
the valgrind issues.
2011-06-29 23:55:33 -07:00
Mark Nauwelaerts
cc526d2e52 qtmux: free date tag 2011-06-29 12:05:23 +02:00
Jonas Larsson
1912c86946 aacparse: not so greedy minimum frame size
Fixes #653559.
2011-06-28 12:40:27 +02:00
David Schleef
f528f62b53 configure: remove non-pkg-config check for shout
Fixes: 653327
2011-06-25 11:39:23 -07:00
Andoni Morales Alastruey
d9f4c59c49 dv1394src: make the internal clock thread safe
Fixes: #653091.
2011-06-24 12:01:39 -07:00
Miguel Angel Cabrera Moya
977a5eee7a rtpjitterbuffer: return correct type when assertion fails 2011-06-24 11:59:01 +02:00
David Schleef
55cb5c2889 Automatic update of common submodule
From 69b981f to 605cd9a
2011-06-23 11:28:27 -07:00
Arun Raghavan
04786a6d31 pulse: Drop support for PA versions before 0.9.16
This drops support fof PulseAudio versions prior to 0.9.16, which was
released about 1.5 years ago. Testing with very old versions is not
feasible and we don't want to maintain 2 independent code-paths.
2011-06-21 16:47:11 -07:00
Mark Nauwelaerts
3daf1ecc21 rtpmp4adepay: fix output buffer timestamps in case of multiple frames 2011-06-21 15:15:33 +02:00
Olivier Crête
581a30d892 rtpsession: The signal has 5 arguments, not 4 2011-06-20 16:47:36 -04:00
Tim-Philipp Müller
822970901e Bump git version after unplanned 0.10.30 release
Merge branch '0.10.30'

Conflicts:
	configure.ac
	docs/plugins/inspect/plugin-1394.xml
	docs/plugins/inspect/plugin-aasink.xml
	docs/plugins/inspect/plugin-alaw.xml
	docs/plugins/inspect/plugin-alpha.xml
	docs/plugins/inspect/plugin-alphacolor.xml
	docs/plugins/inspect/plugin-annodex.xml
	docs/plugins/inspect/plugin-apetag.xml
	docs/plugins/inspect/plugin-audiofx.xml
	docs/plugins/inspect/plugin-audioparsers.xml
	docs/plugins/inspect/plugin-auparse.xml
	docs/plugins/inspect/plugin-autodetect.xml
	docs/plugins/inspect/plugin-avi.xml
	docs/plugins/inspect/plugin-cacasink.xml
	docs/plugins/inspect/plugin-cairo.xml
	docs/plugins/inspect/plugin-cutter.xml
	docs/plugins/inspect/plugin-debug.xml
	docs/plugins/inspect/plugin-deinterlace.xml
	docs/plugins/inspect/plugin-dv.xml
	docs/plugins/inspect/plugin-efence.xml
	docs/plugins/inspect/plugin-effectv.xml
	docs/plugins/inspect/plugin-equalizer.xml
	docs/plugins/inspect/plugin-esdsink.xml
	docs/plugins/inspect/plugin-flac.xml
	docs/plugins/inspect/plugin-flv.xml
	docs/plugins/inspect/plugin-flxdec.xml
	docs/plugins/inspect/plugin-gconfelements.xml
	docs/plugins/inspect/plugin-gdkpixbuf.xml
	docs/plugins/inspect/plugin-goom.xml
	docs/plugins/inspect/plugin-goom2k1.xml
	docs/plugins/inspect/plugin-gstrtpmanager.xml
	docs/plugins/inspect/plugin-halelements.xml
	docs/plugins/inspect/plugin-icydemux.xml
	docs/plugins/inspect/plugin-id3demux.xml
	docs/plugins/inspect/plugin-imagefreeze.xml
	docs/plugins/inspect/plugin-interleave.xml
	docs/plugins/inspect/plugin-isomp4.xml
	docs/plugins/inspect/plugin-jack.xml
	docs/plugins/inspect/plugin-jpeg.xml
	docs/plugins/inspect/plugin-level.xml
	docs/plugins/inspect/plugin-matroska.xml
	docs/plugins/inspect/plugin-mulaw.xml
	docs/plugins/inspect/plugin-multifile.xml
	docs/plugins/inspect/plugin-multipart.xml
	docs/plugins/inspect/plugin-navigationtest.xml
	docs/plugins/inspect/plugin-oss4.xml
	docs/plugins/inspect/plugin-ossaudio.xml
	docs/plugins/inspect/plugin-png.xml
	docs/plugins/inspect/plugin-pulseaudio.xml
	docs/plugins/inspect/plugin-replaygain.xml
	docs/plugins/inspect/plugin-rtp.xml
	docs/plugins/inspect/plugin-rtsp.xml
	docs/plugins/inspect/plugin-shapewipe.xml
	docs/plugins/inspect/plugin-shout2send.xml
	docs/plugins/inspect/plugin-smpte.xml
	docs/plugins/inspect/plugin-soup.xml
	docs/plugins/inspect/plugin-spectrum.xml
	docs/plugins/inspect/plugin-speex.xml
	docs/plugins/inspect/plugin-taglib.xml
	docs/plugins/inspect/plugin-udp.xml
	docs/plugins/inspect/plugin-video4linux2.xml
	docs/plugins/inspect/plugin-videobox.xml
	docs/plugins/inspect/plugin-videocrop.xml
	docs/plugins/inspect/plugin-videofilter.xml
	docs/plugins/inspect/plugin-videomixer.xml
	docs/plugins/inspect/plugin-wavenc.xml
	docs/plugins/inspect/plugin-wavpack.xml
	docs/plugins/inspect/plugin-wavparse.xml
	docs/plugins/inspect/plugin-ximagesrc.xml
	docs/plugins/inspect/plugin-y4menc.xml
	win32/common/config.h
2011-06-18 13:43:02 +01:00
Tim-Philipp Müller
53ee37b3d2 sunaudio: fix typo in comment 2011-06-18 13:36:06 +01:00
Stefan Kost
6c3e77964a audioecho: fix param flags
If the parameter cannot be changed in paused&playing, it is not controlable. Set
the appropriate mutability flag instead.
2011-06-17 03:07:09 +03:00
Tim-Philipp Müller
673d519898 Release 0.10.30
This is an ad-hoc release that is almost identical to 0.10.29:

 * work around GLib atomic ops API change
 * better handling of malformed buffers in RTP depayloders
 * some minor compilation fixes
2011-06-15 23:57:34 +01:00
Raimo Järvi
2f49eb30b1 udp: Fix compiler warning on mingw-w64
Fixes: #652144.
gstudpnetutils.h:32:0: error: "WINVER" redefined
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:231:0: note: this is the
location of the previous definition
2011-06-15 21:10:24 +01:00
David Schleef
fc3b43ef62 interleave: Work around changes in g_atomic API
See #651514 for details.
2011-06-15 21:10:01 +01:00
Jose Antonio Santos Cadenas
1f6af8a815 rtp: Fix segmentation fault processing payload buffers
This commit checks if the value returned by
gst_rtp_buffer_get_payload_buffer and
gst_rtp_buffer_get_payload_subbuffer is NULL before using it.
2011-06-15 21:08:41 +01:00
Pino Toscano
e4f7411b57 pulse: Define PATH_MAX if it isn't defined
GNU Hurd for example doesn't define it.
2011-06-15 21:07:07 +01:00
Sebastian Dröge
b2f1983560 wavenc: Allow setcaps to be called after a format was negotiated if it's compatible
Otherwise wavenc will fail if upstream decides to set equivalent caps or caps
with additional information later.

Thanks to Alexander Schremmer for finding this bug.
2011-06-15 21:06:49 +01:00
Stefan Kost
b5d5fa2bb9 matroska: add missing stdio include for sscanf 2011-06-14 01:07:57 +03:00
Mark Nauwelaerts
d17d6d74be audioparsers: not so greedy minimum frame size
... which will be determined by parsing anyway, and avoids introducing
redundant additional latency.
2011-06-13 17:06:37 +02:00
Raimo Järvi
4f15c9e30e udp: Fix compiler warning on mingw-w64
Fixes: #652144.
gstudpnetutils.h:32:0: error: "WINVER" redefined
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:231:0: note: this is the
location of the previous definition
2011-06-11 18:02:17 -07:00
Debarshi Ray
9175a903fb matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_chapters

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:54:23 +02:00
Debarshi Ray
05778b85d5 matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_attachments

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:43:12 +02:00
Debarshi Ray
d8a8326d7c matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_attached_file

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:43:04 +02:00
Debarshi Ray
366f064e73 matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_info

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:42:55 +02:00
Debarshi Ray
2d282a6c79 matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_metadata

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:42:46 +02:00
Debarshi Ray
493e197588 matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_metadata_id_tag

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:42:33 +02:00
Debarshi Ray
febfcce0fd matroska: refactor code common to matroskademux and matroskaparse
Move the following function to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_metadata_id_simple_tag

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-06-06 14:41:51 +02:00
Mark Nauwelaerts
785247cfb3 rtspsrc: reset state tracking variable when appropriate
... so we don't end up interrupting an operation that should not be interrupted
based on the indication of a previous interruptable operation.
2011-06-06 12:59:23 +02:00
David Schleef
f6c348430e interleave: Work around changes in g_atomic API
See #651514 for details.
2011-06-04 13:49:52 -07:00
David Schleef
6d8d08eac7 souphttpsink: code cleanup 2011-06-04 13:43:28 -07:00
Debarshi Ray
25e0da562b matroskaparse: Use ARTIST tag instead of AUTHOR for GST_TAG_ARTIST
AUTHOR only existed in an old version of the spec and ARTIST is
the new replacement for this. We are still reading both to still
be compatible with old files.

Fixes bug #644875.
2011-06-04 13:43:27 -07:00
Sebastian Dröge
252c1afcc2 dvdemux: First query the peer duration in the requested format before converting to BYTES
Fixes usage of dvdemux after another demuxer, e.g. mxfdemux.
Fixes bug #650503.
2011-06-02 13:38:30 +02:00
Sebastian Dröge
e376913fc3 souphttpsink: Fix refcounting of the "session" property
Properties should never take ownership of the values
passed to them.
2011-06-02 10:41:52 +02:00
David Schleef
0672232b26 matroskamux: For streaming files, push tags first 2011-06-01 17:20:44 -07:00
David Schleef
3937abf999 soup: Add souphttpsink 2011-06-01 17:19:02 -07:00
Thijs Vermeir
cdc3b20ba9 udpsrc: allow skip-first-bytes of full buffer size 2011-06-01 10:19:31 +02:00
Debarshi Ray
399fc9cd1c matroska: refactor code common to matroskademux and matroskaparse
Move the following functions to matroska-read-common.[ch] from
matroska-demux.c and matroska-parse.c:
    - gst_matroska_{demux,parse}_parse_header

https://bugzilla.gnome.org/show_bug.cgi?id=650877
2011-05-30 17:43:01 +02:00