Josep Torra
e9cab27226
build: silence error about pthread for 'make check' in osx
...
Fixes "clang: error: argument unused during compilation: '-pthread'"
2016-08-26 21:56:13 +02:00
Jake Foytik
fe5f8077c1
rtsp-stream: Fix crash on cleanup with shared media and multiple udpsrc
...
- Unicast udpsrcs are now managed in a hash table. This allows for proper cleanup in with shared streams and fixes a memory leak.
- Unicast udpsrcs are now properly cleaned up when shared connections exit. See the update_transport() function.
- Create unit test for shared media.
https://bugzilla.gnome.org/show_bug.cgi?id=764744
2016-04-29 11:49:14 +03:00
Patricia Muscalu
422d3a3002
stream tests: added new tests
...
Test a case when the address pool only contains multicast addresses
and the client is requesting unicast udp.
Added tests for multicast ports allocation.
https://bugzilla.gnome.org/show_bug.cgi?id=757488
2016-03-05 10:08:40 +02:00
Jan Schmidt
b96e4e16a7
rtspsink: Fix some leaks in rtspclientsink and the unit test.
...
https://bugzilla.gnome.org/show_bug.cgi?id=762525
2016-02-24 02:12:08 +11:00
Patricia Muscalu
a6367c5971
tests: unit test fixes
...
Removed port allocation test from the media suite.
The port allocation failure is now in the stream suite.
rtspserver:
Make sure that the media is suspended after the DESCRIBE request
before reconfiguring the UDP sinks.
rtspclientsink:
In the RECORD case we have to set async property to false
for the appsink element in the test in order to make sure
that the media pipeline doesn't hang in start_preroll().
https://bugzilla.gnome.org/show_bug.cgi?id=757488
2016-02-23 17:05:15 +02:00
Thiago Santos
3328461738
tests: extend the AM_TESTS_ENVIRONMENT from check.mak
...
To get the CK_DEFAULT_TIMEOUT defined for all tests
Also removes a 120 seconds timeout that was set as default
explicitly in this module
https://bugzilla.gnome.org/show_bug.cgi?id=761472
2016-02-05 20:03:01 -03:00
Jan Schmidt
f54dd50203
rtspsink: Add rtspclientsink element
...
Add an rtspclientsink element that accepts streams for which
there is a registered payloader and sends them to
an RTSP server using RECORD.
Sending is synchronised to the pipeline clock. Payload-types
are automatically selected. The 'new-payloader' signal is fired
for custom configuration of payloaders when they are created.
Can now stream a movie like this:
receiver:
./test-record "( decodebin name=depay0 ! videoconvert ! autovideosink \
decodebin name=depay1 ! audioconvert ! autoaudiosink )"
sender:
gst-launch-1.0 filesrc location=file-with-aac-and-h264.mp4 ! qtdemux name=d ! \
queue ! aacparse ! rtspclientsink location=rtsp://127.0.0.1:8554/test name=s \
https://bugzilla.gnome.org/show_bug.cgi?id=758180
2016-01-29 01:44:26 +11:00
Jan Schmidt
9e92a0307c
rtsp-client: Report RECORD and ANNOUNCE as supported in the OPTIONS
2015-11-17 01:12:28 +11:00
David Svensson Fors
2178a7c871
rtspserver: Add udp-mcast transport SETUP test
...
Refactor utility functions in the test file so they can handle
more than UDP and TCP as lower transport.
https://bugzilla.gnome.org/show_bug.cgi?id=756969
2015-10-22 19:31:59 +03:00
Francisco Velazquez
418e1fe090
media-test: Removing unnecessary assertion
...
https://bugzilla.gnome.org/show_bug.cgi?id=753385
2015-08-13 18:48:51 -04:00
Nicolas Dufresne
3667e71b2f
media-test: Test for multiple dynamic payload
...
https://bugzilla.gnome.org/show_bug.cgi?id=753385
2015-08-08 11:13:58 -04:00
Ognyan Tonchev
8922afb88d
rtsp-client: allow application to decide what requirements are supported
...
Add "check-requirements" signal and vfunc to allow application
(and subclasses) to check the requirements.
Based on patch from Hyunjun Ko <zzoon.ko@samsung.com>
https://bugzilla.gnome.org/show_bug.cgi?id=749417
2015-06-23 14:38:29 +01:00
Tim-Philipp Müller
550348738c
tests: Use AM_TESTS_ENVIRONMENT
...
Needed by the new automake test runner and the
current version of the common submodule.
2015-05-27 17:04:41 +01:00
Tim-Philipp Müller
753f8a8ac9
tests: define GST_CHECK_TEST_ENVIRONMENT_BEACON
...
Make sure the test environment is set up.
https://bugzilla.gnome.org//show_bug.cgi?id=747624
2015-04-23 17:27:40 +01:00
Tim-Philipp Müller
896767b041
Fix double semicolons
2015-03-10 09:39:22 +00:00
Tim-Philipp Müller
a56404a45a
tests: rtspserver: rename shadowed variable
...
We have two different 'sink' variables here,
rename one of them for clarity.
2015-02-08 18:05:50 +00:00
Sebastian Dröge
a93ed7e5d4
rtsp-media: Use flags to distinguish between PLAY and RECORD media
2015-02-06 09:42:50 +01:00
Tim-Philipp Müller
6e5b156b0d
tests: add some unit tests for ANNOUNCE and RECORD
...
https://bugzilla.gnome.org/show_bug.cgi?id=743175
2015-02-06 09:42:50 +01:00
Linus Svensson
1a004c5d46
tests: Remove FIXME
...
The session leak is now fixed, lets remove those FIXME comments.
2014-11-07 12:42:48 +01:00
Linus Svensson
d1ea01d4c6
tests: Test to setup two sessions on one connection
...
https://bugzilla.gnome.org/show_bug.cgi?id=739112
2014-11-07 12:42:48 +01:00
Linus Svensson
df5850f966
tests: Test setup with tcp transport
...
https://bugzilla.gnome.org/show_bug.cgi?id=739112
2014-11-07 12:42:48 +01:00
Branko Subasic
2745e6f654
tests: Extend unit test timeout to accomodate for valgrind
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=736647
2014-09-24 10:38:08 +03:00
Ognyan Tonchev
bfd498585a
client tests: send teardown to cleanup session
2014-07-09 16:17:00 +02:00
Ognyan Tonchev
f78886e7cb
server tests: send teardown to cleanup session
2014-07-09 16:17:00 +02:00
Wim Taymans
5aec4af1b9
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.
2014-07-08 14:46:13 +02:00
Ognyan Tonchev
fc06329e87
stream tests: Make sure we get right multicast address from stream
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731577
2014-06-18 15:26:27 +02:00
Wim Taymans
b8165dbd60
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.
2014-05-09 15:13:54 +02:00
Tim-Philipp Müller
aec1b42c4e
tests: add unit test for correct handling of Require headers
...
https://bugzilla.gnome.org/show_bug.cgi?id=729426
2014-05-09 13:55:27 +01:00
Tim-Philipp Müller
8b8c3630b4
tests: fix memory leak in sessionmedia unit test
2014-05-02 19:58:40 +01:00
Linus Svensson
9219509bcf
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
2014-04-12 06:15:03 +02:00
Ognyan Tonchev
da19a3c21a
media: stop the thread in more error cases
2014-04-12 05:57:00 +02:00
Ognyan Tonchev
de2a70bb10
media: allow NULL as the thread
...
Use the default context whan passing a NULL thread.
2014-04-12 05:55:02 +02:00
Ognyan Tonchev
9c0ef4d9f8
media: Make media_prepare() fail if port allocation fails
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727376
2014-04-08 15:11:25 +02:00
Linus Svensson
6916875a0b
media test: cleanup the thread pool in tests
2014-04-08 15:00:42 +02:00
Linus Svensson
a3e6b11f11
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
2014-04-08 14:58:23 +02:00
Wim Taymans
3d6175c745
stream: add SRTP support
...
Install srtp encoder and decoder elements in rtpbin
Add MIKEY in SDP
2014-03-25 10:31:21 +01:00
Sebastian Rasmussen
bfbf393925
tests: Add unit tests for sessionpool
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726470
2014-03-24 12:16:47 +01:00
Sebastian Rasmussen
d9cfa3677b
tests: Improve code coverage of rtsp-threadpool tests
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726873
2014-03-24 00:44:55 +00:00
Sebastian Rasmussen
1cb66a0e6d
tests: Improve code coverage for rtsp-session-media
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726940
2014-03-24 00:42:19 +00:00
Sebastian Dröge
04c386b727
tests: Fix another compiler warning with gcc
2014-02-09 10:47:09 +01:00
Sebastian Dröge
957a4a65c6
rtsp-server: Fix lots of compiler warnings with clang
2014-02-09 10:45:28 +01:00
Ognyan Tonchev
274d4b017f
thread-pool: Unref reused threads in gst_rtsp_thread_stop()
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=723519
2014-02-04 14:47:49 +01:00
Sebastian Rasmussen
26f215ac36
tests: fix memory leak, free test's thread pool
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=719733
2013-12-03 00:05:17 +00:00
Branko Subasic
b16b47f68d
check: add test for uri in setup
...
Added unit tests for the new functionality in GstRTSPStreamTransport.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=715168
2013-11-28 18:01:55 +01:00
Wim Taymans
2f17369e9d
media: add suspend modes
...
Add support for different suspend modes. The stream is suspended right after
producing the SDP and after PAUSE. Different suspend modes are available that
affect the state of the pipeline. NONE leaves the pipeline state unchanged and
is the current and old behaviour, PAUSE will set the pipeline to the PAUSED
state and RESET will bring the pipeline to the NULL state.
A stream is also unsuspended when it goes back to PLAYING, for RESET streams,
this means that the pipeline needs to be prerolled again.
Base on patches by Ognyan Tonchev <ognyan@axis.com>
See https://bugzilla.gnome.org/show_bug.cgi?id=711257
2013-11-28 16:18:39 +01:00
Wim Taymans
b2bc84cdbf
address-pool: fix address increment
...
Use a guint instead of guint8 to increment the address. It's still not
completely correct because a guint might not be able to hold the complete
address range, but that's an enhacement for later.
Add unit test to test improved behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=708237
2013-11-12 16:54:59 +01:00
Patricia Muscalu
adc02db975
client: allow absolute path in requests
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711689
2013-11-12 12:21:50 +01:00
Wim Taymans
8d5ce0d4ee
stream: Add functions to get rtp and rtcp sockets
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710100
2013-11-12 12:04:55 +01:00
Sebastian Rasmussen
0e1665b7c6
tests: Add unit tests for token
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710520
2013-11-12 10:44:43 +01:00
Sebastian Rasmussen
a2eb48a27c
tests: Add unit tests for permissions
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710202
2013-11-12 09:54:46 +01:00
Sebastian Rasmussen
c0828a5d53
tests: Test mediafactory permissions
...
See https://bugzilla.gnome.org/show_bug.cgi?id=710202
2013-11-12 09:54:04 +01:00
Sebastian Rasmussen
eee8b0db88
tests: Check gst_rtsp_url_parse return value
...
See https://bugzilla.gnome.org/show_bug.cgi?id=710202
2013-11-12 09:54:03 +01:00
Ognyan Tonchev
fa7898b0a6
thread-pool: Add unit test for the thread pools
...
https://bugzilla.gnome.org/show_bug.cgi?id=710228
2013-10-30 19:02:24 +01:00
Patricia Muscalu
de7be1c9b2
tests: fixed racy behavior in rtspserver tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=710078
2013-10-15 11:28:27 +02:00
Sebastian Rasmussen
cf82d90452
tests: Improve address pool unit tests
...
Add a range with mixed IPV4 and IPV6 addresses to pool.
Get an IPV4 address from an IPV6-only pool.
Get an IPV6 address from an IPV4-only pool.
Reserve a IPV6 address from an IPV4-only pool.
Check for unicast addresses in multicast-only pool.
Check for unicast addresses in uni-/multicast-mixed pool.
https://bugzilla.gnome.org/show_bug.cgi?id=710128
2013-10-14 20:20:05 +02:00
Ognyan Tonchev
39dceb77ff
tests: fix unit test
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708742
2013-09-26 14:36:58 +02:00
Patrick Radizi
7b0ad7c25f
addresspool: return reason of failure
...
Let gst_rtsp_address_pool_reserve_address() return the reason why
the address could not be reserved.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708229
2013-09-24 17:30:18 +02:00
Jonas Holmberg
23b3f21595
client: free threadpool
...
https://bugzilla.gnome.org/show_bug.cgi?id=707638
2013-09-06 20:44:10 +01:00
Jonas Holmberg
cafdba8445
mountpoints tests: unref matched factories
...
https://bugzilla.gnome.org/show_bug.cgi?id=707638
2013-09-06 19:03:22 +01:00
Jonas Holmberg
c15c659b40
media tests: unref thread pool and caps
...
https://bugzilla.gnome.org/show_bug.cgi?id=707638
2013-09-06 19:03:19 +01:00
Wim Taymans
f78a65379c
ClientState -> Context
...
Rename the clientstate to context and put the code in a separate file.
2013-07-22 14:25:04 +02:00
Wim Taymans
041b1b79a1
docs: improve docs
2013-07-16 12:32:51 +02:00
Wim Taymans
d3d7df5a1e
address-pool: cleanups
...
Remove redundant method, improve docs.
2013-07-16 12:32:00 +02:00
Wim Taymans
95b3bd4e0c
tests: simplify tests
...
Client settings are now disabled by default so we don't need an auth
module to disable them.
2013-07-15 16:48:37 +02:00
Wim Taymans
15db094d85
client: fix test
...
Add some permissions to media so we can use the auth and enable
client settings.
2013-07-15 11:58:58 +02:00
Wim Taymans
5ce4dd7925
tests: almost fix test
2013-07-12 17:26:55 +02:00
Wim Taymans
8200efbbd0
tests: fix media test
2013-07-11 17:28:17 +02:00
Wim Taymans
868a7a5a93
tests: fix client test
2013-07-11 17:05:00 +02:00
Wim Taymans
e788a9ca60
tests: fix compilation
2013-07-10 20:55:03 +02:00
Wim Taymans
12583e819c
media: add optional context for bus messages
...
Add an optional mainloop to _prepare that will handle the bus messages instead
of always using the shared mainloop.
2013-07-08 11:10:20 +02:00
Wim Taymans
8f79daef5e
mount-points: remove useless vmethod
...
Making lookups in the mount points should not be done with a URL, if there is a
mapping to be done from URL to mount points, we'll need to do it somewhere
else.
2013-07-03 11:10:27 +02:00
Wim Taymans
df08a2dd9e
mount-points: improve mount point searching
...
Use a GSequence to keep track of the mount points.
Match a URL to the longest matching registered mount point. This should be the
URL to perform aggreagate control and the remainder is the stream specific
control part.
Add some unit tests for this.
2013-07-03 10:45:51 +02:00
Wim Taymans
b2f44fd4db
tests: fix compilation
2013-07-02 15:59:16 +02:00
Patricia Muscalu
ffefd9e80b
tests: fix tests
...
gst_rtsp_client_get_uri() has been removed
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703173
2013-06-27 12:22:46 +02:00
Wim Taymans
cd8a81b3b1
tests: fix test
...
Actually do what the comment says. Also keep the old code around, not sure what
should happen when you get a 454 from a TEARDOWN, does it close the connection?
it currently doesn't.
2013-06-20 17:30:49 +02:00
Patricia Muscalu
a8a051f780
tests: add unit test for new-session
...
See https://bugzilla.gnome.org/show_bug.cgi?id=701587
2013-06-20 12:18:36 +02:00
Ognyan Tonchev
d9e245e62e
rtsp-media: Do not leak the element in take_pipeline
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=702470
2013-06-17 17:18:40 +02:00
Patricia Muscalu
0951aa37e1
rtsp-sdp: add bandwidth line
...
https://bugzilla.gnome.org/show_bug.cgi?id=699220
2013-05-15 12:36:32 +02:00
Ognyan Tonchev
6065400a62
tests: add dynamic payloader prepare/unprepare check
2013-04-23 11:28:39 +02:00
Ognyan Tonchev
f15288259e
check: add media prepare/unprepare test
...
See https://bugzilla.gnome.org/show_bug.cgi?id=698376
2013-04-22 16:49:39 +02:00
David Svensson Fors
d728d59a00
tests: remove extra unref in test_setup_non_existing_stream
...
The unref is not needed anymore, teardown runs without it.
https://bugzilla.gnome.org/show_bug.cgi?id=696542
2013-03-28 12:54:10 +00:00
David Svensson Fors
75221ac8e3
tests: GSocketService cleanup in test_bind_already_in_use
...
Use g_socket_service_stop so the rtspserver test stops listening for
incoming connections in test_bind_already_in_use.
https://bugzilla.gnome.org/show_bug.cgi?id=696541
2013-03-28 12:48:46 +00:00
Olivier Crête
c18eafbb24
rtsp-media/client: Reply to PLAY request with same type of Range
...
Remember the type of Range from the PLAY request and use the same type for
the reply.
2013-03-22 15:53:06 +01:00
Patricia Muscalu
8a08fddb41
rtsp-client: expose uri
2013-03-18 23:44:38 +00:00
Olivier Crête
4a99e1cf56
tests: Hold ref while creating second media
...
To test if the media aren't shared, make sure we keep the first one while creating a second
otherwise the same memory address may be reused.
2013-03-13 17:47:44 -04:00
Tim-Philipp Müller
fba09126a8
tests: use right _LIBS variable for gst-plugins-base libs
2013-03-12 00:03:36 +00:00
Wim Taymans
4a2276c0e6
check: add librtp to libs
2013-03-11 11:35:14 +01:00
Olivier Crête
6a2238b2fb
tests: Add test to check selecting a port the server will send from
2013-03-11 11:07:20 +01:00
Olivier Crête
d3c70d4d51
tests: Make sure packets are actually received
2013-03-11 11:07:20 +01:00
Olivier Crête
444c5892f7
tests: Add tests for unicast addresses in pool
2013-03-11 11:07:20 +01:00
Olivier Crête
27a057962c
address-pool: Verify that multicast addresses are used for multicast and vice-versa
2013-03-11 11:07:20 +01:00
Olivier Crête
d06e68abd1
address-pool: Add unicast addresses
2013-03-11 11:07:20 +01:00
Olivier Crête
4c61c6d308
rtsp-server: Limit the number of threads per server instance
...
If we exceed the maximum, just round robin the clients over the existing
threads.
2013-03-11 11:07:20 +01:00
Olivier Crête
dcc92cbde1
tests: Add test for client disconnection
2013-03-11 11:07:20 +01:00
Olivier Crête
2e11184171
tests: Test client and session timeouts with multiple threads
2013-03-11 11:07:19 +01:00
Olivier Crête
176f5dd0be
tests: Test that slow DESCRIBE don't block other clients
2013-03-11 11:07:19 +01:00
Olivier Crête
29d9878536
tests: Add tests for client-requested multicast address
2013-03-11 11:07:19 +01:00
Olivier Crête
cda75709bb
address-pool: Add API to request a specific address from the pool
...
Also add relevant unit tests.
2013-03-11 11:07:19 +01:00
Olivier Crête
bb7a8af077
tests: Check the passing around of a RTSPAddressPool
...
Make sure the RTSPAddressPool is propagated from the MediaFactory all the
way down to the stream.
2013-03-11 11:07:19 +01:00
Olivier Crête
2581cc103c
tests: Add more tests for the address pool
2013-03-11 11:07:19 +01:00