platform/upstream/gstreamer.git
13 years agowin32: define GST_PACKAGE_RELEASE_DATETIME in win32 config.h as well
Tim-Philipp Müller [Thu, 23 Sep 2010 23:13:51 +0000 (00:13 +0100)]
win32: define GST_PACKAGE_RELEASE_DATETIME in win32 config.h as well

13 years agopo: update for new strings
Tim-Philipp Müller [Thu, 23 Sep 2010 19:57:49 +0000 (20:57 +0100)]
po: update for new strings

13 years agogst-inspect: print GST_PARAM_MUTABLE_* property flags
Tim-Philipp Müller [Thu, 23 Sep 2010 19:48:25 +0000 (20:48 +0100)]
gst-inspect: print GST_PARAM_MUTABLE_* property flags

13 years agobasetransform: Make a WARNING into a DEBUG statement
Havard Graff [Tue, 4 May 2010 07:36:43 +0000 (09:36 +0200)]
basetransform: Make a WARNING into a DEBUG statement

Fixes bug #630437.

13 years agoclock: fix racy shutdown clock id leak
Trond Andersen [Tue, 12 Jan 2010 16:10:59 +0000 (17:10 +0100)]
clock: fix racy shutdown clock id leak

Clock IDs were leaked if the clock got disposed before the worker thread
got a chance to reap unscheduled entries.

Fixes bug #630439.

13 years agobasetransform: avoid useless memcpy
Wim Taymans [Thu, 23 Sep 2010 16:18:54 +0000 (18:18 +0200)]
basetransform: avoid useless memcpy

Because of the awkward refcounting in prepare_output_buffer, we might end up
with writable buffers that point to the same data. Check for those cases so that
we avoid a useless memcpy and keep valgrind quiet.

Fixes #628176

13 years agotests: fix 'make check' build for setups where no c++ compiler is available
Tim-Philipp Müller [Thu, 23 Sep 2010 13:37:45 +0000 (14:37 +0100)]
tests: fix 'make check' build for setups where no c++ compiler is available

Only try to build (pseudo-)C++ unit test if a working C++ compiler has been
found, otherwise the build will fail. (We do this to make sure our headers
are 'C++ clean').

13 years agotag: Adds GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR
Thiago Santos [Thu, 23 Sep 2010 13:08:05 +0000 (10:08 -0300)]
tag: Adds GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR

Adds a new tag to indicate the error in horizontal positioning
in meters. This is one of the available 'gps error' fields in
exif, for example.

API: GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR

13 years agoRevert "pad: use a nested lock to avoid reffing the peer"
Stefan Kost [Thu, 23 Sep 2010 12:34:54 +0000 (15:34 +0300)]
Revert "pad: use a nested lock to avoid reffing the peer"

This reverts commit 9b424b1570366b10746a762e8c9c4c1b35b21e91.

13 years agoqueue2: remove var only used for debug statement
Stefan Kost [Thu, 23 Sep 2010 12:12:32 +0000 (15:12 +0300)]
queue2: remove var only used for debug statement

13 years agopad: use a nested lock to avoid reffing the peer
Stefan Kost [Tue, 7 Sep 2010 13:56:38 +0000 (16:56 +0300)]
pad: use a nested lock to avoid reffing the peer

Fixes #503592

13 years agotests: rebuild one test using cpp
Stefan Kost [Thu, 15 Jul 2010 12:47:36 +0000 (15:47 +0300)]
tests: rebuild one test using cpp

This aims to catch cpp issues in core. Add c++ boilerplate to configure.

13 years agoAutomatic update of common submodule
Edward Hervey [Tue, 21 Sep 2010 16:33:26 +0000 (18:33 +0200)]
Automatic update of common submodule

From aa0d1d0 to 5e3c9bf

13 years agotests: Handle new assertion in gst_adapter_masked_scan_uint32
Edward Hervey [Sun, 19 Sep 2010 14:10:16 +0000 (16:10 +0200)]
tests: Handle new assertion in gst_adapter_masked_scan_uint32

