platform/upstream/gstreamer.git
13 years agobus: Only create the signalling socket pair when required
Sebastian Dröge [Tue, 5 Apr 2011 14:22:48 +0000 (16:22 +0200)]
bus: Only create the signalling socket pair when required

Otherwise a new one would be created for every single bus and
the process could easily run out of file descriptors.

Fixes bug #646624.

13 years agostructure: Add date as a type abbreviation of GDate
Sebastian Dröge [Tue, 5 Apr 2011 12:36:43 +0000 (14:36 +0200)]
structure: Add date as a type abbreviation of GDate

See bug #646696.

13 years agoAutomatic update of common submodule
Stefan Kost [Mon, 4 Apr 2011 12:56:30 +0000 (15:56 +0300)]
Automatic update of common submodule

From 1ccbe09 to c3cafe1

13 years agogstpoll: retry reading the control socket to release properly all wakeups
Andoni Morales Alastruey [Mon, 4 Apr 2011 01:33:46 +0000 (03:33 +0200)]
gstpoll: retry reading the control socket to release properly all wakeups

if set->control_pending is set to 0 but we didn't not succed reading
the control socket, future calls to gst_poll_wait() will be awaiken
by the control socket which will not be released properly because
set->control_pending is already 0, causing an infinite loop.

13 years agostructure: Don't allow invalid GDates in all structures and don't allow NULL GDates...
Sebastian Dröge [Mon, 4 Apr 2011 08:18:14 +0000 (10:18 +0200)]
structure: Don't allow invalid GDates in all structures and don't allow NULL GDates in taglists

Some code (e.g. gstvorbistag.c) assumes non-NULL GDates in taglists and
explodes otherwise and NULL or invalid GDates don't make much sense anyway.

13 years agopoll: don't call WSAWaitForMultipleEvents with no events
Thomas Kristensen [Fri, 25 Mar 2011 14:56:07 +0000 (15:56 +0100)]
poll: don't call WSAWaitForMultipleEvents with no events

Fixes error caught by Microsoft Application Verifier.

13 years agodocs: add pointer to part-seeking.txt design docs to event seek flags docs
Tim-Philipp Müller [Sun, 3 Apr 2011 15:18:54 +0000 (16:18 +0100)]
docs: add pointer to part-seeking.txt design docs to event seek flags docs

13 years agochecks: ignore new funnel unit test binary
Tim-Philipp Müller [Sun, 3 Apr 2011 15:18:14 +0000 (16:18 +0100)]
checks: ignore new funnel unit test binary

13 years agoutils: Avoid using "type" as name for a variable and a macro argument in GST_BOILERPLATE
Bastien Nocera [Sat, 2 Apr 2011 13:51:18 +0000 (14:51 +0100)]
utils: Avoid using "type" as name for a variable and a macro argument in GST_BOILERPLATE

This caused "re-declaration" problems.
./clutter-gst-video-sink.c: In function ‘clutter_gst_video_sink_init_interfaces’:
./clutter-gst-video-sink.c:231:1: warning: declaration of ‘ClutterGstVideoSink’ shadows a global declaration [-Wshadow]
./clutter-gst-video-sink.h:64:44: warning: shadowed declaration is here [-Wshadow]

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

13 years agoelement: When requesting an existing pad print a g_critical() instead of using an...
Sebastian Dröge [Fri, 1 Apr 2011 11:56:09 +0000 (13:56 +0200)]
element: When requesting an existing pad print a g_critical() instead of using an assertion

Some applications are requesting the same pad name multiple times
and the behaviour is undefined and different from element to element
but we don't want to break applications that work just fine.

In 0.11 this check should be an assertion again, although elements
have to do manual checking if the pad already exists again because
it can't be done in a threadsafe way here.

13 years agoelement: Use gint64/guint64 string parsing functions
Sebastian Dröge [Fri, 1 Apr 2011 11:53:39 +0000 (13:53 +0200)]
element: Use gint64/guint64 string parsing functions

