Commit graph

2552 commits

Author SHA1 Message Date
Jan Schmidt
454539a10e dvdspu: Fix PGS window parsing
Fix a problem introduced in the last PGS parsing patch by skipping
the window count byte after reading it.
2009-11-02 02:48:18 +01:00
René Stadler
e5dd78e0ca aiff: fix aiffparse debug category variable name
Fixes missing symbol when compiling with debugging, since this is now in sync
with the plugin_init in aiff.c.
2009-11-01 20:44:44 +02:00
René Stadler
a5f72046af aiff: init plugin debug category
Fixes assertion (or unused variable warning with DISABLE_NLS).
2009-11-01 20:41:03 +02:00
Tim-Philipp Müller
decd2acece aiff: add aiff elements to docs 2009-10-31 19:55:26 +00:00
Tim-Philipp Müller
57cce4754c aiff: gratuitious clean-ups: canonicalise function names, structs and defines 2009-10-31 19:37:08 +00:00
Tim-Philipp Müller
d65d288844 aiff: enable new aiff muxer
Fixes #598763 even more.
2009-10-31 17:51:19 +00:00
Robert Swain
20f4a1afd9 aiff: add basic AIFF muxer
Fixes #598763.
2009-10-31 17:49:36 +00:00
Tim-Philipp Müller
8246f755cf aiff: remove unused includes and fix flags order in Makefile.am
Also remove GST_PLUGINS_BASE_LIBS from LIBADD since we don't
need to link against any of the -base libs (we just use a define
from the gstaudio headers).
2009-10-31 17:25:15 +00:00
Tim-Philipp Müller
8a1b22836f aiff: rename 'aiffparse' plugin to 'aiff' 2009-10-31 17:22:25 +00:00
Olivier Crête
8d90ad76c9 rtpmux: Don't ignore requested pad name 2009-10-30 19:08:14 +00:00
Jan Schmidt
91499fd9a7 mpegtsdemux: Don't send new-segment with start time == -1
When sending new-segment to a stream, ensure that there is either a valid
PCR, or else wait until there's a PTS on the stream (dropping packets if
needed) in order to avoid generating an invlaid new-segments event.

https://bugzilla.gnome.org/show_bug.cgi?id=595161
2009-10-29 10:53:10 +00:00
Michael Smith
29fe6205ca id3mux: glib doesn't reliably null-terminate wide-character encodings in
g_convert, so write the null-terminator separately and explicitly.
2009-10-27 14:32:30 -07:00
Thiago Santos
c3aaf2a391 asfmux: fix tag writing bug
g_convert seems to add a single null terminating byte to
the end of the string, even when the output is UTF16, we
force the second 0 byte when copying to the output buffer.
This issue was causing random crashes because it was
assumed that the string resulting from g_convert had
2 extra bytes, but it has only one.
2009-10-27 16:39:56 -03:00
Jan Schmidt
32ebb79f0b autoconvert: Support installing identity as the initial child
Add the 'initial-identity' property, which inserts identity for
at startup for event passing, and replaces it with a new child
when the first buffer (and caps) actually arrives.

https://bugzilla.gnome.org/show_bug.cgi?id=599469
2009-10-27 12:23:24 +00:00
Jan Schmidt
55a3f6a08c autoconvert: Cache incoming new segment events and push to children.
Cache incoming new-segment info.

When installing a child element, inform it of the current segment info.

