platform/upstream/gst-rtsp-server.git
13 years agoserver: add locking
Wim Taymans [Wed, 12 Jan 2011 17:57:41 +0000 (18:57 +0100)]
server: add locking

13 years agoexample: improve example docs a little
Wim Taymans [Wed, 12 Jan 2011 17:33:49 +0000 (18:33 +0100)]
example: improve example docs a little

13 years agoserver: ensure the watch has a ref to the server
Wim Taymans [Wed, 12 Jan 2011 17:26:57 +0000 (18:26 +0100)]
server: ensure the watch has a ref to the server

13 years agoserver: simpify channel function
Wim Taymans [Wed, 12 Jan 2011 17:24:44 +0000 (18:24 +0100)]
server: simpify channel function

13 years agoserver: simplify management of channel and source
Wim Taymans [Wed, 12 Jan 2011 17:18:13 +0000 (18:18 +0100)]
server: simplify management of channel and source

We don't need to keep around the channel and source objects. Let the mainloop
and the source manage the source and channel respectively.

13 years agobuild tests
Wim Taymans [Wed, 12 Jan 2011 17:17:26 +0000 (18:17 +0100)]
build tests

13 years agotests: add tests directory and cleanup test
Wim Taymans [Wed, 12 Jan 2011 17:16:46 +0000 (18:16 +0100)]
tests: add tests directory and cleanup test

13 years agoserver: improve debugging in various objects
Wim Taymans [Wed, 12 Jan 2011 17:14:48 +0000 (18:14 +0100)]
server: improve debugging in various objects

13 years agoserver: chain up to the parent finalize
Wim Taymans [Wed, 12 Jan 2011 15:38:34 +0000 (16:38 +0100)]
server: chain up to the parent finalize

13 years agogst-rtsp-server: update python bindings
André Dieb Martins [Tue, 21 Sep 2010 20:04:02 +0000 (17:04 -0300)]
gst-rtsp-server: update python bindings

13 years agoclient: use the response from the clientstate
Wim Taymans [Wed, 12 Jan 2011 14:37:39 +0000 (15:37 +0100)]
client: use the response from the clientstate

Create the response object only once and store in the client state.
Make all methods use the state response,

13 years agoserver: use signal to keep track of clients
Wim Taymans [Wed, 12 Jan 2011 14:36:22 +0000 (15:36 +0100)]
server: use signal to keep track of clients

Keep track of all the clients that the server creates and remove them when they
fire the 'closed' signal.

13 years agoclient: emit signal when closing
Wim Taymans [Wed, 12 Jan 2011 14:35:51 +0000 (15:35 +0100)]
client: emit signal when closing

13 years agomedia: enable per factory authorisations
Wim Taymans [Wed, 12 Jan 2011 12:57:09 +0000 (13:57 +0100)]
media: enable per factory authorisations

Allow for adding a GstRTSPAuth on the factory and media level and check
permissions when accessing the factory.
Add hints to the auth methods for future more fine grained authorisation.
Add example application for per factory authentication.

13 years agortsp-server: Pass ClientState structure arround
Wim Taymans [Wed, 12 Jan 2011 12:16:08 +0000 (13:16 +0100)]
rtsp-server: Pass ClientState structure arround

Pass the collected information for the ongoing request in a GstRTSPClientState
structure that we can then pass around to simplify the method arguments. This
will also be handy when we implement logging functionality.

13 years agomedia-factory: add methods to configure authorisation
Wim Taymans [Wed, 12 Jan 2011 11:07:40 +0000 (12:07 +0100)]
media-factory: add methods to configure authorisation

13 years agoclient: unref auth in finalize
Wim Taymans [Wed, 12 Jan 2011 11:07:20 +0000 (12:07 +0100)]
client: unref auth in finalize

13 years agoserver: unref auth in finalize
Wim Taymans [Wed, 12 Jan 2011 11:07:04 +0000 (12:07 +0100)]
server: unref auth in finalize