And check that the requested pad names are inside the valid
gint/guint range.

13 years agoelement: strto[u]l() returns a g[u]long
Josep Torra [Fri, 1 Apr 2011 11:51:31 +0000 (13:51 +0200)]
element: strto[u]l() returns a g[u]long

13 years agodesign docs: document expected behaviour for ACCURATE and KEY_UNIT seek flags
Tim-Philipp Müller [Thu, 31 Mar 2011 18:25:30 +0000 (19:25 +0100)]
design docs: document expected behaviour for ACCURATE and KEY_UNIT seek flags

13 years agogstabi: Add some new structures for x86-64
Sebastian Dröge [Thu, 31 Mar 2011 08:53:03 +0000 (10:53 +0200)]
gstabi: Add some new structures for x86-64

13 years agolibsabi: Add lots of new structures for x86-64
Sebastian Dröge [Thu, 31 Mar 2011 08:46:40 +0000 (10:46 +0200)]
libsabi: Add lots of new structures for x86-64

13 years agomultiqueue: Make assignment of queue IDs and pad names threadsafe
Sebastian Dröge [Wed, 30 Mar 2011 08:48:47 +0000 (10:48 +0200)]
multiqueue: Make assignment of queue IDs and pad names threadsafe

Also add a test for naming pads by the caller and return NULL
when requesting an already existing pad.

13 years agomultiqueue: Set the single queue ID to the ID of the requested pad if one was given...
Andreas Frisch [Tue, 29 Mar 2011 21:58:43 +0000 (23:58 +0200)]
multiqueue: Set the single queue ID to the ID of the requested pad if one was given by the caller

13 years agoelement: Fix sanity checks for request pad templates without %
Sebastian Dröge [Tue, 29 Mar 2011 14:22:46 +0000 (16:22 +0200)]
element: Fix sanity checks for request pad templates without %

13 years agoelement: Add some more sanity checks to the pad name checking of request pads in...
Sebastian Dröge [Tue, 29 Mar 2011 09:57:58 +0000 (11:57 +0200)]
element: Add some more sanity checks to the pad name checking of request pads in all cases

Especially check if a pad with that name already exists.

13 years agoelement: Check %u too when trying to find a pad template for a request pad
Sebastian Dröge [Tue, 29 Mar 2011 09:52:06 +0000 (11:52 +0200)]
element: Check %u too when trying to find a pad template for a request pad

13 years agomultiqueue: Fix arbitrary sink + source pad naming
Fraxinas [Mon, 28 Mar 2011 19:01:13 +0000 (21:01 +0200)]
multiqueue: Fix arbitrary sink + source pad naming

Use the string provided by the caller for the sinkpad name
if possible. Note that all sanity checking for this name
is already done in GstElement.

Fixes Bug #645931

13 years agofunnel: Add some more documentation about the behaviour of funnel
Sebastian Dröge [Tue, 29 Mar 2011 09:18:36 +0000 (11:18 +0200)]
funnel: Add some more documentation about the behaviour of funnel

13 years agofunnel: Send a newsegment event after flush-stop
Sebastian Dröge [Tue, 29 Mar 2011 09:08:57 +0000 (11:08 +0200)]
funnel: Send a newsegment event after flush-stop

13 years agofunnel: Some random cleanup
Sebastian Dröge [Tue, 29 Mar 2011 09:07:48 +0000 (11:07 +0200)]
funnel: Some random cleanup

13 years agofunnel: Use a GstPad subclass for the sinkpads instead of using the pad's element...
Sebastian Dröge [Tue, 29 Mar 2011 08:56:00 +0000 (10:56 +0200)]
funnel: Use a GstPad subclass for the sinkpads instead of using the pad's element private data