13 years agoadapter: Add check for pattern bits not in mask
David Schleef [Sun, 19 Sep 2010 02:29:09 +0000 (19:29 -0700)]
adapter: Add check for pattern bits not in mask

13 years agogst-launch: Use g_file_test() instead of access() which does not exist on MSVC6
Sebastian Dröge [Fri, 17 Sep 2010 17:53:33 +0000 (19:53 +0200)]
gst-launch: Use g_file_test() instead of access() which does not exist on MSVC6

Fixes bug #629494.

13 years agobufferlist: add function to add a list of buffers
Wim Taymans [Fri, 17 Sep 2010 15:34:42 +0000 (17:34 +0200)]
bufferlist: add function to add a list of buffers

Add a function to add a list of buffers to the bufferlist.

13 years agoadapter: add function to get a list of buffers
Wim Taymans [Fri, 17 Sep 2010 13:51:08 +0000 (15:51 +0200)]
adapter: add function to get a list of buffers

Add a function to retrieve a list of buffers containing the first N bytes from
the adapter. This can be done without a memcpy and should make it possible to
transfer the list to a GstBufferList later.

13 years agoadapter: reuse more data in _peek()
Wim Taymans [Fri, 17 Sep 2010 13:07:50 +0000 (15:07 +0200)]
adapter: reuse more data in _peek()

Optimize _peek() some more by reusing already assembled data when we can.

13 years agoadapter: optimize _take() a little more
Wim Taymans [Fri, 17 Sep 2010 11:57:39 +0000 (13:57 +0200)]
adapter: optimize _take() a little more

When we have already assembled some data before, reuse this data and only copy
the part that is new.

13 years agoadapter: refactor adapter take
Wim Taymans [Fri, 17 Sep 2010 10:48:55 +0000 (12:48 +0200)]
adapter: refactor adapter take

Move some common code into one place

13 years agoadapter: add support for 0 sized buffers
Wim Taymans [Fri, 17 Sep 2010 10:40:12 +0000 (12:40 +0200)]
adapter: add support for 0 sized buffers

Add support for 0 sized buffers. This is interesting in combination with the
timestamp functions.

Fixes #629553

13 years agopwg: Make a sentence clearer.
Edward Hervey [Fri, 17 Sep 2010 08:01:01 +0000 (10:01 +0200)]
pwg: Make a sentence clearer.

13 years agoelementfactory: make sure gstreamer has been initialized when creating elements
Tim-Philipp Müller [Thu, 16 Sep 2010 18:27:57 +0000 (19:27 +0100)]
elementfactory: make sure gstreamer has been initialized when creating elements

Add gst_is_initialized() guard to gst_element_factory_make(), so
people who forgot to call gst_init() get a useful warning for what
seems to be a common enough mistake.

13 years agoquery: minor gst_query_add_buffering_range() code reflow
Tim-Philipp Müller [Wed, 15 Sep 2010 23:37:59 +0000 (00:37 +0100)]
query: minor gst_query_add_buffering_range() code reflow

Sprinkle some G_UNLIKELY(), return TRUE/FALSE constants, avoid an
unnecessary g_value_unset(), move g_value_init()+set_int64_range()
closer to where they're needed.

13 years agoquery: gst_query_add_buffering_range() optimisations
Tim-Philipp Müller [Wed, 15 Sep 2010 23:30:14 +0000 (00:30 +0100)]
query: gst_query_add_buffering_range() optimisations

Don't create a new GValueArray copy for every single _add_buffering_range()
call, but append to the existing value array owned by the structure instead.

13 years agostructure: micro-optimisation for some setter functions
Tim-Philipp Müller [Wed, 15 Sep 2010 23:03:38 +0000 (00:03 +0100)]
structure: micro-optimisation for some setter functions

Split out functions that do the actual work, so we avoid doing
the same g_return_if_fail() checks multiple times for each call.