13 years agodocs: add more docs
Wim Taymans [Wed, 12 Jan 2011 10:07:26 +0000 (11:07 +0100)]
docs: add more docs

13 years agoserver: separate create and accept
Wim Taymans [Wed, 12 Jan 2011 09:57:08 +0000 (10:57 +0100)]
server: separate create and accept

Create separate create and accept methods so that subclasses can create custom
client object.
Configure the server in the client object and prepare for keeping track of
connected clients.

13 years agoclient: add support for setting the server.
Wim Taymans [Wed, 12 Jan 2011 09:42:52 +0000 (10:42 +0100)]
client: add support for setting the server.

Add support for keeping a ref to the server that started this client
connection.

13 years agoauth: fix memleak and add some docs
Wim Taymans [Wed, 12 Jan 2011 09:41:42 +0000 (10:41 +0100)]
auth: fix memleak and add some docs

Fix a memleak of the basic auth token.
Add docs for the helper function

13 years agoclient: delegate setup of auth to the manager
Wim Taymans [Tue, 11 Jan 2011 23:35:28 +0000 (00:35 +0100)]
client: delegate setup of auth to the manager

Delegate the configuration of the authentication tokens to the manager object
when configured.

13 years agoauth: add authentication object
Wim Taymans [Tue, 11 Jan 2011 23:17:54 +0000 (00:17 +0100)]
auth: add authentication object

Add an object that can check the authorization of requests.
Implement basic authentication.
Add example authentication to test-video

13 years agoserver: move includes back
Wim Taymans [Tue, 11 Jan 2011 23:20:36 +0000 (00:20 +0100)]
server: move includes back

the includes are needed for sockaddr_in.

13 years agortsp: move network includes where they are needed
Wim Taymans [Tue, 11 Jan 2011 21:41:12 +0000 (22:41 +0100)]
rtsp: move network includes where they are needed

13 years agortsp-media.h: Minor corrections in comments.
Sreerenj Balachandran [Fri, 7 Jan 2011 21:45:32 +0000 (23:45 +0200)]
rtsp-media.h: Minor corrections in comments.

Fixes #638944

13 years agoAutomatic update of common submodule
Stefan Kost [Tue, 11 Jan 2011 13:52:44 +0000 (15:52 +0200)]
Automatic update of common submodule

From e572c87 to f94d739

13 years agogitignore: updates
Edward Hervey [Tue, 11 Jan 2011 12:01:44 +0000 (13:01 +0100)]
gitignore: updates

13 years agodocs: We don't build ps/pdf for API reference docs
Edward Hervey [Tue, 11 Jan 2011 11:58:39 +0000 (12:58 +0100)]
docs: We don't build ps/pdf for API reference docs

13 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 10 Jan 2011 16:39:36 +0000 (16:39 +0000)]
Automatic update of common submodule

From ccbaa85 to e572c87

13 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 10 Jan 2011 14:56:39 +0000 (14:56 +0000)]
Automatic update of common submodule

From 46445ad to ccbaa85

13 years agofunnel: rename fsfunnel to rtspfunnel
Wim Taymans [Mon, 10 Jan 2011 14:10:53 +0000 (15:10 +0100)]
funnel: rename fsfunnel to rtspfunnel

Rename the funnel to avoid conflicts with the farsight one.

13 years agortsp-media: add and use fsfunnel
Wim Taymans [Mon, 10 Jan 2011 12:41:43 +0000 (13:41 +0100)]
rtsp-media: add and use fsfunnel

Add a copy of fsfunnel to the build because input-selector removed the (broken)
select-all property that we need.

13 years agogobject-introspection: use PKG_CONFIG_PATH specified at configure time
Tim-Philipp Müller [Sat, 8 Jan 2011 01:58:44 +0000 (01:58 +0000)]
gobject-introspection: use PKG_CONFIG_PATH specified at configure time

Use PKG_CONFIG_PATH specified at configure time (if any) as well
for the g-ir-compiler, rather than just assuming the env var has
been set.

