Tim-Philipp Müller [Tue, 16 Mar 2010 17:56:13 +0000 (17:56 +0000)]
gst: use #if GLIB_CHECK_VERSION instead of #ifndef GLIBMACRO
for better greppability at the time we bump GLib version requirements.
Edward Hervey [Sun, 14 Mar 2010 10:47:23 +0000 (11:47 +0100)]
typefind: deactivate pad if we can't get length or it's a length of zero.
Fixes issues when re-using typefind after a file of length zero.
Thiago Santos [Tue, 16 Mar 2010 13:32:12 +0000 (10:32 -0300)]
basetransform: Accept non-fixed caps suggestions
When doing pad_allocs, use non-fixed caps suggestions and
try to fixate them before using. This makes possible to
have suggested buffer size with 0 in basetransform just
to signal upstream a renegotiation is needed
Fixes #576234
Fixes #609046
Wim Taymans [Tue, 16 Mar 2010 09:40:40 +0000 (10:40 +0100)]
docs: merge QoS message fields
There was already a section about QoS messages that is now merged with the new
information.
Stefan Kost [Tue, 16 Mar 2010 08:44:01 +0000 (10:44 +0200)]
pwg: mention how to build after using the project stamp
Stefan Kost [Tue, 16 Mar 2010 07:56:41 +0000 (09:56 +0200)]
task: snprintf needs to include "stdio.h"
Wim Taymans [Mon, 15 Mar 2010 17:48:14 +0000 (18:48 +0100)]
docs: update QOS docs to include QOS messages
Add some docs about the values needed for a QoS message and some use
cases.
See #322947
Wim Taymans [Mon, 15 Mar 2010 16:07:59 +0000 (17:07 +0100)]
task: use bionic/libc friendly arguments to prctl
prctl is supposed to take 5 arguments. It used to work with 2 arguments on some
versions of libc because it is defined as a varags function there.
See #611911
Wim Taymans [Mon, 15 Mar 2010 14:07:35 +0000 (15:07 +0100)]
task: update docs.
Sebastian Dröge [Mon, 15 Mar 2010 13:44:51 +0000 (14:44 +0100)]
taglist: Work around gtk-doc problem
Sebastian Dröge [Mon, 15 Mar 2010 13:44:16 +0000 (14:44 +0100)]
bytewriter: Use correct gtk-doc workaround
Sebastian Dröge [Mon, 15 Mar 2010 13:05:35 +0000 (14:05 +0100)]
utils: Handle iterator resyncs in gst_pad_proxy_setcaps()
Fixes bug #612881.
Wim Taymans [Mon, 15 Mar 2010 13:48:19 +0000 (14:48 +0100)]
task: configure the object name as thread name
When we have prctl available, use it to set the configured object name as the
thread name for better debugging.
Based on patch by Robert Swain.
Wim Taymans [Mon, 15 Mar 2010 12:48:30 +0000 (13:48 +0100)]
pad: set a good name on the task of the pad
Use the element:pad names to configure a good name for the pad task.
Wim Taymans [Mon, 15 Mar 2010 11:13:55 +0000 (12:13 +0100)]
task: retab
Stefan Kost [Mon, 15 Mar 2010 08:26:18 +0000 (10:26 +0200)]
logging: remove extra newline
Stefan Kost [Thu, 4 Mar 2010 21:36:50 +0000 (23:36 +0200)]
bus: turn g_return_if_fail into g_assert.
This either must never happen (which makes sense in this case) and thus should
use assert() or we should use a traditional if (poll_data->message) return;
to avoid differnet behaviour of intenal api when compiling with
G_DISABLE_CHECKS.
Stefan Kost [Wed, 3 Mar 2010 21:37:01 +0000 (23:37 +0200)]
caps: move the check to the public api.
This avoids creating empty caps and destroying them in the case of an error. We
also avoid double checking in other code path where we call the internal api.
Stefan Kost [Wed, 3 Mar 2010 21:34:58 +0000 (23:34 +0200)]
caps: this is internal API where we need to ensure !NULL higher up
Stefan Kost [Wed, 3 Mar 2010 19:50:21 +0000 (21:50 +0200)]
gst: this is an internal function where we already ensure !NULL when calling
Stefan Kost [Fri, 26 Feb 2010 07:29:23 +0000 (09:29 +0200)]
debugutils: fix case of pad flag
Due to a typo the code was always showing the flag as 's' (lower case).
Fixes #611075
Stefan Kost [Tue, 23 Feb 2010 21:50:36 +0000 (23:50 +0200)]
debug: add pretty printer for events
Adder is using GST_PTR_FORMAT for events already, so we might actualy
implement this and print out some useful info.
Benjamin Otte [Sat, 13 Mar 2010 10:03:59 +0000 (11:03 +0100)]
Add some 0.11 FIXMEs for GstPluginInitFunc
See
8fe63000de31bb2bcf346d59230dea06117997cd for why having a TRUE/FALSE
return value is a bad idea.
I've scanned a few plugins and they generally get it wrong and aren't
unloadable when they return FALSE.
Tim-Philipp Müller [Fri, 12 Mar 2010 19:07:22 +0000 (19:07 +0000)]
po: update for new strings
Leo Singer [Fri, 12 Mar 2010 19:05:16 +0000 (19:05 +0000)]
gstinfo: fix compilation error if HAVE_REGISTER_PRINTF_SPECIFIER is undefined
Use #if HAVE_FOO instead of #ifdef HAVE_FOO.
Fixes #612733.
Benjamin Otte [Fri, 12 Mar 2010 15:42:47 +0000 (16:42 +0100)]
plugins: Do not ever unload a plugin after calling into it
This is what can happen in a plugin_init function:
- An element based on GstBaseSink is registered
- Other elements fail to register
- The plugin_init function returns FALSE
Now if this the plugin is the first plugin to link against
libgstbase.so, it will have caused libgstbase.so to be loaded and static
strings from that library will have been added to gobject while
registering GstBaseSink.
So unloading the plugin will cause those strings to go stale and the
next plugin using GstBaseSink will crash. So we must not unload modules
after calling into them ever.
https://bugzilla.redhat.com/show_bug.cgi?id=572800
Sebastian Dröge [Fri, 12 Mar 2010 14:36:38 +0000 (15:36 +0100)]
interpolationcontrolsource: Don't pass NULL to the GSequence API
Robert Swain [Fri, 12 Mar 2010 13:33:00 +0000 (13:33 +0000)]
git-update: Fix error return value and make the script exit on errors
Newer versions of BASH (4.x?) seem to dislike using -1 for a return. Even
though it's documented as being signed, BASH complains about it, so use
255 instead.
Edward Hervey [Fri, 12 Mar 2010 12:54:29 +0000 (13:54 +0100)]
Automatic update of common submodule
From e272f71 to 55cd514
Edward Hervey [Wed, 17 Feb 2010 12:02:43 +0000 (13:02 +0100)]
gst: Use G_VALUE_COLLECT_INIT if available
This brings total call speedups between 5% and 25%.
gst_caps_set_simple_valist: +5%
gst_structure_set_valist: + 10%
gst_structure_id_set_valist: +25%
gst_tag_list_add_valist: +5%
Measured using valgrind when run over the discovery of 200 media files.
Fixes #610256
Benjamin Otte [Thu, 11 Mar 2010 19:29:29 +0000 (20:29 +0100)]
win32: Fix build failures of tests
Thiago Santos [Tue, 9 Mar 2010 23:38:47 +0000 (20:38 -0300)]
tags: Adds new geo location tags
Adds new tags GST_TAG_GEO_LOCATION_COUNTRY,
GST_TAG_GEO_LOCATION_CITY and GST_TAG_GEO_LOCATION_SUBLOCATION.
API: GST_TAG_GEO_LOCATION_COUNTRY
API: GST_TAG_GEO_LOCATION_CITY
API: GST_TAG_GEO_LOCATION_SUBLOCATION
Fixes #612410
Benjamin Otte [Thu, 11 Mar 2010 17:36:32 +0000 (18:36 +0100)]
win32: Add prototype for DllMain()
Edward Hervey [Thu, 11 Mar 2010 10:46:09 +0000 (11:46 +0100)]
Update .po files
Edward Hervey [Mon, 28 Dec 2009 16:25:20 +0000 (17:25 +0100)]
gstreamer: remove unneeded casts
G_PARAM_SPEC_VALUE_TYPE does an expensive type check, whereas the
value_type field is a public field, so we can just use it directly.
Benjamin Otte [Thu, 11 Mar 2010 10:39:40 +0000 (11:39 +0100)]
Remove -Winline flag again
It triggers for a lot of GStreamer API (even though those triggers are
wrong most of the time).
I missed it because it only triggers with -O2, and I was using -O0.
Benjamin Otte [Thu, 11 Mar 2010 10:20:35 +0000 (11:20 +0100)]
Automatic update of common submodule
From df8a7c8 to e272f71
Benjamin Otte [Thu, 11 Mar 2010 10:10:44 +0000 (11:10 +0100)]
Add a bunch more warning flags to configure
None of these flags cause warnings anymore, so no fixes necessary.
The flags are:
-Wformat-nonliteral
-Wformat-security
-Wold-style-definition
-Wcast-align
-Winline
-Winit-self
-Wmissing-include-dirs
-Waddress
-Waggregate-return
-Wno-multichar
-Wnested-externs
Benjamin Otte [Tue, 2 Mar 2010 21:58:06 +0000 (22:58 +0100)]
Fixes for -Wmissing-declarations -Wmissing-prototypes
Also adds those flags to the configure warning flags
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Tim-Philipp Müller [Thu, 11 Mar 2010 09:39:23 +0000 (09:39 +0000)]
buffer: fix printf format
Use %u to print unsigned integers.
Stefan Kost [Thu, 11 Mar 2010 08:29:23 +0000 (10:29 +0200)]
tests: cast the arg. to fix the build with new compiler opts.
This is ugly. I am not sure if we really want to have such casts all over the
place.
Stefan Kost [Thu, 11 Mar 2010 08:14:05 +0000 (10:14 +0200)]
i18n: define dummy ngettext if i18n is disabled.
We cannot blindly use gettext function and not define them when not using gettext.
Stefan Kost [Thu, 11 Mar 2010 08:00:45 +0000 (10:00 +0200)]
i18n: fix the build with i18n disabled.
Don't include gettext.h if !ENABLE_NLS.
Stefan Kost [Thu, 4 Mar 2010 08:44:52 +0000 (10:44 +0200)]
buffer: allow configurable memory alignment. Fixes #596832
The alignment guaranteed by malloc is not always sufficient. E.g. vector
instructions or hardware subsystems want specifically aligned buffers. The
attached patch will use posix_memalign if available to allocate buffers.
The desired alignment can be set when running configure using the new
--with-buffer-alignment option.
Benjamin Otte [Wed, 10 Mar 2010 20:51:50 +0000 (21:51 +0100)]
Automatic update of common submodule
From 9720a7d to df8a7c8
Benjamin Otte [Wed, 10 Mar 2010 19:52:06 +0000 (20:52 +0100)]
Merge branch 'work'
Benjamin Otte [Wed, 3 Mar 2010 10:45:38 +0000 (11:45 +0100)]
Fixes for -Wwrite-strings
This changes some APIs in compatible ways:
- Some functions now take "const char *" arguments, not "char *"
- Some structs now have "conts char *" members, not "char *"
The changes may cause warnings when compiling with the right warning
flags. You've been warned.
Also adds -Wwrite-strings as a warning flag in configure.ac.
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Wed, 3 Mar 2010 09:31:26 +0000 (10:31 +0100)]
Fixes -Wundef warnings
... and adds that flag to configure.ac
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Wed, 3 Mar 2010 09:31:05 +0000 (10:31 +0100)]
benchmarks: Remove unneeded g_thread_exit()
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Wed, 3 Mar 2010 09:26:14 +0000 (10:26 +0100)]
Fixes for -Wold-style-definition
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Tue, 2 Mar 2010 22:51:18 +0000 (23:51 +0100)]
Make code safe for -Wredundant-decls
Adds that warning to configure.ac
Includes a tiny change of the GST_BOILERPLATE_FULL() macro:
The get_type() function is no longer declared before being defined.
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Wed, 10 Mar 2010 19:43:35 +0000 (20:43 +0100)]
Automatic update of common submodule
From 0b6e072 to 9720a7d
Benjamin Otte [Wed, 3 Mar 2010 09:00:41 +0000 (10:00 +0100)]
Make sure generated code doesn't run with -Werror
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Wed, 10 Mar 2010 16:03:29 +0000 (17:03 +0100)]
Update to common/ changes to ERROR_CFLAGS
Benjamin Otte [Wed, 10 Mar 2010 18:17:42 +0000 (19:17 +0100)]
Revert "registry: remove unused function"
Turns out the function is not unused, but was in an #ifdef WIN32
section.
Whoops.
This reverts commit
57d5db424c68ab5a61f33ce36ce0179eb30251ac.
Benjamin Otte [Wed, 10 Mar 2010 15:09:33 +0000 (16:09 +0100)]
Automatic update of common submodule
From 7cc5eb4 to 0b6e072
Benjamin Otte [Tue, 2 Mar 2010 20:07:33 +0000 (21:07 +0100)]
registry: remove unused function
Actually, there was two functions with the same name, but only one was
used.
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Benjamin Otte [Tue, 2 Mar 2010 15:20:15 +0000 (16:20 +0100)]
remove unused gst_element_default_error()
https://bugzilla.gnome.org/show_bug.cgi?id=611692
Jeremy Huddleston [Wed, 10 Mar 2010 07:15:15 +0000 (07:15 +0000)]
utils: Use mulq instead of mul as some assemblers can't guess the size of the operands
Fixes bug #612370.
Tim-Philipp Müller [Wed, 10 Mar 2010 01:09:11 +0000 (01:09 +0000)]
Automatic update of common submodule
From 7aa65b5 to 7cc5eb4
Sebastian Dröge [Tue, 9 Mar 2010 21:20:27 +0000 (21:20 +0000)]
Automatic update of common submodule
From 44ecce7 to 7aa65b5
Sebastian Dröge [Fri, 26 Feb 2010 15:03:47 +0000 (16:03 +0100)]
build: Make some more rules silent if requested
Sebastian Dröge [Fri, 26 Feb 2010 14:32:14 +0000 (15:32 +0100)]
configure: Use automake 1.11 silent rules instead of shave if available
This makes sure that we use something that is still maintained and
also brings back libtool 1.5 support.
Sebastian Dröge [Mon, 22 Feb 2010 15:25:45 +0000 (16:25 +0100)]
lfocontrolsource: Optimize get_value_array()
Don't convert from GValue to the actual type for every single
value.
Sebastian Dröge [Mon, 22 Feb 2010 14:18:41 +0000 (15:18 +0100)]
interpolationcontrolsource: Optimize get_value_array()
This makes it >10x faster if more than a single value is requested
by not searching in the GSequence for every value and converting
the value from GValue to the real value type.
Sebastian Dröge [Sun, 21 Feb 2010 16:36:55 +0000 (17:36 +0100)]
controller: Add benchmark for getting a value array of the control points
Benjamin Otte [Mon, 8 Mar 2010 22:28:04 +0000 (23:28 +0100)]
Fix typos in documentation
Benjamin Otte [Mon, 8 Mar 2010 22:04:26 +0000 (23:04 +0100)]
caps: Fail when fractions are followed by random text
Previous code treated "1/1yourmom" the same as "1/1" and "1wimsmom" the
same as "1". Now the code is stricter and will fail to convert a
fraction when followed by garbage text.
Tim-Philipp Müller [Tue, 9 Mar 2010 17:32:39 +0000 (17:32 +0000)]
Back to development
Tim-Philipp Müller [Mon, 8 Mar 2010 23:09:01 +0000 (23:09 +0000)]
Release 0.10.28
Tim-Philipp Müller [Mon, 8 Mar 2010 23:06:48 +0000 (23:06 +0000)]
Update .po files
Benjamin Otte [Mon, 8 Mar 2010 21:05:29 +0000 (22:05 +0100)]
caps: Allow 1/max as the minimal fraction value > 0
This is useful for formats that require a valid framerate (like
theoraenc).
Wim Taymans [Thu, 4 Mar 2010 14:21:37 +0000 (15:21 +0100)]
element: fix typo in comments
Tim-Philipp Müller [Fri, 5 Mar 2010 23:43:26 +0000 (23:43 +0000)]
Release 0.10.27
Tim-Philipp Müller [Fri, 5 Mar 2010 23:41:09 +0000 (23:41 +0000)]
Update .po files
Tim-Philipp Müller [Thu, 4 Mar 2010 18:39:02 +0000 (18:39 +0000)]
gstpoll: don't pass non-objects as first argument to GST_DEBUG_OBJECT()
This may cause crashes when logging is enabled, especially on windows.
It's not safe to pass random pointers to g_type_check_instance_is_a().
Fixes #611719.
Tim-Philipp Müller [Wed, 3 Mar 2010 19:54:50 +0000 (19:54 +0000)]
0.10.26.4 pre-release
Tim-Philipp Müller [Wed, 3 Mar 2010 19:49:34 +0000 (19:49 +0000)]
po: update translations
Tim-Philipp Müller [Wed, 3 Mar 2010 12:06:30 +0000 (12:06 +0000)]
docs: fix up bytewriter doc chunks for float functions as well
Tim-Philipp Müller [Wed, 3 Mar 2010 11:28:27 +0000 (11:28 +0000)]
bytewriter: fix headers for float/double writing functions
The functions are called gst_byte_writer_put_{float32|float64}_*() and not
gst_byte_writer_put_{float|double}_*().
Spotted by: Benjamin Otte <otte@redhat.com>
Tim-Philipp Müller [Mon, 1 Mar 2010 12:02:44 +0000 (12:02 +0000)]
tags: try to make comment for translators more helpful
Mark Nauwelaerts [Fri, 26 Feb 2010 14:46:50 +0000 (15:46 +0100)]
basesink: fix emergency rendering timestamp tracking
Specifically, if all (including initial) buffers turn up late,
emergency rendering should also kick in appropriately.
Fixes #611087.
Tim-Philipp Müller [Wed, 24 Feb 2010 00:30:02 +0000 (00:30 +0000)]
0.10.26.3 pre-release
Tim-Philipp Müller [Wed, 24 Feb 2010 00:29:25 +0000 (00:29 +0000)]
po: update translations
Sebastian Dröge [Fri, 19 Feb 2010 12:26:01 +0000 (13:26 +0100)]
interpolationcontrolsource: Don't pass NULL pointers to GSequence API
This causes assertion failures. Fixes bug #610444.
Sebastian Dröge [Fri, 19 Feb 2010 12:20:36 +0000 (13:20 +0100)]
interpolationcontrolsource: Add const qualifiers to values in the _set functions
The values are not modified and are copied, a const before the parameter
should make this even more obvious.
Sebastian Dröge [Thu, 18 Feb 2010 08:17:06 +0000 (09:17 +0100)]
controller: Add some FIXME 0.11 comments
Sebastian Dröge [Wed, 17 Feb 2010 09:04:54 +0000 (10:04 +0100)]
corelements: Combine redundant code
Andoni Morales Alastruey [Wed, 17 Feb 2010 00:27:22 +0000 (01:27 +0100)]
Fix compilation of fdsink and fdsrc with MSVC
Tim-Philipp Müller [Thu, 18 Feb 2010 14:58:52 +0000 (14:58 +0000)]
0.10.26.2 pre-release
Tim-Philipp Müller [Thu, 18 Feb 2010 13:12:39 +0000 (13:12 +0000)]
.gitignore: ignore some more temporary docs cruft
Tim-Philipp Müller [Thu, 18 Feb 2010 13:09:17 +0000 (13:09 +0000)]
build: fix indenting in win32-update target
No idea why we need to run gst-indent twice on that file, but it
only seems to settle on a final format with minimal diff to the
one in git after two runs.
Tim-Philipp Müller [Thu, 18 Feb 2010 13:08:32 +0000 (13:08 +0000)]
gstcheck: more debug logging for gst_check_element_push_buffer_list()
Thiago Santos [Thu, 18 Feb 2010 14:52:28 +0000 (11:52 -0300)]
collectpads: Improve docs about 'data' attribute
Adds a reminder to 'data' attribute doc
Fixes #610366
Mark Nauwelaerts [Thu, 18 Feb 2010 16:15:35 +0000 (17:15 +0100)]
memindex: avoid busy loop when doing EXACT lookup
Fixes #610367.
Johan Bilien [Tue, 22 Dec 2009 03:09:10 +0000 (11:09 +0800)]
introspection: add annotation for gst_element_get_state
state and pending are "out" arguments.
Fixes #605189.
Edward Hervey [Wed, 17 Feb 2010 11:16:37 +0000 (12:16 +0100)]
filesrc: Don't use expensive cast checks in _create
_create() is a pad function set by ourselves, therefore we're sure basesrc
is a GstFileSrc.
Speeds up _create() by 17% and the total call by 8% (instruction calls measurements
done with valgrind).
Fixes #610246
Edward Hervey [Wed, 17 Feb 2010 11:14:09 +0000 (12:14 +0100)]
basesrc: Don't use expensive cast checks in get_range.
_get_range() is a pad function set by ourselves, therefore we're certain that
the parent is a GstBaseSrc.
Speeds up _get_range by 38%, and the total call by 30%. (valgrind instruction
calls measurements).
Fixes #610246
Stefan Kost [Wed, 17 Feb 2010 09:31:07 +0000 (11:31 +0200)]
fdsrc: cleanup parameter initialisation and add comemnt+logging
Initialize new_fd with DEFAULT_FD and fd with -1. Setting the property will set
new_fd and in _update_fd() we cehck fd against -1. Also add a coment about the
warning we get in the log from gst_poll_remove_fd(). We could get rid of the
warning if we want by tracking if fd has been added to fdset.
Stefan Kost [Wed, 17 Feb 2010 07:55:52 +0000 (09:55 +0200)]
design: write about the current state of tag-handling
Document the taghandling in gstreamer. List gaps and propose new mechanisms to
deal with them.