13 years agostructure: add gst_structure_{id_}take_value()
Tim-Philipp Müller [Wed, 15 Sep 2010 22:42:43 +0000 (23:42 +0100)]
structure: add gst_structure_{id_}take_value()

Add _set_value() variants that take ownership of the value passed
instead of making a copy of the value. This is useful for setting
values to things that aren't refcounted (e.g. GValueArrays or
strings or string arrays, etc.).

API: gst_structure_take_value()
API: gst_structure_id_take_value()

https://bugzilla.gnome.org/show_bug.cgi?id=629831

13 years agobin: fix doc string, we post element messages
Wim Taymans [Thu, 16 Sep 2010 17:19:21 +0000 (19:19 +0200)]
bin: fix doc string, we post element messages

13 years agobin: add message-forward option
Wim Taymans [Thu, 16 Sep 2010 17:06:35 +0000 (19:06 +0200)]
bin: add message-forward option

Add an option to forward all the internal messages that would otherwise be
filtered such as EOS, SEGMENT and ASYNC messages.
This allows the application to, for example, detect that a partial pipeline is
prerolled or reached eos.
The original messages are wrapped inside an element message because the parent
bins are not supposed to see those internal messages escape.

13 years agoplugin: use strstr() instead of g_strstr_len()
Tim-Philipp Müller [Sun, 12 Sep 2010 15:50:11 +0000 (16:50 +0100)]
plugin: use strstr() instead of g_strstr_len()

Saves us a strlen() call.

13 years agoqueue2: only post buffering message when percent changed
Wim Taymans [Wed, 15 Sep 2010 11:29:52 +0000 (13:29 +0200)]
queue2: only post buffering message when percent changed

13 years agoqueue2: always update buffering status
Wim Taymans [Wed, 15 Sep 2010 11:15:19 +0000 (13:15 +0200)]
queue2: always update buffering status

Update the buffering status even when we are not using a queue so that EOS can
properly finish the buffering.

13 years agogstpad: Fix flush-stop event handling
Thiago Santos [Mon, 13 Sep 2010 23:39:50 +0000 (20:39 -0300)]
gstpad: Fix flush-stop event handling

A flush-stop event would make a pad unflushing, causing it
to start acting as an activated pad. This, for example,
could lead to the chain function being called when stuff
isn't initialized.

This could happend when setting qtdemux to NULL while a seek
was being handled in the upstream filesrc (in push mode).

This patch makes it check if it is activated before setting
it to unflushing.

13 years agodocs: fix warnings pointed out by gtk-doc
Stefan Kost [Mon, 13 Sep 2010 08:17:34 +0000 (11:17 +0300)]
docs: fix warnings pointed out by gtk-doc

13 years agotaskpool: make debug only code conditional
Stefan Kost [Mon, 13 Sep 2010 06:50:53 +0000 (09:50 +0300)]
taskpool: make debug only code conditional

13 years agointrospection: Build with latest g-i
Colin Walters [Fri, 10 Sep 2010 19:07:03 +0000 (15:07 -0400)]
introspection: Build with latest g-i

Hide a compatibility typedef.

https://bugzilla.gnome.org/show_bug.cgi?id=629241
https://bugzilla.gnome.org/show_bug.cgi?id=550616

13 years agopluginloader: don't leak entries for blacklisted files
Stefan Kost [Thu, 9 Sep 2010 19:24:38 +0000 (22:24 +0300)]
pluginloader: don't leak entries for blacklisted files

13 years agochecks: and check the right env-var (fixup last commit)
Stefan Kost [Thu, 9 Sep 2010 18:59:29 +0000 (21:59 +0300)]
checks: and check the right env-var (fixup last commit)

13 years agotests: allow running state tests for all elements
Stefan Kost [Thu, 9 Sep 2010 18:56:28 +0000 (21:56 +0300)]
tests: allow running state tests for all elements