13 years agobuild: make autotools put all .m4 cruft into m4/ rather than polluting common/m4
Tim-Philipp Müller [Sat, 8 Jan 2011 01:55:06 +0000 (01:55 +0000)]
build: make autotools put all .m4 cruft into m4/ rather than polluting common/m4

13 years agogobject-introspection: fix g-i build for uninstalled setup
Tim-Philipp Müller [Sat, 8 Jan 2011 01:15:35 +0000 (01:15 +0000)]
gobject-introspection: fix g-i build for uninstalled setup

Requires gst-plugins-base git (> 0.10.31.2).

13 years agoexamples: add some more options and comments
Wim Taymans [Fri, 7 Jan 2011 10:27:57 +0000 (11:27 +0100)]
examples: add some more options and comments

13 years agofactory-uri: use right property type
Wim Taymans [Fri, 7 Jan 2011 10:24:39 +0000 (11:24 +0100)]
factory-uri: use right property type

13 years agofactory-uri: attempt to configure buffer-lists
Wim Taymans [Wed, 5 Jan 2011 11:07:42 +0000 (12:07 +0100)]
factory-uri: attempt to configure buffer-lists

Attempt to configure buffer lists in the payloader for improved performance.

13 years agomedia: attempt to configure bigger UDP buffers
Wim Taymans [Wed, 5 Jan 2011 11:06:23 +0000 (12:06 +0100)]
media: attempt to configure bigger UDP buffers

Attempt to configure bigger udp kernel send buffers to avoid overflowing the
send buffers with high bitrate streams.

13 years agoclient: use the socket length from getsockname
Jonas Larsson [Wed, 5 Jan 2011 10:26:30 +0000 (11:26 +0100)]
client: use the socket length from getsockname

Use the length returned by getsockname to perform the getnameinfo call because
the size can depend on the socket type and platform.

Fixes #638723

13 years agodocs: add uri factory to the docs
Wim Taymans [Thu, 30 Dec 2010 11:41:53 +0000 (12:41 +0100)]
docs: add uri factory to the docs

13 years agodocs: improve docs
Wim Taymans [Thu, 30 Dec 2010 11:41:31 +0000 (12:41 +0100)]
docs: improve docs

13 years agortsp-server: add support for buffer lists
Wim Taymans [Wed, 29 Dec 2010 15:26:41 +0000 (16:26 +0100)]
rtsp-server: add support for buffer lists

Add support for sending bufferlists received from appsink.

Fixes #635832

13 years agomedia: make method to retrieve the play range
Wim Taymans [Tue, 28 Dec 2010 17:35:01 +0000 (18:35 +0100)]
media: make method to retrieve the play range

Make a method to retrieve the playback range so that we can conditionally create
a different range for the SDP and the PLAY requests.

13 years agomedia: add signal to notify of state changes
Wim Taymans [Tue, 28 Dec 2010 17:34:10 +0000 (18:34 +0100)]
media: add signal to notify of state changes

13 years agoclient: cleanup headers
Wim Taymans [Tue, 28 Dec 2010 17:31:26 +0000 (18:31 +0100)]
client: cleanup headers

13 years agoclient: fix typo
Wim Taymans [Tue, 28 Dec 2010 11:18:41 +0000 (12:18 +0100)]
client: fix typo

13 years agofactory-uri: add support for gstpay
Wim Taymans [Thu, 23 Dec 2010 17:53:01 +0000 (18:53 +0100)]
factory-uri: add support for gstpay

Add an option to prefer gstpay over decoder + raw payloader.

13 years agofactory-uri: rework the autoplugger.
Wim Taymans [Thu, 23 Dec 2010 14:58:14 +0000 (15:58 +0100)]
factory-uri: rework the autoplugger.

Rewrite the autoplugger a little so that it prefers to plug demuxers and parsers
before payloaders.

