Tim-Philipp Müller
4e048f7b8a
tests: fix indentation
...
Fix and "fix".
2018-01-13 15:02:48 +00:00
Tim-Philipp Müller
d0a4ddc2bb
tests: rtspserver: fix another ref leak
...
Even if this didn't show up in valgrind.
2018-01-13 14:58:55 +00:00
Tim-Philipp Müller
9238b7e19a
tests: rtspclientsink: fix leak
2018-01-13 14:58:00 +00:00
Branko Subasic
3d860913c6
test: rtspserver: plug memory leak in test_no_session_timeout
...
In test_no_session_timeout, unref the rtsp session object when the
test is done.
https://bugzilla.gnome.org/show_bug.cgi?id=792127
2018-01-13 14:18:47 +00:00
Edward Hervey
587c1c4707
rtpsclientsink: Initialize and clear newly added mutex and cond
...
While it *did* work, glib would automatically create new mutex and cond
... which never got freed
2017-12-20 14:17:02 +01:00
Sebastian Dröge
4ec17b1975
rtsp-stream: Set multicast TTL on the multicast sockets
...
And not if we do unicast UDP.
https://bugzilla.gnome.org/show_bug.cgi?id=791743
2017-12-19 11:34:37 +02:00
Sebastian Dröge
4d86f99449
rtsp-stream: Decide based on the sockets, not the addresses if we already allocated a socket
...
In the multicast case (as in test-multicast, not test-multicast2), the
address could be allocated/reserved (and thus set) already without
allocating the actual socket. We need to allocate the socket here still
instead of just claiming that it was already allocated.
See https://bugzilla.gnome.org/show_bug.cgi?id=791743#c2
2017-12-19 11:16:51 +02:00
Patricia Muscalu
64f1a3ab85
rtspclientsink: Use the new rtsp-stream API
...
https://bugzilla.gnome.org/show_bug.cgi?id=790412
2017-12-18 11:34:48 +01:00
Patricia Muscalu
96cfed48bf
rtspclientsink: Wait until OPEN has been scheduled
...
Make sure that the sink thread has started opening connection
to the server before continuing.
https://bugzilla.gnome.org/show_bug.cgi?id=790412
2017-12-18 11:34:48 +01:00
Matthew Waters
b4ab386e87
Automatic update of common submodule
...
From e8c7a71 to 3fa2c9e
2017-12-14 14:53:35 +11:00
Edward Hervey
64a46d47ba
rtsp-server: Minor doc fixes
...
Mostly for g-i
2017-12-07 16:08:50 +01:00
Tim-Philipp Müller
f5b7f57a17
tests: disable all tests when --disable-tests is used
...
Move conditional subdir include into top level.
Based on patch by: Joel Holdsworth
https://bugzilla.gnome.org/show_bug.cgi?id=757703
2017-12-06 20:47:22 +00:00
Tim-Philipp Müller
0dae3a007d
meson: build more tests and add options to disable tests and examples
2017-12-06 20:43:04 +00:00
Thibault Saunier
1555143299
Fix build when -Werror=deprecated-declarations is on
...
As gst_rtsp_session_next_timeout is deprecated.
```
../subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-session.c:760:3: error: ‘gst_rtsp_session_next_timeout’ is deprecated: Use 'gst_rtsp_session_next_timeout_usec' instead [-Werror=deprecated-declarations]
res = (gst_rtsp_session_next_timeout (session, now) == 0);
^~~
../subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-session.c:685:1: note: declared here
gst_rtsp_session_next_timeout (GstRTSPSession * session, GTimeVal * now)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2017-11-30 23:58:16 -03:00
Matthew Waters
16d0d8c7c8
Automatic update of common submodule
...
From 3f4aa96 to e8c7a71
2017-11-27 20:18:24 +11:00
Patricia Muscalu
abeb896232
check/media: Add seekability test case: not all streams are active
...
Media contains two streams but only one is complete and prepared
for playing.
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-27 07:58:42 +01:00
Patricia Muscalu
caa3f1caac
rtsp-stream: Do not reset 'blocking' if stream is already blocked
...
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-27 07:58:42 +01:00
Patricia Muscalu
0015791f8f
rtsp-media: Fix missing lock in gst_rtsp_media_seekable()
...
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-27 07:58:42 +01:00
Tim-Philipp Müller
c390202faa
meson: remove vs_module_defs_dir variable which is no longer needed
2017-11-26 16:29:49 +00:00
Tim-Philipp Müller
3d61e20a99
rtsp: fix distcheck
2017-11-26 14:46:05 +00:00
Tim-Philipp Müller
8c1cdb7a4a
win32: remove .def file with exports
...
They're no longer needed, symbol exporting is now explicit
via GST_EXPORT in all cases (autotools, meson, incl. MSVC).
2017-11-26 13:14:12 +00:00
Tim-Philipp Müller
a877229d38
autotools: stop controlling symbol visibility with -export-symbols-regex
...
Instead, use -fvisibility=hidden and explicit exports via GST_EXPORT.
This should result in consistent behaviour for the autotools and
Meson builds.
2017-11-26 13:13:39 +00:00
Tim-Philipp Müller
58aa58f049
rtsp-server: add missing GST_EXPORT and export deprecated funcs
2017-11-26 13:03:39 +00:00
Edward Hervey
bad6f5690a
check: Add seekability testing on medias
...
Make sure that once GstRTSPMedia are prepared they returned
the expected seekability results
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-25 07:54:29 +01:00
Edward Hervey
9514f2d354
rtsp-media: Enable seeking query before pipeline is complete
...
SDP are now provided *before* the pipeline is fully complete. In order
to know whether a media is seekable or not therefore requires asking
the invididual streams.
API: gst_rtsp_stream_seekable
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-25 07:53:11 +01:00
Patricia Muscalu
bb29d2e2ee
rtsp-media: Fix handling in default_unsuspend()
...
Handle the case when streams are not blocked and media
is suspended from PAUSED.
Change-Id: I2f3d222ea7b9b20a0732ea5dc81a32d17ab75040
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-24 10:52:36 +01:00
Patricia Muscalu
de930f2e4d
check/media: Fix thread pool leak.
...
Change-Id: I0f92b1caca0ee518ae64a7dacfbd28a214c3eea1
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-24 10:52:36 +01:00
Patricia Muscalu
132e00adfd
rtsp-media: Removed fakesink elements
...
There is not need of adding fakesink elements to the media
pipeline in the dynamic-payloader case.
The media pipeline itself is dynamically updated with
the receiver and sender parts that are based on the client
transport information known after SETUP has been received.
Change-Id: I4e88c9b500c04030669822f0d03b1842913f6cb9
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-24 10:52:36 +01:00
Patricia Muscalu
ac6169d50a
rtsp-media: Corrected ASYNC_DONE handling
...
Media is complete when all the transport based parts are
added to the media pipeline. At this point ASYNC_DONE is
posted by the media pipeline and media is ready to enter
the PREPARED state.
Change-Id: I50fb8dfed88ebaf057d9a35fca2d7f0a70e9d1fa
https://bugzilla.gnome.org/show_bug.cgi?id=790674
2017-11-24 10:52:36 +01:00
Edward Hervey
90ca7f8b31
check/media: Check that prepared media can provide a SDP
...
Whenever a RTSPMedia is prepared, it should be able to provide a SDP
2017-11-22 12:24:38 +01:00
Edward Hervey
7bf8c4d218
rtsp-client: Don't leak addr
...
CID #1422260
2017-11-21 09:53:19 +01:00
Edward Hervey
4d98bc5e55
Run gst-indent
2017-11-21 09:53:08 +01:00
Edward Hervey
6371f2fc29
rtsp-media: Don't unblock with remaining dynamic payloaders
...
If we still have some dynamic paylaoders which haven't posted
no-more-pads yet, don't go to PREPARED if one of the streams
blocked.
The risk was that we would end up not exposing/using all specified
streams.
The downside is that if you have _multiple_ _live_ _dynamic_ payloaders
then it will take a bit more time to start. But only if those 3
conditions are present.
https://bugzilla.gnome.org/show_bug.cgi?id=769521
2017-11-21 07:59:15 +01:00
Edward Hervey
d1a6418fe2
rtsp-media: Fix doc
2017-11-21 07:59:15 +01:00
Edward Hervey
0dddaba9bb
rtsp-media: Don't set float on a gint64 variable
...
Just use 0. Fixes 'undefined' behaviour from clang
2017-11-21 07:59:15 +01:00
Edward Hervey
27d256d4ca
rtsp-media: Fix previous commit
...
We only want to count dynamic payloaders
2017-11-21 07:59:15 +01:00
Edward Hervey
2386e91c36
rtsp-media: Handle multiple dynamic elements
...
If we have more than one dynamic payloader in the pipeline, we need
to wait until the *last* one emits 'no-more-pads' before switching
to PREPARED.
Failure to do so would result in a race where some of the streams
wouldn't properly be prepared
https://bugzilla.gnome.org/show_bug.cgi?id=769521
2017-11-20 09:38:49 +01:00
Sebastian Dröge
899a6cbe35
win32: Fix exported symbols list
2017-11-16 12:18:20 +02:00
Sebastian Dröge
d51f8abe56
rtsp-stream: Only update the RTP udpsink if it actually exists
...
For send-only streams it does not exist, but the RTCP udpsink might.
2017-11-15 19:56:26 +02:00
Sebastian Dröge
bed93b915d
win32: Update exports
2017-11-15 19:56:26 +02:00
Patricia Muscalu
efdb795c86
rtsp-media: seek on media pipelines that are complete
...
Make sure that a seek is performed on pipelines that
contain at least one sink element.
Change-Id: Icf398e10add3191d104b1289de612412da326819
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 19:56:26 +02:00
Patricia Muscalu
a7732a68e8
Dynamically reconfigure pipeline in PLAY based on transports
...
The initial pipeline does not contain specific transport
elements. The receiver and the sender parts are added
after PLAY.
If the media is shared, the streams are dynamically
reconfigured after each PLAY.
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 19:56:15 +02:00
Patricia Muscalu
930a602e17
rtsp-stream: obtain stream position from pad
...
If no sinks have been added yet, obtain the current and
the stop position of the stream from the send_src pad.
Change-Id: Iacd4ab4bdc69f6b49370d06012880ce48a7d595a
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 17:46:00 +02:00
Patricia Muscalu
5ec1b80989
rtsp-session-media: add function to get a list of transports
...
Change-Id: I817e10624da0f3200f24d1b232cff481099278e3
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 17:46:00 +02:00
Patricia Muscalu
51d670f73b
rtsp-stream: add functions to get rtp and rtcp multicast sockets
...
Change-Id: Iddfe6e0bd250cb0159096d5eba9e4202d22b56db
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 17:46:00 +02:00
Patricia Muscalu
c9605cc5e1
stream: set async=sync=false only for RTCP appsink
...
Change-Id: I929a218a9adf4759f61322b6f2063aacc5595f90
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 17:46:00 +02:00
Patricia Muscalu
b5c3ef8d53
rtsp-media: return minimum value in query position case
...
The minimum position should be returned as we are interested
in the whole interval.
Change-Id: I30e297fc040c995ae40c25dee8ff56321612fe2b
https://bugzilla.gnome.org/show_bug.cgi?id=788340
2017-11-15 17:46:00 +02:00
Jonathan Karlsson
0f87202a71
rtsp-session: Handle the case when timeout=0
...
According to the documentation, a timeout of value 0 means
that the session never timeouts. This adds handling of that.
If timeout=0 we just return with a -1 from
gst_rtsp_session_next_timeout_usec ().
https://bugzilla.gnome.org/show_bug.cgi?id=785058
2017-11-15 17:20:33 +02:00
Sebastian Dröge
c3e53322d9
rtspclientsink: Add "accept-certificate" signal for manually checking a TLS certificate for validity
...
https://bugzilla.gnome.org/show_bug.cgi?id=785024
2017-11-01 13:43:33 +02:00
Mathieu Duponchelle
89ccaa6932
docs: add media factory transport mode accessors
...
and fix the documentation for the return value of the getter
2017-10-26 14:44:55 +02:00