Now one can use GST_NO_STATE_IGNORE_ELEMENTS=1 make generic/states.check
to try elements that would normaly be skipped.

13 years agogstobject: avoid string creation when not needed
Edward Hervey [Mon, 6 Sep 2010 13:16:16 +0000 (15:16 +0200)]
gstobject: avoid string creation when not needed

13 years agoidentity: identity is GAP flag aware, no need to let it be unset by basetransform
Sebastian Dröge [Thu, 9 Sep 2010 14:11:41 +0000 (16:11 +0200)]
identity: identity is GAP flag aware, no need to let it be unset by basetransform

13 years agogst-launch: add a sync bus handler and move state-change logging there
Stefan Kost [Thu, 9 Sep 2010 12:57:15 +0000 (15:57 +0300)]
gst-launch: add a sync bus handler and move state-change logging there

The sync handler is called for all mesages, the event loop we previously used
was not. In the sync handler trigger pipeline dot dumps and call access for a
file in tmp-dir to add markers interceptable by strace and co.

13 years agocaps: simplify code a bit
Tim-Philipp Müller [Wed, 8 Sep 2010 17:41:18 +0000 (18:41 +0100)]
caps: simplify code a bit

No need to call g_slist_length() here.

13 years agopad: add a unchecked variant for pull
Stefan Kost [Wed, 8 Sep 2010 06:37:42 +0000 (09:37 +0300)]
pad: add a unchecked variant for pull

Add internal _get_range_unchecked thats is called from _get_range and
_pull_range.

13 years agogst-uninstalled: add ugly/bad/ffmpeg pkg-config dirs to PKG_CONFIG_PATH
Tim-Philipp Müller [Tue, 7 Sep 2010 22:48:56 +0000 (23:48 +0100)]
gst-uninstalled: add ugly/bad/ffmpeg pkg-config dirs to PKG_CONFIG_PATH

So we can figure out plugin directories of other modules properly in
the uninstalled setup case, for unit tests that need elements from
other modules.

13 years agodocs: update plugin docs for recent changes
Tim-Philipp Müller [Tue, 7 Sep 2010 11:01:18 +0000 (12:01 +0100)]
docs: update plugin docs for recent changes

And sorted hierarchy

13 years agoAutomatic update of common submodule
Tim-Philipp Müller [Tue, 7 Sep 2010 10:41:37 +0000 (11:41 +0100)]
Automatic update of common submodule

From c2e10bf to aa0d1d0

13 years agogst-inspect: don't use gst_structure_foreach() on NULL pointers
Tim-Philipp Müller [Tue, 7 Sep 2010 10:09:16 +0000 (11:09 +0100)]
gst-inspect: don't use gst_structure_foreach() on NULL pointers

13 years agopo: update translations for new strings
Tim-Philipp Müller [Mon, 6 Sep 2010 19:19:27 +0000 (20:19 +0100)]
po: update translations for new strings

13 years agogsterror: add default error message for GST_LIBRARY_ERROR_ENCODE
Tim-Philipp Müller [Mon, 6 Sep 2010 19:16:14 +0000 (20:16 +0100)]
gsterror: add default error message for GST_LIBRARY_ERROR_ENCODE

No idea though why we even have GST_LIBRARY_ERROR_ENCODE or when one
would want to use that instead of GST_STREAM_ERROR_ENCODE.

13 years agogsterror: avoid pointless string copying
Tim-Philipp Müller [Mon, 6 Sep 2010 19:06:56 +0000 (20:06 +0100)]
gsterror: avoid pointless string copying

There's no need to create these tables with duplicates of the
untranslated error message string constants, we can just use
old-fashioned switch/case and call gettext directly. This also
makes things slightly more thread safe and more robust to bad
input (invalid error codes).

13 years agocheck: Avoid error: array subscript is above array bounds
Edward Hervey [Mon, 6 Sep 2010 16:33:51 +0000 (18:33 +0200)]
check: Avoid error: array subscript is above array bounds

