return res;
}
+
+/**
+ * gst_rtsp_stream_transport_keep_alive:
+ * @trans: a #GstRTSPStreamTransport
+ *
+ * Signal the installed keep_alive callback for @trans.
+ */
+void
+gst_rtsp_stream_transport_keep_alive (GstRTSPStreamTransport * trans)
+{
+ if (trans->keep_alive)
+ trans->keep_alive (trans->ka_user_data);
+}
gboolean gst_rtsp_stream_transport_send_rtcp (GstRTSPStreamTransport *trans,
GstBuffer *buffer);
+void gst_rtsp_stream_transport_keep_alive (GstRTSPStreamTransport *trans);
+
G_END_DECLS
#endif /* __GST_RTSP_STREAM_TRANSPORT_H__ */
trans = check_transport (source, stream);
- if (trans)
+ if (trans) {
GST_INFO ("%p: source %p in transport %p is active", stream, source, trans);
-
- if (trans && trans->keep_alive)
- trans->keep_alive (trans->ka_user_data);
-
+ gst_rtsp_stream_transport_keep_alive (trans);
+ }
#ifdef DUMP_STATS
{
GstStructure *stats;