13 years agofactory-uri: use better factory filter
Wim Taymans [Tue, 21 Dec 2010 16:37:26 +0000 (17:37 +0100)]
factory-uri: use better factory filter

Make better payloader filter based on autoplug rank and RTP use case.

13 years agoAutomatic update of common submodule
Edward Hervey [Mon, 20 Dec 2010 16:48:41 +0000 (17:48 +0100)]
Automatic update of common submodule

From 169462a to 46445ad

13 years agoserver: set SO_REUSEADDR before bind
Wim Taymans [Sat, 18 Dec 2010 10:24:48 +0000 (11:24 +0100)]
server: set SO_REUSEADDR before bind

Set the SO_REUSEADDR _before_ bind() to make it actually work.

13 years agomedia: emit prepared signal when prepared
Wim Taymans [Mon, 13 Dec 2010 15:58:36 +0000 (16:58 +0100)]
media: emit prepared signal when prepared

Make a 'prepared' signal and emit it when we successfully prepared the element.
This signal can be used to configure the media object after it has been prepared
for streaming.

13 years agoAutomatic update of common submodule
Stefan Kost [Wed, 15 Dec 2010 12:58:00 +0000 (14:58 +0200)]
Automatic update of common submodule

From 011bcc8 to 169462a

13 years agopython an optional dependency
Andy Wingo [Mon, 13 Dec 2010 15:38:09 +0000 (16:38 +0100)]
python an optional dependency

* configure.ac: Move up valgrind and g-i checks. Make the python
  dependency optional, as it was before.

13 years agomedia: update range when active clients changed
Wim Taymans [Sun, 12 Dec 2010 14:48:47 +0000 (15:48 +0100)]
media: update range when active clients changed

When we changed the number of active clients, update the current range
information because we want the second client connecting to a shared resource
continue from where the stream currently.

13 years agofactory-uri: add colorspace and fix pt
Wim Taymans [Sun, 12 Dec 2010 03:06:41 +0000 (04:06 +0100)]
factory-uri: add colorspace and fix pt

Rework the way we pass data to the autoplugger.
When we have raw caps, plug a converter element to make pluggin to raw
payloaders more successful.
Make sure all dynamically plugged payloaders have a unique payload types.

13 years agoexample: add example of the uri factory
Wim Taymans [Sat, 11 Dec 2010 17:06:26 +0000 (18:06 +0100)]
example: add example of the uri factory

13 years agofactory-uri: add a factory to stream any URI
Wim Taymans [Sat, 11 Dec 2010 17:01:53 +0000 (18:01 +0100)]
factory-uri: add a factory to stream any URI

Make a factory that uses uridecodebin to decode any uri and autoplug a payloader
when we have one.

13 years agomedia: ignore spurious ASYNC_DONE messages
Wim Taymans [Sat, 11 Dec 2010 16:31:44 +0000 (17:31 +0100)]
media: ignore spurious ASYNC_DONE messages

When we are dynamically adding pads, the addition of the udpsrc elements will
trigger an ASYNC_DONE. We have to ignore this because we only want to react to
the real ASYNC_DONE when everything is prerolled.

13 years agomedia-factory: make lock macro
Wim Taymans [Sat, 11 Dec 2010 12:41:24 +0000 (13:41 +0100)]
media-factory: make lock macro

13 years agortsp-server: Remove unused variable and dead assignment
Edward Hervey [Sat, 11 Dec 2010 09:53:28 +0000 (10:53 +0100)]
rtsp-server: Remove unused variable and dead assignment

13 years agoexamples: Run gst-indent
Edward Hervey [Sat, 11 Dec 2010 09:49:30 +0000 (10:49 +0100)]
examples: Run gst-indent

13 years agortsp-server: Run gst-indent
Edward Hervey [Sat, 11 Dec 2010 09:48:42 +0000 (10:48 +0100)]
rtsp-server: Run gst-indent

Since it wasn't using the upstream common previously, there was no
indentation check before commiting.