https://bugzilla.gnome.org/show_bug.cgi?id=599469
2009-10-27 12:23:24 +00:00
Jan Schmidt
ee8b143e95 autoconvert: Add some debug in factory caps intersection 2009-10-27 12:23:23 +00:00
Jan Schmidt
77e017143e autoconvert: Simple fixes.
Free the plugin feature list on dispose.
Output a debug message when downstream returns a fatal flow result
Fix awkward wording in a debug warning.
2009-10-27 12:23:23 +00:00
Jan Schmidt
de829eb7d0 autoconvert: Gratuitously move GST_OBJECT_LOCK into a macro
Create GST_AUTOCONVERT_LOCK/UNLOCK macros that (for now) just call
GST_OBJECT_LOCK.
2009-10-27 12:23:22 +00:00
Thiago Santos
1069712438 mpegvideoparse: check width/height range
Checks if the width/height that are to be set on src pad caps
are within valid range of [16,4096]
2009-10-26 09:04:49 -03:00
Thiago Santos
8db2821791 gppmux: Add support for 3gr6
Keep track of the chunk durations to be able to add 3gr6
brand if it is a faststart file and the longest chunk is
smaller than a sec. Implemented according to 3gpp
TS 26.244 v6.4.0 (2005-09)

Fixes #584361
2009-10-26 08:59:46 -03:00
Thiago Santos
2e9e240285 qtmux: Only push ftyp later (in faststart mode)
In faststart mode, there is no need to send the ftyp
right at the beginning of the stream. Waiting and sending it
only later (when the moov atom is ready to be sent) provides
us with more information about the stream and we can better
select the compatible brands.
2009-10-26 08:59:45 -03:00
Thiago Santos
5d63c26b08 qtmux: Improve error message
Improve error message when we can't get or estimate the
timestamp/duration of a buffer
2009-10-26 08:59:45 -03:00
Wim Taymans
ca6e2f1fa3 camerabin: fix build 2009-10-24 16:31:26 -04:00
Stefan Kost
8c0203ec36 camerabin: remove abbreviations from the property names. Fixes #573370 (partialy)
Also rename their use in tests and examples.
2009-10-24 15:14:26 +03:00
Stefan Kost
e1dccb6fd7 build: use gst-glib-gen.mak to fix the glib build rules.
The build rules in glib-gen.mak were using pattern rules in a non save way.
2009-10-24 15:14:26 +03:00
Stefan Kost
b890ecd83c camerabin: code cleanups
Align element initialisation. This should be re-thought, g_object_new zeros things already.
Harmonize the element getters for the src/sinks to return what we actualy use.
2009-10-24 15:14:26 +03:00
Tommi Myöhänen
fe70981023 camerabin: implement video preview creation
Completes preview creation mechanism to be able to provide a preview
image for video clips too.
2009-10-24 15:14:25 +03:00
Stefan Kost
52e314ef81 camerabin: set camerabin default sources/sinks like in playbin2. Fixes #574434
This uses same approach like in playbin, namely checking for user defined
element, auto{audio,video}{sink,src} and finally DEFAULT_{AUDIO,VIDEO}{SRC,SINK}
defines from config.h.
2009-10-24 15:14:25 +03:00
Tim-Philipp Müller
79fe732785 mpegpsmux: some minor build fixes
CLFAGS -> CFLAGS, and fix order of variables while we're at it.
2009-10-22 11:55:41 +01:00
Jan Schmidt
251afdee91 autoconvert: Take the object lock fewer times
When starting up and creating the list of element factories, only
take the object lock twice instead of 3 times.
2009-10-22 11:41:08 +01:00
Jan Schmidt
997f180b85 autoconvert: Don't hold the object lock when pushing
When pushing out cached events, don't hold the object lock. Avoids
deadlocks starting up DVD playback.
2009-10-22 11:41:07 +01:00
Michael Smith
2caac8d175 id3tag: actually write image to APIC tag. 2009-10-16 14:37:02 -07:00
Jan Schmidt
0fcf8001b1 autoconvert: Use gst_pad_peer_accept_caps instead of gst_pad_set_caps.
gst_pad_set_caps on the internal source pad always succeeds, because
caps propagate to the peer with buffers, not immediately. Using
gst_pad_peer_accept_caps properly checks whether the actual
sub-element can accept caps when they change.

