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
Branko Subasic
619ac7b710
rtsp-client: unref 'pipelined_requests' in finalize
...
The hash table priv->pipelined_requests is not unref:ed in the
finalize funktion. Make sure it is.
https://bugzilla.gnome.org/show_bug.cgi?id=788704
2017-10-09 20:39:14 +02:00
Thibault Saunier
8608c1cae4
rtsp-media: Initialize scalar variable
...
CID 1418985
2017-10-09 14:44:40 +02:00
Edward Hervey
f053781dd5
win32: Update export file
2017-10-06 10:27:34 +02:00
Thibault Saunier
9706199efb
Start support for RTSP 2.0
...
This adds basic support for new 2.0 features, though the protocol is
subposdely backward incompatible, most semantics are the sames.
This commit adds:
- features:
* version negotiation
* pipelined requests support
* Media-Properties support
* Accept-Ranges support
- APIs:
* gst_rtsp_media_seekable
The RTSP methods that have been removed when using 2.0 now return
BAD_REQUEST.
https://bugzilla.gnome.org/show_bug.cgi?id=781446
2017-10-05 13:23:48 -03:00
Thibault Saunier
8b38aa9c46
stream: Use stream duration as stream-stop if segment was not configured with a stop
...
Allowing client to know stream duration when no seeking happened.
https://bugzilla.gnome.org/show_bug.cgi?id=783435
2017-10-05 12:07:13 -03:00
Sebastian Dröge
c04e3b07dd
rtsp-media-factory: Don't cache any media if NULL was returned as key
...
The docs already mentioned this, but we actually stored it in the hash
table with key==NULL and leaked its reference forever.
2017-09-25 19:41:33 +03:00
Mathieu Duponchelle
f1088f368f
rtspclientsink: Use a mutex for protecting against concurrent send/receives
...
This is a simple port of:
* a722f6e832
* c438545dc9
* cd17c71dce
in gst-plugins-good.
2017-09-18 19:43:17 +02:00
Satya Prakash Gupta
d690fbd37d
sdp: fix Memory leak in error case
...
https://bugzilla.gnome.org/show_bug.cgi?id=787059
2017-08-31 11:04:05 +01:00
Tim-Philipp Müller
fdd6479f4b
meson: don't install -uninstalled.pc file
...
https://bugzilla.gnome.org/show_bug.cgi?id=786457
2017-08-18 17:37:01 +01:00
Tim-Philipp Müller
7f68de02cc
Automatic update of common submodule
...
From 48a5d85 to 3f4aa96
2017-08-17 12:26:17 +01:00
Sebastian Dröge
ffbabb1529
rtsp-client: Fix typo in debug message
2017-08-14 21:04:58 +03:00