13 years agortsp-server: Some more doc fixups
Edward Hervey [Sat, 11 Dec 2010 09:48:25 +0000 (10:48 +0100)]
rtsp-server: Some more doc fixups

13 years agoMakefile: Add cruft-cleaning support
Edward Hervey [Tue, 7 Dec 2010 17:56:03 +0000 (18:56 +0100)]
Makefile: Add cruft-cleaning support

13 years agodocs: Add gtk-doc build system
Edward Hervey [Tue, 7 Dec 2010 17:52:15 +0000 (18:52 +0100)]
docs: Add gtk-doc build system

13 years agoMakefile.am: Use standard GIR make behaviour
Edward Hervey [Tue, 7 Dec 2010 17:14:39 +0000 (18:14 +0100)]
Makefile.am: Use standard GIR make behaviour

13 years agoautogen/configure: Bring more in sync to standard gst module behaviour
Edward Hervey [Tue, 7 Dec 2010 17:14:22 +0000 (18:14 +0100)]
autogen/configure: Bring more in sync to standard gst module behaviour

13 years agoAdd common submodule
Edward Hervey [Wed, 1 Dec 2010 19:00:22 +0000 (20:00 +0100)]
Add common submodule

13 years agocommon: Remove static version
Edward Hervey [Wed, 1 Dec 2010 18:58:49 +0000 (19:58 +0100)]
common: Remove static version

13 years agoUpdate introspection.m4 to match usage
Bastien Nocera [Mon, 8 Nov 2010 17:04:00 +0000 (17:04 +0000)]
Update introspection.m4 to match usage

13 years agoREADME: update
Wim Taymans [Sat, 30 Oct 2010 11:26:12 +0000 (13:26 +0200)]
README: update

Remove old stuff from the README

13 years agoback to development
Wim Taymans [Mon, 11 Oct 2010 09:12:11 +0000 (11:12 +0200)]
back to development

13 years agorelease 0.10.7
Wim Taymans [Mon, 11 Oct 2010 09:05:40 +0000 (11:05 +0200)]
release 0.10.7

13 years agotest-ogg: remove parsers
Wim Taymans [Mon, 4 Oct 2010 15:16:40 +0000 (17:16 +0200)]
test-ogg: remove parsers

Remove the parsers, they are not needed anymore as oggdemux now outputs normal
buffers with timestamps. Using the parsers also seems to break things.

13 years agoUpdated Vala bindings
Sebastian Pölsterl [Thu, 23 Sep 2010 10:44:18 +0000 (12:44 +0200)]
Updated Vala bindings

13 years agoAdded initial gobject-introspection support
Sebastian Pölsterl [Wed, 22 Sep 2010 21:13:37 +0000 (23:13 +0200)]
Added initial gobject-introspection support

13 years agomedia-factory: don't use host for shared hash key
Wim Taymans [Thu, 23 Sep 2010 09:32:58 +0000 (11:32 +0200)]
media-factory: don't use host for shared hash key

When we generate the key to share made between connections, don't include the
host used to connect so that we can share media even if between clients that
connected with localhost and ones with the ip address.

13 years agobuild: fix distcheck
Tim-Philipp Müller [Wed, 22 Sep 2010 20:16:03 +0000 (21:16 +0100)]
build: fix distcheck

13 years agoUpdate Vala bindings
Sebastian Dröge [Wed, 22 Sep 2010 16:24:12 +0000 (18:24 +0200)]
Update Vala bindings

13 years agoFix configure checks and installation location for Vala bindings
Sebastian Dröge [Wed, 22 Sep 2010 16:12:50 +0000 (18:12 +0200)]
Fix configure checks and installation location for Vala bindings

Fixes bug #628676.

13 years agoback to development
Wim Taymans [Wed, 22 Sep 2010 14:32:30 +0000 (16:32 +0200)]
back to development

13 years agoconfigure: release 0.10.6
Wim Taymans [Wed, 22 Sep 2010 14:22:49 +0000 (16:22 +0200)]
configure: release 0.10.6