Could have come up with something better for my 2000th commit
to GStreamer...

13 years agodocs: give a practical example for the gst_object_has_anchestor
Stefan Kost [Mon, 6 Sep 2010 14:01:19 +0000 (17:01 +0300)]
docs: give a practical example for the gst_object_has_anchestor

13 years agoelementfactory: use the parent_class defined by G_DEFINE_TYPE
Stefan Kost [Mon, 6 Sep 2010 11:33:44 +0000 (14:33 +0300)]
elementfactory: use the parent_class defined by G_DEFINE_TYPE

13 years agotests: tune skipping checks if we have disabled subsystems
Stefan Kost [Mon, 6 Sep 2010 11:32:00 +0000 (14:32 +0300)]
tests: tune skipping checks if we have disabled subsystems

Skip ABI tests if some subsystems are off. Remove DISABLE_GST_DEBUG from
skipping export checks as this is safe now.

13 years agoregistrychunks: Use the correct variable for debug message
Olivier Crête [Mon, 6 Sep 2010 11:09:52 +0000 (14:09 +0300)]
registrychunks: Use the correct variable for debug message

Debug print was using a variable that was not initialized.

13 years agoelement-details: allow for arbitrary element details
Stefan Kost [Tue, 10 Aug 2010 11:05:22 +0000 (14:05 +0300)]
element-details: allow for arbitrary element details

Add a GstStructure to GstElementClass and GstElementFactory. Add setters/getter.
Handle it in the registry code. Print items in gst-inspect.
Fixes #396774.

API: gst_element_class_set_meta_data(), gst_element_factory_get_meta_data_detail()

13 years agoAutomatic update of common submodule
David Schleef [Mon, 6 Sep 2010 01:57:56 +0000 (18:57 -0700)]
Automatic update of common submodule

From d3d9acf to c2e10bf

13 years agoAutomatic update of common submodule
Sebastian Dröge [Sun, 5 Sep 2010 10:13:00 +0000 (12:13 +0200)]
Automatic update of common submodule

From ca1c867 to d3d9acf

13 years agowin32: Add new symbols from GstElementFactoryList
Edward Hervey [Sun, 5 Sep 2010 08:22:20 +0000 (10:22 +0200)]
win32: Add new symbols from GstElementFactoryList

And here's a reminder since I forgot to put them in my previous
commit.

API: gst_element_factory_list_filter
API: gst_element_factory_list_get_elements
API: gst_element_factory_list_is_type
API: gst_plugin_feature_list_debug
API: gst_plugin_feature_rank_compare_func
API: GstElementFactoryListType
API: GST_ELEMENT_FACTORY_TYPE_ANY
API: GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS
API: GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER
API: GST_ELEMENT_FACTORY_TYPE_DECODABLE
API: GST_ELEMENT_FACTORY_TYPE_DECODER
API: GST_ELEMENT_FACTORY_TYPE_DEMUXER
API: GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER
API: GST_ELEMENT_FACTORY_TYPE_ENCODER
API: GST_ELEMENT_FACTORY_TYPE_FORMATTER
API: GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO
API: GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY
API: GST_ELEMENT_FACTORY_TYPE_MUXER
API: GST_ELEMENT_FACTORY_TYPE_PARSER
API: GST_ELEMENT_FACTORY_TYPE_PAYLOADER
API: GST_ELEMENT_FACTORY_TYPE_SINK
API: GST_ELEMENT_FACTORY_TYPE_SRC
API: GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER

13 years agoqueue2: buffering_ranges query support
Philippe Normand [Tue, 31 Aug 2010 09:37:42 +0000 (11:37 +0200)]
queue2: buffering_ranges query support

Fixes bug 623121

13 years agogstquery: Only fill the start/stop values of the buffering ranges if a non-NULL point...
Sebastian Dröge [Fri, 3 Sep 2010 17:58:49 +0000 (19:58 +0200)]
gstquery: Only fill the start/stop values of the buffering ranges if a non-NULL pointer was provided