13 years agofunnel: Integrate into the build system and rename the types
Sebastian Dröge [Tue, 29 Mar 2011 08:42:31 +0000 (10:42 +0200)]
funnel: Integrate into the build system and rename the types

13 years agofunnel: Import funnel element from farsight2
Sebastian Dröge [Tue, 29 Mar 2011 08:39:42 +0000 (10:39 +0200)]
funnel: Import funnel element from farsight2

13 years agobasesrc: Return FALSE if we don't handle an event
Arun Raghavan [Mon, 28 Mar 2011 15:51:00 +0000 (21:21 +0530)]
basesrc: Return FALSE if we don't handle an event

basesrc's default event handler returns TRUE regardless of whether the
event is handled or not. This fixes the handler to conform with the
expected behaviour (which is to only return TRUE when the event has
actually benn handled). gst_bin_do_latency_func() depended on this
(incorrect) behaviour, and is now modified as well.

(Remaining 1-liner change in gstbasesrc.c is to keep gst-indent happy)

13 years agoAutomatic update of common submodule
Sebastian Dröge [Fri, 25 Mar 2011 21:08:41 +0000 (22:08 +0100)]
Automatic update of common submodule

From 193b717 to 1ccbe09

13 years agoAutomatic update of common submodule
Stefan Kost [Fri, 25 Mar 2011 12:55:39 +0000 (14:55 +0200)]
Automatic update of common submodule

From b77e2bf to 193b717

13 years agoAutomatic update of common submodule
Sebastian Dröge [Fri, 25 Mar 2011 08:27:58 +0000 (09:27 +0100)]
Automatic update of common submodule

From d8814b6 to b77e2bf

13 years agoAutomatic update of common submodule
Sebastian Dröge [Fri, 25 Mar 2011 07:59:37 +0000 (08:59 +0100)]
Automatic update of common submodule

From 6aaa286 to d8814b6

13 years agoAutomatic update of common submodule
Stefan Kost [Thu, 24 Mar 2011 16:48:41 +0000 (18:48 +0200)]
Automatic update of common submodule

From 6aec6b9 to 6aaa286

13 years agodocs: fix some gtk-doc warnings
Stefan Kost [Thu, 24 Mar 2011 16:27:09 +0000 (18:27 +0200)]
docs: fix some gtk-doc warnings

Document the queue leaky enums.

13 years agoqueue2: set max value for to the matching one for the datatype
Stefan Kost [Thu, 24 Mar 2011 16:25:08 +0000 (18:25 +0200)]
queue2: set max value for to the matching one for the datatype

The property is guint64, so use G_MAXUINT64 instead of G_MAXUINT.

13 years agodocs: cleanup and xref fixes
Stefan Kost [Thu, 24 Mar 2011 11:22:57 +0000 (13:22 +0200)]
docs: cleanup and xref fixes

Deal with the hints from gtk-doc and fix the xrefs. Apply a work-around for ()
precedence over @. Move "MT Safe" text to doc body in many places. Trim eol
whitespaces.

13 years agobasesink: print flow return as a name in debug log
Stefan Kost [Wed, 23 Mar 2011 14:42:24 +0000 (16:42 +0200)]
basesink: print flow return as a name in debug log

13 years agodocs: do xrefs for non installed books too
Stefan Kost [Wed, 23 Mar 2011 15:13:58 +0000 (17:13 +0200)]
docs: do xrefs for non installed books too

Get the xrefs from the builddir for the books in the same packages. This fixes
the cross references if one does not have the docs already installed.

13 years agobasesrc: Keep downstream caps order when fixating
Edward Hervey [Mon, 19 Apr 2010 18:39:53 +0000 (20:39 +0200)]
basesrc: Keep downstream caps order when fixating

This allows use to use the first intersecting format prefered by downstream.

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

13 years agobasetransform: Retain caps order when getting caps
Edward Hervey [Mon, 19 Apr 2010 18:40:56 +0000 (20:40 +0200)]
basetransform: Retain caps order when getting caps

