Wim Taymans [Thu, 10 Jul 2014 15:37:45 +0000 (17:37 +0200)]
docs: update docs
Wim Taymans [Thu, 10 Jul 2014 15:10:06 +0000 (17:10 +0200)]
server: implement client REMOVE filter
Wim Taymans [Thu, 10 Jul 2014 15:05:13 +0000 (17:05 +0200)]
client: expose _close() method
Expose a previously internal close method to close the client
connection.
Wim Taymans [Thu, 10 Jul 2014 10:20:15 +0000 (12:20 +0200)]
session-pool: signal session-removed outside of the lock
Release the lock before emiting the session-removed signal.
Wim Taymans [Thu, 10 Jul 2014 09:32:20 +0000 (11:32 +0200)]
filter: Release lock in filter functions
Release the object lock before calling the filter functions. We need to
keep a cookie to detect when the list changed during the filter
callback. We also keep a hashtable to make sure we only call the filter
function once for each object in case of concurrent modification.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732950
Ognyan Tonchev [Wed, 9 Jul 2014 13:16:08 +0000 (15:16 +0200)]
client: check if watch is set in handle_teardown()
The unit tests run without a watch
Ognyan Tonchev [Wed, 9 Jul 2014 12:19:10 +0000 (14:19 +0200)]
client tests: send teardown to cleanup session
Ognyan Tonchev [Wed, 9 Jul 2014 12:17:46 +0000 (14:17 +0200)]
server tests: send teardown to cleanup session
Ognyan Tonchev [Wed, 9 Jul 2014 13:01:31 +0000 (15:01 +0200)]
client: keep ref to client for the session removed handler
This extra ref will be dropped when all client sessions have been
removed. A session is removed when a client sends teardown, closes its
endpoint of the TCP connection or the sessions expires.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732226
Wim Taymans [Tue, 8 Jul 2014 10:36:12 +0000 (12:36 +0200)]
client: manage media in session as a last step
Once we manage a media in a session, we can't unmanage it anymore
without destroying it. Therefore, first check everything before we
manage the media, otherwise if something is wrong we have no way to
unmanage the media.
If we created a new session and something went wrong, remove the session
again. Fixes a leak in the unit test.
Tim-Philipp Müller [Thu, 3 Jul 2014 18:52:42 +0000 (19:52 +0100)]
examples: print 'stream ready at url' for mp4 and ogg example
Wim Taymans [Wed, 2 Jul 2014 14:04:53 +0000 (16:04 +0200)]
rtsp: fix for MIKEY api change
Wim Taymans [Tue, 1 Jul 2014 14:12:13 +0000 (16:12 +0200)]
client: free watch context only once
The watch context is freed when the source is destroyed. Avoids
a CRITICAL when we try to unref the context twice.
Wim Taymans [Tue, 1 Jul 2014 13:02:15 +0000 (15:02 +0200)]
client: fix build
Wim Taymans [Tue, 1 Jul 2014 12:41:14 +0000 (14:41 +0200)]
client: protect sessions with lock
Protect the list of sessions with the lock.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732226
Wim Taymans [Tue, 1 Jul 2014 10:13:47 +0000 (12:13 +0200)]
Client: keep a ref to the session
Don't just keep a weak ref to the session objects but use a hard ref. We
will be notified when a session is removed from the pool (expired) with
the new session-removed signal.
Don't automatically close the RTSP connection when all the sessions of
a client are removed, a client can continue to operate and it can create
a new session if it wants. If you want to remove the client from the
server, you have to use gst_rtsp_server_client_filter() now.
Based on patch from Ognyan Tonchev <ognyan.tonchev at axis.com>
See https://bugzilla.gnome.org/show_bug.cgi?id=732226
Wim Taymans [Mon, 30 Jun 2014 13:14:34 +0000 (15:14 +0200)]
session-pool: add session-removed signal
Add a signal to be notified when a session is removed from the pool.
Evan Nemerson [Mon, 30 Jun 2014 07:37:59 +0000 (00:37 -0700)]
Make rtsp-server.h a single-include header, use it for G-I
https://bugzilla.gnome.org/show_bug.cgi?id=732411
Sebastian Dröge [Sat, 28 Jun 2014 09:48:29 +0000 (11:48 +0200)]
Release 1.3.90
Wim Taymans [Fri, 27 Jun 2014 14:54:22 +0000 (16:54 +0200)]
stream: crypto can be NULL
Evan Nemerson [Wed, 11 Jun 2014 23:42:08 +0000 (16:42 -0700)]
introspection: add missing allow-none annotations
https://bugzilla.gnome.org/show_bug.cgi?id=730952
Evan Nemerson [Wed, 11 Jun 2014 23:38:36 +0000 (16:38 -0700)]
introspection: add (nullable) annotations to return values
https://bugzilla.gnome.org/show_bug.cgi?id=730952
Evan Nemerson [Tue, 24 Jun 2014 07:48:45 +0000 (09:48 +0200)]
gi: improve annotations
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730953
Wim Taymans [Tue, 24 Jun 2014 07:43:44 +0000 (09:43 +0200)]
signals: use generic marshal function
Use the generic C marshal function.
Use more explicit type instead of G_TYPE_POINTER
Wim Taymans [Tue, 24 Jun 2014 07:42:47 +0000 (09:42 +0200)]
context: add type macro
Wim Taymans [Tue, 24 Jun 2014 07:34:50 +0000 (09:34 +0200)]
sdp: hide key length defines
They don't have a namespace.
Sebastian Dröge [Sun, 22 Jun 2014 17:37:31 +0000 (19:37 +0200)]
Back to development
Sebastian Dröge [Sun, 22 Jun 2014 17:36:14 +0000 (19:36 +0200)]
Release 1.3.3
Aleix Conchillo Flaqué [Tue, 20 May 2014 21:48:37 +0000 (14:48 -0700)]
mikey: add different key length parameters
Add encryption and authentication key length parameters to MIKEY. For
the encoders, the key lengths are obtained from the cipher and auth
algorithms set in the caps. For the decoders, they are obtained while
parsing the key management from the client.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730472
Ognyan Tonchev [Sun, 16 Mar 2014 16:29:48 +0000 (17:29 +0100)]
stream tests: Make sure we get right multicast address from stream
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731577
Ognyan Tonchev [Thu, 12 Jun 2014 11:49:17 +0000 (13:49 +0200)]
client: ref the context until rtsp watch is alive
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731569
Ognyan Tonchev [Thu, 12 Jun 2014 11:48:44 +0000 (13:48 +0200)]
client: Destroy the rtsp watch after connection close
Wim Taymans [Fri, 13 Jun 2014 14:46:06 +0000 (16:46 +0200)]
media: fix confusing comment
Göran Jönsson [Tue, 27 May 2014 10:36:52 +0000 (12:36 +0200)]
rtsp-session: Timeout in header.
Adding the possbilty to always have timout in header.
This is configurabe with setting "timeout-always-visible".
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728264
Sebastian Dröge [Wed, 21 May 2014 11:23:40 +0000 (13:23 +0200)]
Back to development
Sebastian Dröge [Wed, 21 May 2014 11:06:36 +0000 (13:06 +0200)]
Release 1.3.2
Sebastian Dröge [Wed, 21 May 2014 08:54:05 +0000 (10:54 +0200)]
Automatic update of common submodule
From
211fa5f to
1f5d3c3
Wim Taymans [Tue, 20 May 2014 13:57:30 +0000 (15:57 +0200)]
client: store TCP ports in transport
Store the TCP ports in the transport when we are doing RTSP over TCP.
This way, we can easily get to the ports from the transport.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=729776
Aleix Conchillo Flaqué [Fri, 16 May 2014 01:15:04 +0000 (18:15 -0700)]
stream: add signals for new RTP/RTCP encoders
New signals to allow the user to configure the dynamically created
encoders.
https://bugzilla.gnome.org/show_bug.cgi?id=730228
Ognyan Tonchev [Wed, 14 May 2014 07:31:31 +0000 (09:31 +0200)]
media: Make suspend()/unsuspend() virtual
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730109
Aleix Conchillo Flaqué [Sat, 10 May 2014 00:25:07 +0000 (17:25 -0700)]
client: fix send-message signal marshaller
Use generic marshalling for the send-message signal. It has
two POINTER arguments, not just one.
https://bugzilla.gnome.org/show_bug.cgi?id=729900
Wim Taymans [Fri, 9 May 2014 13:08:48 +0000 (15:08 +0200)]
tests: add and remove pads only once
In this test we simulate a dynamic pad by watching the caps event.
Because of renegotiation in the base payloader now, this caps is sent
multiple times but we can only deal with 1 invocation, use a variable to
only 'add and remove' the pad once.
Tim-Philipp Müller [Fri, 2 May 2014 19:06:29 +0000 (20:06 +0100)]
tests: add unit test for correct handling of Require headers
https://bugzilla.gnome.org/show_bug.cgi?id=729426
Tim-Philipp Müller [Fri, 2 May 2014 18:59:23 +0000 (19:59 +0100)]
rtsp-client: handle Require headers and respond with OPTION_NOT_SUPPORTED
Servers must handle Require headers and must report a failure
if they don't handle any of the Required options, see RFC 2326,
section 12.32: https://tools.ietf.org/html/rfc2326#page-54
https://bugzilla.gnome.org/show_bug.cgi?id=729426
Sebastian Dröge [Sat, 3 May 2014 18:48:43 +0000 (20:48 +0200)]
Back to development
Sebastian Dröge [Sat, 3 May 2014 16:40:24 +0000 (18:40 +0200)]
Release 1.3.1
Sebastian Dröge [Sat, 3 May 2014 08:18:00 +0000 (10:18 +0200)]
Automatic update of common submodule
From
bcb1518 to
211fa5f
Tim-Philipp Müller [Fri, 2 May 2014 18:58:15 +0000 (19:58 +0100)]
Update .gitignore
Tim-Philipp Müller [Fri, 2 May 2014 18:57:23 +0000 (19:57 +0100)]
tests: fix memory leak in sessionmedia unit test
Wim Taymans [Thu, 1 May 2014 04:17:06 +0000 (06:17 +0200)]
client: emit a signal before sending a message
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728970
Wim Taymans [Thu, 1 May 2014 04:07:08 +0000 (06:07 +0200)]
client: pass context to send_message
Pass the current context to send_message, we will need it later.
Wim Taymans [Thu, 1 May 2014 03:29:54 +0000 (05:29 +0200)]
client: fix typo in comment
Ognyan Tonchev [Mon, 14 Apr 2014 13:17:14 +0000 (15:17 +0200)]
media: Do not stop thread twice if default_prepare() fails
Wim Taymans [Tue, 15 Apr 2014 14:51:17 +0000 (16:51 +0200)]
client: set the watch to flushing before going to NULL
First set the watch to flushing so that we unblock any current and
future attempt to send data on the watch, Then set the pipeline to
NULL.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728153
Linus Svensson [Fri, 11 Apr 2014 21:52:49 +0000 (23:52 +0200)]
rtsp-session-pool: Fixes annotation
Fixes annotation for gst_rtsp_session_pool_create() and memory leaks
in the sessionpool test.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728060
Ognyan Tonchev [Wed, 9 Apr 2014 14:44:21 +0000 (16:44 +0200)]
media: make media_prepare virtual
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728029
Ognyan Tonchev [Sat, 12 Apr 2014 03:57:00 +0000 (05:57 +0200)]
media: stop the thread in more error cases
Ognyan Tonchev [Sat, 12 Apr 2014 03:53:15 +0000 (05:53 +0200)]
media: allow NULL as the thread
Use the default context whan passing a NULL thread.
Vincent Penquerc'h [Thu, 10 Apr 2014 15:39:11 +0000 (16:39 +0100)]
rtsp-client: indent cleanup
Coverity was moaning about unreachable code, and I think it was just
confused by { being before the label. We'll see if it pops up again.
Coverity
1197705
Göran Jönsson [Tue, 1 Apr 2014 11:04:21 +0000 (13:04 +0200)]
client: Add drop-backlog property
When we have too many messages queued for a client (currently hardcoded
to 100) we overflow and drop the messages. Add a drop-backlog property
to control this behaviour. Setting this property to FALSE will retry
to send the messages to the client by waiting for more room in the
backlog.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725898
Ognyan Tonchev [Thu, 3 Apr 2014 10:19:51 +0000 (12:19 +0200)]
client: support for POST before GET when setting up a tunnel
Ognyan Tonchev [Wed, 2 Apr 2014 10:03:32 +0000 (12:03 +0200)]
client: remove watch of the second client after http tunnel setup
The second client will be freed after the HTTP tunnel has been set up.
Make sure it's RTSP watch is never dispatched again.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727488
Ognyan Tonchev [Mon, 31 Mar 2014 09:00:11 +0000 (11:00 +0200)]
media: Make media_prepare() fail if port allocation fails
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727376
Linus Svensson [Tue, 1 Apr 2014 14:55:13 +0000 (16:55 +0200)]
media test: cleanup the thread pool in tests
Linus Svensson [Tue, 1 Apr 2014 11:16:26 +0000 (13:16 +0200)]
rtsp-media: Unblock blocked streams in unprepare
The streams will be blocked when a live media is prepared.
The streams should be unblocked in gst_rtsp_media_unprepare.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727231
Wim Taymans [Tue, 8 Apr 2014 12:49:41 +0000 (14:49 +0200)]
media: release the state lock when going to NULL
Set our state to UNPREPARING and release the state-lock before
setting the pipeline to the NULL state. This way, any pad-added
callback will be able to take the state-lock and check that we are now
unpreparing instead of deadlocking.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727102
Wim Taymans [Tue, 8 Apr 2014 10:08:17 +0000 (12:08 +0200)]
media: protect status with lock
Make sure we only update the status with the lock.
Wim Taymans [Fri, 4 Apr 2014 15:39:36 +0000 (17:39 +0200)]
rtsp: update for MIKEY API changes
Wim Taymans [Thu, 3 Apr 2014 10:52:51 +0000 (12:52 +0200)]
client: parse the mikey response from the client
Parse the mikey response from the client and update the policy for
each SSRC.
Wim Taymans [Wed, 2 Apr 2014 10:36:16 +0000 (12:36 +0200)]
stream: add method to set crypto info
Make a method to configure the crypto information of a stream.
Set udpsrc in READY instead of PAUSED so that we can configure caps
later.
Wim Taymans [Thu, 3 Apr 2014 10:57:13 +0000 (12:57 +0200)]
client: cleanup error paths
Wim Taymans [Wed, 2 Apr 2014 10:27:24 +0000 (12:27 +0200)]
media: fix docs
Wim Taymans [Tue, 25 Mar 2014 11:42:39 +0000 (12:42 +0100)]
test: enable SRTP only on RTSPS
We only want to enable SRTP when doing rtsp over TLS so that we can
exchange the keys in a secure way.
Wim Taymans [Tue, 25 Mar 2014 11:41:33 +0000 (12:41 +0100)]
test: print an error on failure
Wim Taymans [Thu, 13 Mar 2014 16:35:21 +0000 (17:35 +0100)]
stream: add SRTP support
Install srtp encoder and decoder elements in rtpbin
Add MIKEY in SDP
Sebastian Rasmussen [Sun, 16 Mar 2014 18:45:26 +0000 (19:45 +0100)]
tests: Add unit tests for sessionpool
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726470
Sebastian Rasmussen [Sat, 22 Mar 2014 12:24:27 +0000 (13:24 +0100)]
tests: Improve code coverage of rtsp-threadpool tests
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726873
Sebastian Rasmussen [Sun, 23 Mar 2014 20:26:00 +0000 (21:26 +0100)]
tests: Improve code coverage for rtsp-session-media
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726940
Sebastian Rasmussen [Sun, 23 Mar 2014 20:24:48 +0000 (21:24 +0100)]
gobject-introspection: Add annotations to support language bindings
In addition a few cosmetic changes:
* Adjust the order of arguments
* Fix typo: occured -> occurred
* Fix indentation after Return:-clauses
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726941
Sebastian Rasmussen [Fri, 14 Mar 2014 18:03:24 +0000 (19:03 +0100)]
rtsp-stream: Don't mix IPv4 and IPv6 addresses
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726362
Wim Taymans [Thu, 13 Mar 2014 13:27:15 +0000 (14:27 +0100)]
stream: take caps after the session manager
Take the caps for the SDP after they leave the rtpbin so that we can
also get the properties added by rtpbin elements.
Wim Taymans [Thu, 13 Mar 2014 13:20:17 +0000 (14:20 +0100)]
stream: release lock while pushing out packets
Keep a cache of the transports and use this to iterate the transport
while pushing packets. This allows us to release the lock early.
See https://bugzilla.gnome.org/show_bug.cgi?id=725898
David Svensson Fors [Thu, 6 Mar 2014 12:52:02 +0000 (13:52 +0100)]
rtsp-client: vmethod for modifying tunnel GET response
Add a vmethod tunnel_http_response where the response to the HTTP GET
for tunneled connections can be modified.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725879
Wim Taymans [Mon, 3 Mar 2014 15:56:53 +0000 (16:56 +0100)]
sdp: make 1 media line per profile
If we have multiple profiles (AVP or AVPF) for a stream, make one m=
line in the SDP for each profile. The client is then supposed to pick
one of the profiles in the SETUP request. Because the m= lines have the
same pt, the client also knows that only 1 option is possible.
Wim Taymans [Mon, 3 Mar 2014 15:55:48 +0000 (16:55 +0100)]
factory: add profile property and pass to media and streams
Wim Taymans [Mon, 3 Mar 2014 14:12:55 +0000 (15:12 +0100)]
sdp: pass multicast connection for multicast-only stream
Pass the multicast address of the stream in the connection info in the
SDP so that clients try a multicast connection first.
Only allow multicast connections in the test-multicast example. Also
increase the TTL a little.
Sebastian Rasmussen [Sun, 2 Mar 2014 04:12:01 +0000 (05:12 +0100)]
.gitignore: Ignore gcov intermediate files
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725484
Wim Taymans [Mon, 3 Mar 2014 11:17:48 +0000 (12:17 +0100)]
stream: release some locks in error cases
Sebastian Rasmussen [Sun, 2 Mar 2014 04:12:10 +0000 (05:12 +0100)]
docs: Enable and fix gtk-doc warnings
* Makefile: Enable gtk-doc warnings, like the rest of GStreamer
* addresspool/mediafactory: Add missing annotation colon
* stream: Annotate return value
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725528
Sebastian Dröge [Fri, 28 Feb 2014 08:36:49 +0000 (09:36 +0100)]
Automatic update of common submodule
From
fe1672e to
bcb1518
Stefan Sauer [Wed, 26 Feb 2014 21:15:51 +0000 (22:15 +0100)]
Automatic update of common submodule
From
1a07da9 to
fe1672e
Tim-Philipp Müller [Tue, 25 Feb 2014 15:13:40 +0000 (15:13 +0000)]
examples: use LDADD for libs instead of LDFLAGS
Tim-Philipp Müller [Tue, 25 Feb 2014 14:42:09 +0000 (14:42 +0000)]
configure: make sure releases are in .doap file
Tim-Philipp Müller [Tue, 25 Feb 2014 14:11:00 +0000 (14:11 +0000)]
examples: test-cgroups: don't put code with side effects into g_assert()
The g_assert() might get compiled out with the right
compiler/preprocessor flags.
Tim-Philipp Müller [Tue, 25 Feb 2014 14:07:50 +0000 (14:07 +0000)]
examples: add cgroup test binary to .gitignore
Tim-Philipp Müller [Tue, 25 Feb 2014 14:06:47 +0000 (14:06 +0000)]
examples: fix cgroup test build
Fixes build failure caused by compiler warning:
test-cgroups.c:82:35: error: no previous prototype for ‘gst_rtsp_cgroup_pool_get_type’ [-Werror=missing-prototypes]
Tim-Philipp Müller [Fri, 21 Feb 2014 16:46:45 +0000 (16:46 +0000)]
.gitignore: ignore temp files created in the course of 'make check'
Branko Subasic [Tue, 18 Feb 2014 08:44:34 +0000 (09:44 +0100)]
rtsp-media: don't loose frames handling new PLAY request
If client supplied a range check if the range specifies the start point.
If not, then do an accurate seek to the current position. If a start
point was specified do do a key unit seek to make sure the streaming
starts with decodeable frames.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724611
Wim Taymans [Tue, 18 Feb 2014 15:58:45 +0000 (16:58 +0100)]
Revert "media: only flush when setting a new start position"
This reverts commit
f67fc23aab59f28796bebf130504ff46ccb97b0a.
We need to do the flush in all cases, demuxer block currently for
non-flushing seeks.
Wim Taymans [Tue, 18 Feb 2014 15:38:39 +0000 (16:38 +0100)]
media: only flush when setting a new start position
Only flush the pipeline when we change the start position with
a seek.
See https://bugzilla.gnome.org/show_bug.cgi?id=724611