13 years agogstquery: new buffering_ranges API
Philippe Normand [Tue, 31 Aug 2010 09:35:12 +0000 (11:35 +0200)]
gstquery: new buffering_ranges API

Added a new query type to retrieve informations about the areas of the
media currently buffered. See bug 623121.

API: gst_query_add_buffering_range
API: gst_query_get_n_buffering_ranges
API: gst_query_parse_nth_buffering_range

13 years agoGstElementFactory: Add listing features
Edward Hervey [Mon, 16 Aug 2010 17:01:15 +0000 (19:01 +0200)]
GstElementFactory: Add listing features

https://bugzilla.gnome.org/show_bug.cgi?id=626181

13 years agodocs: mention GST_DEBUG_OPTIONS, ORC_CODE, G_DEBUG and G_SLICE environment variables
Tim-Philipp Müller [Thu, 2 Sep 2010 11:44:08 +0000 (12:44 +0100)]
docs: mention GST_DEBUG_OPTIONS, ORC_CODE, G_DEBUG and G_SLICE environment variables

Mention a few more useful environment variables in the 'Running GStreamer
applications' section of the API reference.

13 years agofakesrc: fix use of empty subbuffers
Stefan Kost [Thu, 2 Sep 2010 11:15:29 +0000 (14:15 +0300)]
fakesrc: fix use of empty subbuffers

Remove a short cut that was ignoring src->data allocation mode. All
the called code-path below handle size==0.

13 years agoFix casts in a bunch of inline functions to maintain correct const-ness
Jeffrey S. Smith [Wed, 1 Sep 2010 23:01:25 +0000 (00:01 +0100)]
Fix casts in a bunch of inline functions to maintain correct const-ness

Make code including GStreamer headers compile with -Wcast-qual by
maintaining const-ness when casting. Also fix function signature of
gst_byte_writer_set_pos(): the byte writer should not be marked as
const.

https://bugzilla.gnome.org/show_bug.cgi?id=627910

13 years agobuild: use new AG_GST_PKG_CONFIG_PATH m4 macro from common
Tim-Philipp Müller [Tue, 31 Aug 2010 17:40:44 +0000 (18:40 +0100)]
build: use new AG_GST_PKG_CONFIG_PATH m4 macro from common

Sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
(avoids trailing ':' in PKG_CONFIG_PATH used). A useful side
effect of this is also that the PKG_CONFIG_PATH environment
is now logged in the configure output.

13 years agomanual: improve clock docs a little
Wim Taymans [Wed, 1 Sep 2010 09:34:01 +0000 (11:34 +0200)]
manual: improve clock docs a little

13 years agogstvalue: Fix memory leaks in the int64range tests
Sebastian Dröge [Wed, 1 Sep 2010 09:06:57 +0000 (11:06 +0200)]
gstvalue: Fix memory leaks in the int64range tests

13 years agogstvalue: Add new GstInt64Range type
Philippe Normand [Tue, 24 Aug 2010 10:27:30 +0000 (12:27 +0200)]
gstvalue: Add new GstInt64Range type

new GstInt64Range to store gint64 ranges.

API: GST_TYPE_INT64_RANGE
API: gst_value_set_int64_range
API: gst_value_get_int64_range_min
API: gst_value_get_int64_range_max

Fixes bug #627826.

13 years agodocs: Trivial cleanup for GST_DEBUG_CATEGORY_GET
Arun Raghavan [Tue, 31 Aug 2010 00:26:18 +0000 (21:26 -0300)]
docs: Trivial cleanup for GST_DEBUG_CATEGORY_GET

13 years agoinfo: Re-instate the default for color usage
Edward Hervey [Mon, 30 Aug 2010 14:02:55 +0000 (16:02 +0200)]
info: Re-instate the default for color usage

This was accidently removed in 7a722091b6d1b5d7f9404fdef4c695a29a65a989

