diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-10-13 18:05:54 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-02-16 11:06:27 +0200 |
commit | befa41cdf68ba5cde2ce7434c9d01260f998c348 (patch) | |
tree | 1c6044d8ef1e4901f90ca8498017d9f3665dbd8e /gst/rtsp/gstrtspsrc.h | |
parent | d61066e6b5233576c9bc1f775ce6959787188bce (diff) |
rtspsrc: Implement ONVIF backchannel support
Set backchannel=onvif to enable, and use the 'push-backchannel-sample'
action signal with the correct stream id.
Diffstat (limited to 'gst/rtsp/gstrtspsrc.h')
-rw-r--r-- | gst/rtsp/gstrtspsrc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.h b/gst/rtsp/gstrtspsrc.h index 57921d2e1..4e5adeff7 100644 --- a/gst/rtsp/gstrtspsrc.h +++ b/gst/rtsp/gstrtspsrc.h @@ -123,8 +123,8 @@ struct _GstRTSPStream { GstElement *udpsink[2]; GstPad *rtcppad; - /* fakesrc for sending dummy data */ - GstElement *fakesrc; + /* fakesrc for sending dummy data or appsrc for sending backchannel data */ + GstElement *rtpsrc; /* state */ guint port; @@ -161,6 +161,7 @@ struct _GstRTSPStream { gchar *destination; gboolean is_multicast; guint ttl; + gboolean is_backchannel; /* A unique and stable id we will use for the stream start event */ gchar *stream_id; @@ -254,6 +255,7 @@ struct _GstRTSPSrc { guint64 max_ts_offset_adjustment; gint64 max_ts_offset; gboolean max_ts_offset_is_set; + gint backchannel; /* state */ GstRTSPState state; @@ -298,6 +300,8 @@ struct _GstRTSPSrc { struct _GstRTSPSrcClass { GstBinClass parent_class; + + GstFlowReturn (*push_backchannel_buffer) (GstRTSPSrc *src, guint id, GstSample *sample); }; GType gst_rtspsrc_get_type(void); |