https://bugzilla.gnome.org/show_bug.cgi?id=575568
2009-10-16 11:09:15 +01:00
Josep Torra
66b1cc9346 speed: fix warnings in macosx snow leopard 2009-10-11 13:13:56 +02:00
Josep Torra
fc0677a5a1 mpegvideoparse: fix warning in macosx snow leopard 2009-10-11 13:07:19 +02:00
Josep Torra
3fedf9e9a5 mpegdemux: fix warnings in macosx snow leopard 2009-10-11 12:56:29 +02:00
Josep Torra
093006d432 dtmf: fix warnings in macosx snow leopard 2009-10-11 11:35:23 +02:00
Josep Torra
dac26cb18f amrparse: fix warnings in macosx snow leopard 2009-10-11 11:27:08 +02:00
Josep Torra
e1a98f3454 aacparse: fix warnings in macosx snow leopard 2009-10-11 11:22:11 +02:00
Sebastian Dröge
3b32d37dd4 assrender/dvdspu: Increase ranks to PRIMARY 2009-10-09 13:18:31 +02:00
Sebastian Dröge
f50de89720 dvdspu: Include SubPicture in the classification 2009-10-09 09:21:06 +02:00
Stefan Kost
b7b8b7f407 build: fprintf, sprintf, sscanf need stdio.h 2009-10-07 15:26:12 +03:00
Sebastian Pölsterl
bf3cf014ab mpegtsparse: Ignore emphasis on/off bytes, and do fallback string encoding.
For fallback, try ISO 8859-9 encoding if ISO 6637 failed.
Add more debug calls.
2009-10-06 17:46:36 +01:00
Michael Smith
196acecc04 id3mux: Write UTF-16 byte order marker correctly. 2009-10-05 11:15:41 -07:00
Stefan Kost
2390d3a31c build: add missing stdlib include to fix the build 2009-10-02 19:12:32 +03:00
Alessandro Decina
8917a706da Fix a compiler warning. 2009-10-02 12:07:32 +02:00
Lasse Laukkanen
a0a4032ce8 camerabin: fix deadlock when error occurs at video recording startup 2009-10-01 18:06:55 +03:00
Tommi Myöhänen
0d48f73532 camerabin: handle preview-caps only in image mode and only when they change
This prevents camerabin to create preview pipeline every time when
application re-sets the same caps again.
2009-10-01 18:06:55 +03:00
Tommi Myöhänen
99f1f4510a camerabin: don't send multiple EOS events to video pipeline 2009-10-01 18:06:54 +03:00
Tommi Myöhänen
eb648817a4 camerabin: fix scene mode setting
Camerabin caches photography settings, but it didn't take into account
that scene mode setting may change other settings as well. So, config
needs to be read back from device after scene mode is set.
2009-10-01 18:06:54 +03:00
Tommi Myöhänen
dc267be4f7 camerabin: allow mode parameter setting in NULL state 2009-10-01 18:06:54 +03:00
Tommi Myöhänen
dacdd5d6c9 camerabin: allow capture resolution to be set in NULL state 2009-10-01 18:06:54 +03:00
Tommi Myöhänen
0f2be803b4 camerabin: fix image queue parameter setting
Camerabin incorrectly used G_GUINT64_CONSTANT macro for setting
"max-size-buffers" and "max-size-bytes" properties in image queue,
even when they aren't 64bit integers.
2009-10-01 18:06:53 +03:00
Tommi Myöhänen
3f90a4acfa camerabin: fix warning with g_object_get and join separate g_object_sets into one 2009-10-01 18:06:53 +03:00
Tommi Myöhänen
b2fc088c84 camerabin: reset active-pad in output-selector after READY state
Camerabin sets itself to READY state during resolution change. This
operation makes output-selector to forget its currently active pad,
so it must be set again after state change.
2009-10-01 18:06:53 +03:00
Lasse Laukkanen
7b62e11412 camerabin: don't reset capsfilters or zoom if error occurs
If an error occurs, application should set pipeline to NULL, and updating
zoom can actually block message handling if video device driver has failed
and video src element supports zooming using photography interface and S_CROP.
2009-10-01 18:06:53 +03:00
René Stadler
350a805b67 videomeasure: link with libm 2009-10-01 17:40:28 +03:00
Руслан Ижбулатов
05e059c624 Take offset gaps into account.
Prevents measurecollector from crashing when frame numbers are not consecutive.