13 years agocheck: Use g_strcmp0 instead of strcmp
Edward Hervey [Mon, 30 Aug 2010 10:47:31 +0000 (12:47 +0200)]
check: Use g_strcmp0 instead of strcmp

Avoids segfaults when using NULL arguments.

13 years agoqueue: add silent property to suppress signal emission
Stefan Kost [Fri, 27 Aug 2010 12:35:49 +0000 (15:35 +0300)]
queue: add silent property to suppress signal emission

Allow to turn off signal emission and therefore extra locking if this is not needed.
Fixes #621299

13 years agoutils: Add gst_util_fraction_compare() to the docs and exported symbols
Sebastian Dröge [Sat, 28 Aug 2010 08:16:05 +0000 (10:16 +0200)]
utils: Add gst_util_fraction_compare() to the docs and exported symbols

13 years agotests: Remove checks for deprecated flow check macros
Jan Schmidt [Sat, 28 Aug 2010 07:51:14 +0000 (17:51 +1000)]
tests: Remove checks for deprecated flow check macros

GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS() are deprecated,
so aren't available for the testsuite any more.

13 years agoutils: Fix inverted assertion logic in gst_util_fraction_compare()
Sebastian Dröge [Sat, 28 Aug 2010 07:35:01 +0000 (09:35 +0200)]
utils: Fix inverted assertion logic in gst_util_fraction_compare()

13 years agoutils: Add gst_util_fraction_compare() to compare fractions
Sebastian Dröge [Sat, 28 Aug 2010 07:30:18 +0000 (09:30 +0200)]
utils: Add gst_util_fraction_compare() to compare fractions

And use it for the fraction comparisons in gstvalue.c instead
of using comparisons by first converting the fractions to double.
Should fix bug #628174.

API: gst_util_fraction_compare()

13 years agotests: Add a couple of extra caps strings to test
Jan Schmidt [Sat, 28 Aug 2010 07:04:43 +0000 (17:04 +1000)]
tests: Add a couple of extra caps strings to test

13 years agomultiqueue: Don't do an infinite loop in the loop function
Sebastian Dröge [Fri, 27 Aug 2010 14:52:12 +0000 (16:52 +0200)]
multiqueue: Don't do an infinite loop in the loop function

Instead return after every iteration, which makes sure that the
stream lock is released for a short time after every iteration,
task state changes are checked, etc and this allows the task
to be stopped properly.

13 years agomultiqueue: Flush the data queue if downstream return WRONG_STATE too
Sebastian Dröge [Fri, 27 Aug 2010 14:49:14 +0000 (16:49 +0200)]
multiqueue: Flush the data queue if downstream return WRONG_STATE too

13 years agoelements: Stop using GST_FLOW_IS_FATAL()
Sebastian Dröge [Thu, 26 Aug 2010 21:39:06 +0000 (23:39 +0200)]
elements: Stop using GST_FLOW_IS_FATAL()

13 years agobase: Stop using GST_FLOW_IS_FATAL()
Sebastian Dröge [Thu, 26 Aug 2010 21:37:07 +0000 (23:37 +0200)]
base: Stop using GST_FLOW_IS_FATAL()

And document the special handling of WRONG_STATE.

13 years agopad: Deprecate GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS()
Sebastian Dröge [Thu, 26 Aug 2010 21:07:51 +0000 (23:07 +0200)]
pad: Deprecate GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS()

The problem with both macros is, that they suggest something that isn't true.
If GST_FLOW_IS_FATAL is true, there could still be a problem for many elements
and they should stop what they're currently doing and return that value
upstream (e.g. not-linked in a parser). If GST_FLOW_IS_SUCCESS is false, it
could still be that this is "ok" for the element (e.g. not-linked for a demuxer
on a few of its pads but not all).

It's better to not have these "convenience" macros but instead let people
*think* about the handling of different flow returns, that makes sense for
their element. And we should document the expected handling of flow returns for
different classes of elements in the plugin writer's guide.

Fixes bug #628014.