13 years agomedia: help the compiler a little
Wim Taymans [Wed, 22 Sep 2010 14:15:56 +0000 (16:15 +0200)]
media: help the compiler a little

13 years agomedia: cleanup media transport before freeing
Wim Taymans [Tue, 24 Aug 2010 14:47:30 +0000 (16:47 +0200)]
media: cleanup media transport before freeing

Cleanup the media transport data before freeing. In particular, remove the qdata
from the rtpsource object.

13 years agomedia-factory: add eos-shutdown property
Wim Taymans [Fri, 20 Aug 2010 16:17:08 +0000 (18:17 +0200)]
media-factory: add eos-shutdown property

Add an eos-shutdown property that will send an EOS to the pipeline before
shutting it down. This allows for nice cleanup in case of a muxer.

Fixes #625597

13 years agomedia: use multiudpsink send-duplicates when we can
Wim Taymans [Fri, 20 Aug 2010 13:58:39 +0000 (15:58 +0200)]
media: use multiudpsink send-duplicates when we can

If we have a new enough multiudpsink with the send-duplicates property, use this
instead of doing our own filtering. Our custom filtering code should eventually
be removed when we can depend on a released -good.

13 years agomedia: don't leak destinations
Wim Taymans [Fri, 20 Aug 2010 11:19:56 +0000 (13:19 +0200)]
media: don't leak destinations

Refactor and cleanup the destinations array when the stream is destroyed.

13 years agomedia: don't add udp addresses multiple times
Wim Taymans [Fri, 20 Aug 2010 11:09:12 +0000 (13:09 +0200)]
media: don't add udp addresses multiple times

Keep track of the udp addresses we added to udpsink and never add the same udp
destination twice. This avoids duplicate packets when using multicast.

13 years agoserver: disable use of SO_LINGER
Wim Taymans [Fri, 20 Aug 2010 08:18:34 +0000 (10:18 +0200)]
server: disable use of SO_LINGER

SO_LINGER cause the client to fail to receive a TEARDOWN message because the
server close()s the connection.

13 years agoserver: use 5 second linger period in SO_LINGER
Wim Taymans [Thu, 19 Aug 2010 16:52:47 +0000 (18:52 +0200)]
server: use 5 second linger period in SO_LINGER

Wait 5 seconds before clearing the send buffers and reseting the connection with
the client when we do a close. This should be enough time to get the message to
the client.

See #622757

13 years agoserver: use SO_LINGER
Robert Krakora [Mon, 16 Aug 2010 10:32:28 +0000 (12:32 +0200)]
server: use SO_LINGER

SO_LINGER on the socket will make sure that any pending data on the socket is
flushed ASAP and that the socket connection is reset. This makes sure that the
socket can be reused immediately.

Fixes 622757

13 years agoREADME: add blurb about shared media factories
Wim Taymans [Mon, 16 Aug 2010 10:24:50 +0000 (12:24 +0200)]
README: add blurb about shared media factories

13 years agoAdd stdlib.h for atoi()
David Schleef [Mon, 9 Aug 2010 19:56:23 +0000 (12:56 -0700)]
Add stdlib.h for atoi()

14 years agobuild: distcheck fixes
Tim-Philipp Müller [Thu, 20 May 2010 13:33:24 +0000 (14:33 +0100)]
build: distcheck fixes

Fix 'make distcheck', somewhat (it still fails because it tries to
install files into /usr/share/vala/vapi/ irrespective of the
configured prefix).

14 years agoconfigure: bump core/base requirements to released version
Tim-Philipp Müller [Thu, 20 May 2010 13:09:18 +0000 (14:09 +0100)]
configure: bump core/base requirements to released version

Makes things less confusing for people.

14 years agoconfigure: fail if GStreamer core/base requirements are not met
Tim-Philipp Müller [Sun, 25 Apr 2010 15:35:30 +0000 (16:35 +0100)]
configure: fail if GStreamer core/base requirements are not met