Fixes bug #596285.
2009-09-30 18:51:55 +02:00
Marc-André Lureau
1adfafbe2c qtmux: fix flags_as_uint to flags[] 2009-09-30 16:53:20 +02:00
Jan Schmidt
25837289c4 dvdspu: Improve PGS parsing
Improve (slightly) the interpretation of PGS set-window blocks
to avoid printing warnings about unused bytes when there are multiple
window definitions.
2009-09-28 10:32:02 +01:00
Jan Schmidt
f248986ba4 dvdspu: Fix rendering and add guards
Fix the rendering when we hit the right hand side of the display
area, by resetting to the correct X coordinate, and add some more
guards against bad PGS data.
2009-09-28 10:32:02 +01:00
René Stadler
c45cc31c7d videosignal: change pattern data type to uint64, add property and message field
Keeps the old uint typed value support for compatibility.
2009-09-26 19:11:09 +03:00
René Stadler
b24d581c78 videosignal: allow pattern-count property to be 0 2009-09-26 19:11:09 +03:00
René Stadler
36ae3ad844 videosignal: add support for packed YUV formats 2009-09-26 19:11:09 +03:00
René Stadler
d171d713f3 videosignal: add support for all planar YUV formats, using gstvideo 2009-09-26 19:11:09 +03:00
René Stadler
5b87b537be videosignal: add bound checks 2009-09-26 19:11:09 +03:00
René Stadler
53defab4b2 videosignal: remove unused macros 2009-09-26 19:11:09 +03:00
Mark Nauwelaerts
c36e5950ba baseparse: sync baseparse change 2009-09-25 17:04:02 +02:00
Mark Nauwelaerts
6c9a9d3304 aacparse: forego (bogus) parsing of already parsed (raw) input 2009-09-25 17:04:00 +02:00
Sebastian Dröge
338f58e573 inputselector: Use new single iterator for the internally linked pads
This fixes a deadlock and removes some useless code.
2009-09-25 11:08:02 +02:00
Alessandro Decina
a17393fd34 Fix warnings with gcc 4.0.1. 2009-09-23 12:34:47 +02:00
Lutz Mueller
a744f8136b pnm: Handle ASCII encoded PNM data that is split over multiple buffers
Also:
- unref buffers after gst_buffer_span
- fix scanning of header if header data is split over several buffers