If the element gave us caps in a specific order, let's retain that
by intersecting against the template but retaining the order given
by the element.

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

13 years agotests: caps: Tests for the new caps intersection mode
Thiago Santos [Fri, 25 Feb 2011 13:25:26 +0000 (10:25 -0300)]
tests: caps: Tests for the new caps intersection mode

Adds test cases for the caps 'first' intersect mode
Adds another test for the 'zigzag' mode

Fixes #617045

13 years agogstcaps: new API : gst_caps_intersect_full
Edward Hervey [Fri, 25 Feb 2011 11:50:12 +0000 (08:50 -0300)]
gstcaps: new API : gst_caps_intersect_full

Just like gst_caps_intersect, but adds a new parameter 'mode'
that allows selecting the intersection algorithm to use.

Currently we have GST_CAPS_INTERSECT_MODE_ZIG_ZAG (default) and
GST_CAPS_INTERSECT_MODE_FIRST.

API: gst_caps_intersect_full
API: GstCapsIntersectMode
API: GST_CAPS_INTERSECT_MODE_ZIG_ZAG
API: GST_CAPS_INTERSECT_MODE_FIRST

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

13 years agotests: add libscpp unit test to make sure g++ likes our library headers
Tim-Philipp Müller [Sat, 12 Mar 2011 17:01:39 +0000 (17:01 +0000)]
tests: add libscpp unit test to make sure g++ likes our library headers

13 years agobytereader, bytewriter: fix up inline functions to make g++ happy
Tim-Philipp Müller [Sat, 12 Mar 2011 16:58:01 +0000 (16:58 +0000)]
bytereader, bytewriter: fix up inline functions to make g++ happy

gstbytereader.h: In function ‘guint8* gst_byte_reader_dup_data_unchecked(GstByteReader*, guint)’:
gstbytereader.h:249:75: error: invalid conversion from ‘void*’ to ‘guint8*’
gstbytewriter.h: In function ‘gboolean _gst_byte_writer_ensure_free_space_inline(GstByteWriter*, guint)’:
gstbytewriter.h:196:75: error: invalid conversion from ‘void*’ to ‘guint8*’

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

13 years agogstelement: Fix typo in the docs
Thiago Santos [Tue, 22 Mar 2011 19:26:56 +0000 (16:26 -0300)]
gstelement: Fix typo in the docs

GST_ELEMENT_INFO will post a INFO message, not a WARNING

13 years agotagsetter: Removing unused debug category
Thiago Santos [Fri, 18 Mar 2011 11:22:23 +0000 (08:22 -0300)]
tagsetter: Removing unused debug category

tagsetter's debug category had a typo and was unused. Removing it.

13 years agoautogen: wingo signed comment
Luis de Bethencourt [Fri, 18 Mar 2011 18:34:57 +0000 (19:34 +0100)]
autogen: wingo signed comment

13 years agomultiqueue: Don't leak objects when flushing after dequeueing and before pushing...
Sebastian Dröge [Tue, 22 Mar 2011 10:04:20 +0000 (11:04 +0100)]
multiqueue: Don't leak objects when flushing after dequeueing and before pushing the object

13 years agomultiqueue: Really remove unused variable
Sebastian Dröge [Mon, 21 Mar 2011 16:54:10 +0000 (17:54 +0100)]
multiqueue: Really remove unused variable

13 years agomultiqueue: Increment unique item counter with atomic operations
Sebastian Dröge [Mon, 21 Mar 2011 16:52:13 +0000 (17:52 +0100)]
multiqueue: Increment unique item counter with atomic operations

Before it was only protected by the stream lock but every pad
has its own stream lock, making the protection rather useless.

13 years agomultiqueue: Unblock all waiting pads when shutting down
Sebastian Dröge [Mon, 21 Mar 2011 16:17:22 +0000 (17:17 +0100)]
multiqueue: Unblock all waiting pads when shutting down

