mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtspsrc: link to the on_npt_stop signal to EOS
Connect to the on_npt_stop signal of the session manager to schedule the EOS actions.
This commit is contained in:
parent
3360f449c0
commit
fd18185d44
1 changed files with 12 additions and 0 deletions
|
@ -1802,6 +1802,16 @@ on_timeout (GstElement * manager, guint session, guint32 ssrc, GstRTSPSrc * src)
|
||||||
gst_rtspsrc_do_stream_eos (src, session);
|
gst_rtspsrc_do_stream_eos (src, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
on_npt_stop (GstElement * manager, guint session, guint32 ssrc,
|
||||||
|
GstRTSPSrc * src)
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (src, "SSRC %08x in session %u reached the NPT stop", ssrc,
|
||||||
|
session);
|
||||||
|
|
||||||
|
gst_rtspsrc_do_stream_eos (src, session);
|
||||||
|
}
|
||||||
|
|
||||||
/* try to get and configure a manager */
|
/* try to get and configure a manager */
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
|
gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
|
||||||
|
@ -1860,6 +1870,8 @@ gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
|
||||||
src);
|
src);
|
||||||
g_signal_connect (src->session, "on-timeout", (GCallback) on_timeout,
|
g_signal_connect (src->session, "on-timeout", (GCallback) on_timeout,
|
||||||
src);
|
src);
|
||||||
|
g_signal_connect (src->session, "on-npt-stop", (GCallback) on_npt_stop,
|
||||||
|
src);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we stream directly to the manager, get some pads. Each RTSP stream goes
|
/* we stream directly to the manager, get some pads. Each RTSP stream goes
|
||||||
|
|
Loading…
Reference in a new issue