Fixes bug #595700.
2009-09-22 08:13:08 +02:00
Edward Hervey
4ceb3c5678 mpegtsparse: Specify that psi table is static const.
This avoids re-allocating it every single time we go into it.
Roughly 10% performance boost in overall tsparse processing time.
2009-09-21 12:13:03 +02:00
Zaheer Abbas Merali
bf34bdd3ab Revert "mpegtsparse: use fixed size array rather than dynamically allocating"
This reverts commit ae75b6f366.
2009-09-20 17:53:24 +01:00
Zaheer Abbas Merali
ae75b6f366 mpegtsparse: use fixed size array rather than dynamically allocating 2009-09-20 15:32:14 +01:00
Zaheer Abbas Merali
f9c4b3cce9 mpegtsparse: replace streams hashtable with an array of streams 2009-09-20 15:23:44 +01:00
Zaheer Abbas Merali
309eaafb04 mpegtsparse: unref caps on dispose, reset packet size on _reset 2009-09-20 14:12:59 +01:00
Zaheer Abbas Merali
ec100c87c7 mpegtsparse: make sure packetsize is set on caps of buffers 2009-09-20 13:25:53 +01:00
Zaheer Abbas Merali
bdf11016fa mpegtsparse: detect packetsize and don't just assume 188 bytes. 2009-09-20 13:25:34 +01:00
Edward Hervey
314e2dabd5 mpegtsparse: Don't use GstIterator, do change detection ourselves.
Using a GstIterator is slow because we have to create/destroy that
iterator every single time.
We just do the threadsafe cookie check and list iteration ourselves.
2009-09-19 12:49:47 +02:00
Edward Hervey
c224da54e4 mpegtsparse: Avoid type-checking casts in tight loops 2009-09-19 12:45:39 +02:00
Edward Hervey
8b981fba5c mpegtspacketizer: Make next_packet() return an enum.
This avoids calling an extra gst_adapter_available() in a tight loop.
2009-09-19 12:45:39 +02:00
Edward Hervey
bdc513b31e mpegtsparse: More branch prediction macros 2009-09-19 12:45:39 +02:00
Edward Hervey
879e00b969 mpegtspacketizer: Spread branch prediction macros 2009-09-19 12:45:39 +02:00
Edward Hervey
fcc4f8388c mpegtsparse/mpegtspacketizer: Register and use GQuark for structures. 2009-09-19 12:41:34 +02:00
Edward Hervey
d88af539f9 mpegtspacketizer: Initialize debugging in _get_type
There's no need for an extra function since all debuggin will require
a MpegTSPacketizer which means that the GType will be created, therefore
move the debug category initialization there.
2009-09-19 12:41:27 +02:00
Edward Hervey
56b71d6a48 mpegtspacketizer: memset structure instead of individually setting fields to 0 2009-09-19 12:32:21 +02:00
Edward Hervey
69aab98702 mpegtspacketizer: Remove g_return_if_fail
It's overkill for code only used by one element.
2009-09-19 12:32:17 +02:00
Edward Hervey
0ac7e16066 mpegtspacketizer/parse: Don't use gst_structure_to_string() for debugging.
There's GST_PTR_FORMAT for that, and too bad for the systems that don't have
support for that. It just costs too much cpu.
2009-09-19 12:32:10 +02:00
Edward Hervey
0daedae52f gst: Remove dead mpegtsparse directory.
This was seriously confusing. Also, the code is in gst/mpegdemux/
2009-09-19 12:31:52 +02:00
David Schleef
8c856cfb5a videomeasure: fix line endings 2009-09-18 19:11:19 -07:00
David Schleef
923a7e5256 videomeasure: fix distcheck 2009-09-18 19:11:19 -07:00
David Schleef
2506c3567c mpegtsdemux: Set DISCONT on buffers 2009-09-17 17:03:40 -07:00
Lutz Mueller
a4e438d193 pnm: Add ASCII decoding support
...and make the ASCII output of the encoder a bit more pretty.

Fixes bug #595409.
2009-09-17 09:39:10 +02:00
Lutz Mueller
f270259cc8 pnm: Support ASCII format for encoding and handle unsupported formats better in the decoder
Fixes bug #595215.
2009-09-16 08:23:37 +02:00
Jan Schmidt
50d08ce732 mpegdemux: Handle base_time when sending segment updates.
Don't send bogus new segment update events when the stream doesn't
start at 0. Fixes broken seeking in some files.

Fixes: #594812
2009-09-15 23:36:24 +01:00
Zaheer Abbas Merali
cb9ff89929 mpegtsdemux, mpegtsparse: max section length is 4093 not 1021. 2009-09-15 14:35:15 +01:00
Zaheer Abbas Merali
712ee57190 mpegtsdemux: add pad for DVB Subtitling pads 2009-09-15 14:35:15 +01:00
Sebastian Dröge
5b5ff07c28 pnm: Use correct rowstride for 8 bit grayscale too 2009-09-13 19:39:59 +02:00
Sebastian Dröge
f09b1adf70 pnm: Correctly convert from/to GStreamer rowstride 2009-09-13 19:33:57 +02:00