13 years agomultiqueue: Remove unused variable
Sebastian Dröge [Mon, 21 Mar 2011 11:39:34 +0000 (12:39 +0100)]
multiqueue: Remove unused variable

13 years agomultiqueue: Exit loop function if the pad is flushing
Sebastian Dröge [Mon, 21 Mar 2011 15:28:37 +0000 (16:28 +0100)]
multiqueue: Exit loop function if the pad is flushing

Fixes possible deadlocks when flushing an unlinked pad that waits
for other pads to advance.

13 years agobuild: fix build with -Werror with GCC 4.6.0
Jason D. Clinton [Sat, 19 Mar 2011 22:06:12 +0000 (17:06 -0500)]
build: fix build with -Werror with GCC 4.6.0

This touches three areas of code, removes unused variables and discards
return values from two functions with (void).

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

13 years agoevent: Add since marker to GST_EVENT_SINK_MESSAGE
Sebastian Dröge [Sat, 19 Mar 2011 09:39:28 +0000 (10:39 +0100)]
event: Add since marker to GST_EVENT_SINK_MESSAGE

13 years agoinputselector: Stop waiting for a pad switch when the pad is flushing
Sebastian Dröge [Sat, 19 Mar 2011 07:55:57 +0000 (08:55 +0100)]
inputselector: Stop waiting for a pad switch when the pad is flushing

13 years agoinputselector: Move locking and signalling macros from the header to the source file
Sebastian Dröge [Sat, 19 Mar 2011 07:50:06 +0000 (08:50 +0100)]
inputselector: Move locking and signalling macros from the header to the source file

13 years agotask: fix GST_TASK_BROADCAST
Tim-Philipp Müller [Thu, 17 Mar 2011 23:42:48 +0000 (23:42 +0000)]
task: fix GST_TASK_BROADCAST

Surprisingly enough, you can't "breadcast" on a GCond.

Spotted by Rune Sætre.

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

13 years agoinputselector: Hold the selector lock while reading properties of the active pad
Sebastian Dröge [Thu, 17 Mar 2011 13:21:17 +0000 (14:21 +0100)]
inputselector: Hold the selector lock while reading properties of the active pad

13 years agoinputselector: Make sure that EOS is always sent downstream for the active pad
Sebastian Dröge [Thu, 17 Mar 2011 13:10:49 +0000 (14:10 +0100)]
inputselector: Make sure that EOS is always sent downstream for the active pad

It can happen that the currently active pad got the EOS event
before it was activated and the previously active pad got the
EOS event after it was deactivated. In that case we have to
send the EOS event from an inactive pad downstream.

13 years agoinputselector: Return GST_FLOW_OK until the selected pad pushed something downstream
Sebastian Dröge [Wed, 16 Mar 2011 17:19:11 +0000 (18:19 +0100)]
inputselector: Return GST_FLOW_OK until the selected pad pushed something downstream

This makes sure that during switches at no point in time all pads
have returned not-linked, which can happen when playing an audio-only
file with playbin2 and switching between the streams for example.

Fixes bug #644935.

13 years agopad: Document that pad blocks only make sense for sink pads in pull mode and src...
Sebastian Dröge [Wed, 16 Mar 2011 11:01:21 +0000 (12:01 +0100)]
pad: Document that pad blocks only make sense for sink pads in pull mode and src pads in push mode

See bug #644907.

13 years agoghostpad: The internally linked pad of the proxypad is the ghostpad
Sebastian Dröge [Wed, 16 Mar 2011 10:53:53 +0000 (11:53 +0100)]
ghostpad: The internally linked pad of the proxypad is the ghostpad

Previously we were returning the peerpad, which is the target
of the ghostpad.

13 years agobufferlist: Use a GQueue instead of a GList
Jonas Holmberg [Fri, 25 Feb 2011 15:20:49 +0000 (16:20 +0100)]
bufferlist: Use a GQueue instead of a GList