13 years agofakesink: keep properties in order
Stefan Kost [Fri, 27 Aug 2010 08:11:00 +0000 (11:11 +0300)]
fakesink: keep properties in order

13 years agoqueue: ARG_ -> PROP_ for property constants
Stefan Kost [Fri, 27 Aug 2010 07:22:27 +0000 (10:22 +0300)]
queue: ARG_ -> PROP_ for property constants

13 years agoqueue2: fix on-disk buffering again
Wim Taymans [Thu, 26 Aug 2010 15:04:20 +0000 (17:04 +0200)]
queue2: fix on-disk buffering again

13 years agobasetransform: recover from invalid downstream suggestions
Wim Taymans [Thu, 26 Aug 2010 13:12:49 +0000 (15:12 +0200)]
basetransform: recover from invalid downstream suggestions

When we are handling a buffer and need to allocate an output buffer, handle the
case when downstream suggests us a format that we can't convert the input buffer
to. In that case, check if there is another format available downstream instead
of failing.

Fixes #621332 and see also #614296

13 years agogstplugin: load the gst-python plugin loader with G_MODULE_BIND_LAZY.
Alessandro Decina [Thu, 26 Aug 2010 11:46:34 +0000 (13:46 +0200)]
gstplugin: load the gst-python plugin loader with G_MODULE_BIND_LAZY.

13 years agotag: Adds GST_TAG_APPLICATION_DATA
Thiago Santos [Mon, 16 Aug 2010 17:12:35 +0000 (14:12 -0300)]
tag: Adds GST_TAG_APPLICATION_DATA

Adds GST_TAG_APPLICATION_DATA for representing arbitrary private
data that applications might want to store into tags. Exif/id3,
for example, have tags for this.

API: GST_TAG_APPLICATION_DATA

Fixes #626651

13 years agogst-launch: Fix OIL_CPU_FLAGS docs for Orc
David Schleef [Tue, 24 Aug 2010 19:46:38 +0000 (12:46 -0700)]
gst-launch: Fix OIL_CPU_FLAGS docs for Orc

13 years agoman: remove OIL_CPU_FLAGS from man page
Stefan Kost [Tue, 24 Aug 2010 13:24:19 +0000 (16:24 +0300)]
man: remove OIL_CPU_FLAGS from man page

We're using ORC instead of libOil now.

13 years agoValgrind define is HAVE_VALGRIND_VALGRIND_H
David Schleef [Tue, 24 Aug 2010 01:20:23 +0000 (18:20 -0700)]
Valgrind define is HAVE_VALGRIND_VALGRIND_H

13 years agoAllow gst_debug_set_default_threshold() before gst_init()
David Schleef [Wed, 28 Jul 2010 01:24:44 +0000 (18:24 -0700)]
Allow gst_debug_set_default_threshold() before gst_init()

Calling gst_debug_set_default_threshold() before initialization
seems like the "obvious" order.

13 years agoqueue: fix segfault in test
Jonas Holmberg [Mon, 23 Aug 2010 11:06:19 +0000 (13:06 +0200)]
queue: fix segfault in test

13 years agoregistrychunks: intern all GstPluginDesc members when unpacking
Mark Nauwelaerts [Mon, 23 Aug 2010 08:58:16 +0000 (10:58 +0200)]
registrychunks: intern all GstPluginDesc members when unpacking

13 years agogstobject: fix leak when naming parented object
Mark Nauwelaerts [Mon, 23 Aug 2010 08:56:30 +0000 (10:56 +0200)]
gstobject: fix leak when naming parented object

13 years agogst: Add a gst_is_initialized() API
Arun Raghavan [Thu, 19 Aug 2010 21:37:58 +0000 (03:07 +0530)]
gst: Add a gst_is_initialized() API

For one, this will allow libraries that expect applications to
initialize GStreamer before using their API to have a check for this
condition.

https://bugzilla.gnome.org/show_bug.cgi?id=627438