summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-03-23 14:51:28 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-03-30 16:57:05 +0200
commita696d980b5c0bf91c845e2afce40eb3b70bc910c (patch)
treef2ba976869efc536decf678a494f408007ec209c
parent44ccca3086dd81081d72ca0b21d0ecdde962fb1a (diff)
rtsp-stream: use mcast_udpsink[0] last-sample if available for rtpinfo
Otherwise no sink is found for multicast sreams and the less accurate fallback is used to determine the current sequence number and timestamp.
-rw-r--r--gst/rtsp-server/rtsp-stream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index 7204e9c..aabb3b0 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -4161,11 +4161,13 @@ gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream,
* This will have a more accurate sequence number and timestamp, as between
* the payloader and the sink there can be some queues
*/
- if (priv->udpsink[0] || priv->appsink[0]) {
+ if (priv->udpsink[0] || priv->mcast_udpsink[0] || priv->appsink[0]) {
GstSample *last_sample;
if (priv->udpsink[0])
g_object_get (priv->udpsink[0], "last-sample", &last_sample, NULL);
+ else if (priv->mcast_udpsink[0])
+ g_object_get (priv->mcast_udpsink[0], "last-sample", &last_sample, NULL);
else
g_object_get (priv->appsink[0], "last-sample", &last_sample, NULL);