Adding a buffer to the end of a GstBufferList is supposed to be a fast
operation, but it was not since the iterator does not advance its
nextpointer when adding buffers and GList does not have a tail pointer.
Using a GQueue to store the buffers makes it easier to add buffers to
the end of the list and this operation will now be much more efficient.

Adding an entire GList of buffers using
gst_buffer_list_iterator_add_list() will however have to iterate over
the list being added to be able to update the tail pointer in the
GQueue.

13 years agoutils: fix ABI break when compiling gstreamer with -DGST_DISABLE_DEPRECATED
Tim-Philipp Müller [Thu, 10 Mar 2011 17:48:26 +0000 (17:48 +0000)]
utils: fix ABI break when compiling gstreamer with -DGST_DISABLE_DEPRECATED

GST_DISABLE_DEPRECATED should only affect visibility of declarations in headers,
not actually remove symbols. See GitDeveloperGuidelines and DeprecatingAPI
pages in wiki.

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

13 years agowin32: Update .def file for API addition
Edward Hervey [Thu, 10 Mar 2011 15:46:04 +0000 (16:46 +0100)]
win32: Update .def file for API addition

13 years agopwg: fix element name "videodrop" to "videorate"
Stefan Kost [Wed, 9 Mar 2011 14:15:33 +0000 (16:15 +0200)]
pwg: fix element name "videodrop" to "videorate"

13 years agotest: add tests for new element_factory api.
Stefan Kost [Tue, 8 Mar 2011 10:11:08 +0000 (12:11 +0200)]
test: add tests for new element_factory api.

13 years agogstutils: replace gst_element_factory_can_{sink,src}_caps
Thijs Vermeir [Wed, 23 Jun 2010 20:00:04 +0000 (22:00 +0200)]
gstutils: replace gst_element_factory_can_{sink,src}_caps

Add new functions to clarify how the caps are compared to the template caps of
the element factory. Improve the docs to point out the difference.

Deprecate: gst_element_factory_can_{src|sink}_caps
API: add gst_element_factory_can_{src|sink}_{any|all}_capps

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

13 years agotests: add a unit test for gst_caps_new_simple
Stefan Kost [Mon, 7 Mar 2011 21:13:56 +0000 (23:13 +0200)]
tests: add a unit test for gst_caps_new_simple

Add a test for the crash in bug #642271.

13 years agotests: add test to create a factory
Stefan Kost [Tue, 8 Mar 2011 09:55:29 +0000 (11:55 +0200)]
tests: add test to create a factory

13 years agotests: start a new test suite for element factories
Stefan Kost [Tue, 8 Mar 2011 08:36:30 +0000 (10:36 +0200)]
tests: start a new test suite for element factories

Move one test from gstelement suite.

13 years agopadtemplate: add missing ; in example (and trim whitespace)
Stefan Kost [Tue, 8 Mar 2011 09:34:19 +0000 (11:34 +0200)]
padtemplate: add missing ; in example (and trim whitespace)

13 years agostructure: gst_structure_empty_new() does better error checking
Stefan Kost [Tue, 8 Mar 2011 07:58:55 +0000 (09:58 +0200)]
structure: gst_structure_empty_new() does better error checking

No need to check for media_type!=NULL as the function we call that actual create
the structure does a full check anyway.

13 years agocaps,structure: trim trailing whitespace
Stefan Kost [Tue, 8 Mar 2011 08:06:23 +0000 (10:06 +0200)]
caps,structure: trim trailing whitespace

13 years agocaps: don't create broken caps for invalid media types
Jonathan Matthew [Thu, 3 Mar 2011 22:28:25 +0000 (08:28 +1000)]
caps: don't create broken caps for invalid media types

Check if structure has been created before appending it to the caps. Free the
caps in the case of an error to not conceal it be returning empty caps.

Fixes #642271

13 years agoexamples: update hello world example
Stefan Kost [Mon, 7 Mar 2011 14:21:47 +0000 (16:21 +0200)]
examples: update hello world example

Our helloworld example thatw e reference from the manual has been a bit
complicated to serve a first contact with gstreamer. Since we have and
promote playbin2 as a playback api use it here.

Based on work from Mathias Hasselmann <mathias.hasselmann@gmx.de>

Fixes #424143

13 years agofaq: Minor update to ssh key generation commands
Arun Raghavan [Wed, 2 Mar 2011 08:25:36 +0000 (13:55 +0530)]
faq: Minor update to ssh key generation commands

fd.o requires RSA keys, and in general, users would probably want to
make a per-server key file rather than overwrite id_rsa, id_rsa.pub.

13 years agoconfigure.ac: export plugin description more platform independent
Mark Nauwelaerts [Mon, 28 Feb 2011 17:43:41 +0000 (18:43 +0100)]
configure.ac: export plugin description more platform independent

Fixes #642504.

13 years agoAutomatic update of common submodule
Mark Nauwelaerts [Mon, 28 Feb 2011 17:32:07 +0000 (18:32 +0100)]
Automatic update of common submodule

From 1de7f6a to 6aec6b9

13 years agodocs: typo fixes
Tim-Philipp Müller [Mon, 28 Feb 2011 15:01:54 +0000 (15:01 +0000)]
docs: typo fixes

convinience -> convenience

13 years agotools: print "pad-added", "pad-removed" and "no-more-pads" signals for elements with...
Tim-Philipp Müller [Mon, 28 Feb 2011 14:56:23 +0000 (14:56 +0000)]
tools: print "pad-added", "pad-removed" and "no-more-pads" signals for elements with sometimes pads

It's often not obvious to people that elements like e.g. uridecodebin
(or demuxers) automatically support the standard signals of the
GstElement class, so let's print the useful pad-related ones for
elements with sometimes pads.

13 years agodocs: small updates as suggested on a blog
Stefan Kost [Mon, 28 Feb 2011 14:27:01 +0000 (16:27 +0200)]
docs: small updates as suggested on a blog

Link from convinience api to the underlying api.

13 years agouri: make win32 buildbot happy
Tim-Philipp Müller [Thu, 24 Feb 2011 17:11:49 +0000 (17:11 +0000)]
uri: make win32 buildbot happy

gsturi.c:854:16: error: unused variable 'abs_clean'
gsturi.c:788:1: error: 'gst_file_utils_canonicalise_path' defined but not used

13 years agofilesrc, filesink: fix URI creation regression for non-absolute locations
Tim-Philipp Müller [Thu, 24 Feb 2011 15:32:00 +0000 (15:32 +0000)]
filesrc, filesink: fix URI creation regression for non-absolute locations

Passing e.g. location=foo would lead to warnings because g_filename_to_uri()
wants an absolute file path and returns NULL otherwise. Use brand-new
gst_filename_to_uri() instead, which will try harder to create a proper
URI for us.

Also add unit test.

13 years agouri: add gst_filename_to_uri() that takes relative filenames
Tim-Philipp Müller [Thu, 24 Feb 2011 15:18:43 +0000 (15:18 +0000)]
uri: add gst_filename_to_uri() that takes relative filenames

Add function that (unlike the GLib equivalent) also accepts paths that
aren't absolute and will clean up relative markers such as ./ and ../
before forming a URI.

Fixes warnings with e.g. filesrc location=foo ! typefind caused by the
recent switch to g_filename_to_uri(), but also actually creates valid
URIs for the first time.

Windows code paths could need some more work, e.g. we don't clean up
the relative markers there for now (because path could have \ and /
as separators).

API: gst_filename_to_uri()

13 years agotests: refix the tests (missing #endif)
Stefan Kost [Thu, 24 Feb 2011 14:20:01 +0000 (16:20 +0200)]
tests: refix the tests (missing #endif)

13 years agoMakefile.am: add new abi headers to nodist_HEADERS
Stefan Kost [Thu, 24 Feb 2011 14:11:17 +0000 (16:11 +0200)]
Makefile.am: add new abi headers to nodist_HEADERS

13 years agogst-launch: add index support
Stefan Kost [Mon, 21 Feb 2011 09:24:45 +0000 (11:24 +0200)]
gst-launch: add index support

When option "-i" is given, set an index object on the pipeline and compute
statistics for all index writers. Print a sumary when shutting down the
pipeline.

13 years agotests: add abi check data for ARM (libs)
Stefan Kost [Thu, 24 Feb 2011 13:12:14 +0000 (15:12 +0200)]
tests: add abi check data for ARM (libs)

13 years agotests: add abi check data for ARM
Stefan Kost [Thu, 24 Feb 2011 13:02:37 +0000 (15:02 +0200)]
tests: add abi check data for ARM

13 years agodocs: tell that ORC_CODE can contain a list of flags
Stefan Kost [Wed, 23 Feb 2011 10:33:58 +0000 (12:33 +0200)]
docs: tell that ORC_CODE can contain a list of flags

13 years agobasetransform: Be smarter with pad allocs
Thiago Santos [Mon, 14 Feb 2011 21:05:09 +0000 (18:05 -0300)]
basetransform: Be smarter with pad allocs

Avoid doing unnecessary pad-allocs when on passthrough mode.
If multiple basetransform elements are on a pipeline, they
would do a pad-alloc for each received buffer, each element
would do this, so we would have lots of pad allocs on the
pipeline for a single buffer being pushed through it.

This patch attempts to reduce this amount by avoiding
doing pad-allocs if the element has already done it
after the last pushed buffer. So it will only be allowed
to do a new pad-alloc after it has pushed a buffer, so we get
1x1 pad-alloc and buffer ratio

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

13 years agodocs: fix typo in gst_index_new() docs
Philip Jägenstedt [Mon, 21 Feb 2011 12:39:38 +0000 (13:39 +0100)]
docs: fix typo in gst_index_new() docs

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

13 years agofakesink: print new MEDIA4 flag as well
Tim-Philipp Müller [Mon, 21 Feb 2011 12:44:05 +0000 (12:44 +0000)]
fakesink: print new MEDIA4 flag as well

13 years agominiobject, buffer: steal miniobject flag for use as MEDIA4 buffer flag
Robert Swain [Mon, 3 Jan 2011 10:37:05 +0000 (11:37 +0100)]
miniobject, buffer: steal miniobject flag for use as MEDIA4 buffer flag

This was required to add a new MEDIA4 buffer flag for indicating
progressive/mixed telecine video buffers. There is no space for
additional flags in GstBuffer, so steal one from GstMiniObject.

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

13 years agodocs: add some more Since: markers to atomic queue docs
Tim-Philipp Müller [Sun, 20 Feb 2011 16:11:27 +0000 (16:11 +0000)]
docs: add some more Since: markers to atomic queue docs

13 years agoRevert "element: Call ->release_pad() to clean up pad"
Edward Hervey [Mon, 21 Feb 2011 10:55:50 +0000 (11:55 +0100)]
Revert "element: Call ->release_pad() to clean up pad"

This commit changes the request pad behaviour for plugins and applications.

Reopens Bug #402562

The proper fix for that bug is to keep track of created request pads.

This reverts commit a5e44ffffaa6d7a8d7af8dcb77e37990996253a5.

13 years agoindex: add FIXME-0.11: comments
Stefan Kost [Mon, 21 Feb 2011 08:03:16 +0000 (10:03 +0200)]
index: add FIXME-0.11: comments

13 years agodocs: improve index docs
Stefan Kost [Tue, 15 Feb 2011 08:57:08 +0000 (10:57 +0200)]
docs: improve index docs