1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GStreamer RTSP Server Reference Manual: GstRTSPStream</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="GStreamer RTSP Server Reference Manual">
8 <link rel="up" href="ch01.html" title="">
9 <link rel="prev" href="GstRTSPMedia.html" title="GstRTSPMedia">
10 <link rel="next" href="GstRTSPSessionPool.html" title="GstRTSPSessionPool">
11 <meta name="generator" content="GTK-Doc V1.21 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
18 <a href="#GstRTSPStream.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
19 <a href="#GstRTSPStream.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="GstRTSPMedia.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="GstRTSPSessionPool.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 <div class="refentry">
27 <a name="GstRTSPStream"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
30 <h2><span class="refentrytitle"><a name="GstRTSPStream.top_of_page"></a>GstRTSPStream</span></h2>
31 <p>GstRTSPStream — A media stream</p>
33 <td class="gallery_image" valign="top" align="right"></td>
35 <div class="refsect1">
36 <a name="GstRTSPStream.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table width="100%" border="0">
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
44 <td class="function_type">
45 <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
47 <td class="function_name">
48 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-new" title="gst_rtsp_stream_new ()">gst_rtsp_stream_new</a> <span class="c_punctuation">()</span>
52 <td class="function_type">
53 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
55 <td class="function_name">
56 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-index" title="gst_rtsp_stream_get_index ()">gst_rtsp_stream_get_index</a> <span class="c_punctuation">()</span>
60 <td class="function_type">
61 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="returnvalue">GstPad</span></a> *
63 <td class="function_name">
64 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-srcpad" title="gst_rtsp_stream_get_srcpad ()">gst_rtsp_stream_get_srcpad</a> <span class="c_punctuation">()</span>
68 <td class="function_type">
69 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
71 <td class="function_name">
72 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-control" title="gst_rtsp_stream_get_control ()">gst_rtsp_stream_get_control</a> <span class="c_punctuation">()</span>
76 <td class="function_type">
77 <span class="returnvalue">void</span>
79 <td class="function_name">
80 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-control" title="gst_rtsp_stream_set_control ()">gst_rtsp_stream_set_control</a> <span class="c_punctuation">()</span>
84 <td class="function_type">
85 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
87 <td class="function_name">
88 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-has-control" title="gst_rtsp_stream_has_control ()">gst_rtsp_stream_has_control</a> <span class="c_punctuation">()</span>
92 <td class="function_type">
93 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
95 <td class="function_name">
96 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-mtu" title="gst_rtsp_stream_get_mtu ()">gst_rtsp_stream_get_mtu</a> <span class="c_punctuation">()</span>
100 <td class="function_type">
101 <span class="returnvalue">void</span>
103 <td class="function_name">
104 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-mtu" title="gst_rtsp_stream_set_mtu ()">gst_rtsp_stream_set_mtu</a> <span class="c_punctuation">()</span>
108 <td class="function_type">
109 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
111 <td class="function_name">
112 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-dscp-qos" title="gst_rtsp_stream_get_dscp_qos ()">gst_rtsp_stream_get_dscp_qos</a> <span class="c_punctuation">()</span>
116 <td class="function_type">
117 <span class="returnvalue">void</span>
119 <td class="function_name">
120 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-dscp-qos" title="gst_rtsp_stream_set_dscp_qos ()">gst_rtsp_stream_set_dscp_qos</a> <span class="c_punctuation">()</span>
124 <td class="function_type">
125 <span class="returnvalue">void</span>
127 <td class="function_name">
128 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-profiles" title="gst_rtsp_stream_set_profiles ()">gst_rtsp_stream_set_profiles</a> <span class="c_punctuation">()</span>
132 <td class="function_type">
133 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="returnvalue">GstRTSPProfile</span></a>
135 <td class="function_name">
136 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-profiles" title="gst_rtsp_stream_get_profiles ()">gst_rtsp_stream_get_profiles</a> <span class="c_punctuation">()</span>
140 <td class="function_type">
141 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="returnvalue">GstRTSPLowerTrans</span></a>
143 <td class="function_name">
144 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-protocols" title="gst_rtsp_stream_get_protocols ()">gst_rtsp_stream_get_protocols</a> <span class="c_punctuation">()</span>
148 <td class="function_type">
149 <span class="returnvalue">void</span>
151 <td class="function_name">
152 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-protocols" title="gst_rtsp_stream_set_protocols ()">gst_rtsp_stream_set_protocols</a> <span class="c_punctuation">()</span>
156 <td class="function_type">
157 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
159 <td class="function_name">
160 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-is-transport-supported" title="gst_rtsp_stream_is_transport_supported ()">gst_rtsp_stream_is_transport_supported</a> <span class="c_punctuation">()</span>
164 <td class="function_type">
165 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
167 <td class="function_name">
168 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-address-pool" title="gst_rtsp_stream_get_address_pool ()">gst_rtsp_stream_get_address_pool</a> <span class="c_punctuation">()</span>
172 <td class="function_type">
173 <span class="returnvalue">void</span>
175 <td class="function_name">
176 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-address-pool" title="gst_rtsp_stream_set_address_pool ()">gst_rtsp_stream_set_address_pool</a> <span class="c_punctuation">()</span>
180 <td class="function_type">
181 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
183 <td class="function_name">
184 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-reserve-address" title="gst_rtsp_stream_reserve_address ()">gst_rtsp_stream_reserve_address</a> <span class="c_punctuation">()</span>
188 <td class="function_type">
189 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
191 <td class="function_name">
192 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-join-bin" title="gst_rtsp_stream_join_bin ()">gst_rtsp_stream_join_bin</a> <span class="c_punctuation">()</span>
196 <td class="function_type">
197 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
199 <td class="function_name">
200 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-leave-bin" title="gst_rtsp_stream_leave_bin ()">gst_rtsp_stream_leave_bin</a> <span class="c_punctuation">()</span>
204 <td class="function_type">
205 <span class="returnvalue">void</span>
207 <td class="function_name">
208 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-server-port" title="gst_rtsp_stream_get_server_port ()">gst_rtsp_stream_get_server_port</a> <span class="c_punctuation">()</span>
212 <td class="function_type">
213 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
215 <td class="function_name">
216 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-multicast-address" title="gst_rtsp_stream_get_multicast_address ()">gst_rtsp_stream_get_multicast_address</a> <span class="c_punctuation">()</span>
220 <td class="function_type">
221 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *
223 <td class="function_name">
224 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtpsession" title="gst_rtsp_stream_get_rtpsession ()">gst_rtsp_stream_get_rtpsession</a> <span class="c_punctuation">()</span>
228 <td class="function_type">
229 <span class="returnvalue">void</span>
231 <td class="function_name">
232 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-ssrc" title="gst_rtsp_stream_get_ssrc ()">gst_rtsp_stream_get_ssrc</a> <span class="c_punctuation">()</span>
236 <td class="function_type">
237 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
239 <td class="function_name">
240 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtpinfo" title="gst_rtsp_stream_get_rtpinfo ()">gst_rtsp_stream_get_rtpinfo</a> <span class="c_punctuation">()</span>
244 <td class="function_type">
245 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="returnvalue">GstCaps</span></a> *
247 <td class="function_name">
248 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-caps" title="gst_rtsp_stream_get_caps ()">gst_rtsp_stream_get_caps</a> <span class="c_punctuation">()</span>
252 <td class="function_type">
253 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
255 <td class="function_name">
256 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-pt" title="gst_rtsp_stream_get_pt ()">gst_rtsp_stream_get_pt</a> <span class="c_punctuation">()</span>
260 <td class="function_type">
261 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
263 <td class="function_name">
264 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-recv-rtcp" title="gst_rtsp_stream_recv_rtcp ()">gst_rtsp_stream_recv_rtcp</a> <span class="c_punctuation">()</span>
268 <td class="function_type">
269 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
271 <td class="function_name">
272 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-recv-rtp" title="gst_rtsp_stream_recv_rtp ()">gst_rtsp_stream_recv_rtp</a> <span class="c_punctuation">()</span>
276 <td class="function_type">
277 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
279 <td class="function_name">
280 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-add-transport" title="gst_rtsp_stream_add_transport ()">gst_rtsp_stream_add_transport</a> <span class="c_punctuation">()</span>
284 <td class="function_type">
285 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
287 <td class="function_name">
288 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-remove-transport" title="gst_rtsp_stream_remove_transport ()">gst_rtsp_stream_remove_transport</a> <span class="c_punctuation">()</span>
292 <td class="function_type">
293 <a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
295 <td class="function_name">
296 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtp-socket" title="gst_rtsp_stream_get_rtp_socket ()">gst_rtsp_stream_get_rtp_socket</a> <span class="c_punctuation">()</span>
300 <td class="function_type">
301 <a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
303 <td class="function_name">
304 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtcp-socket" title="gst_rtsp_stream_get_rtcp_socket ()">gst_rtsp_stream_get_rtcp_socket</a> <span class="c_punctuation">()</span>
308 <td class="function_type">
309 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
311 <td class="function_name">
312 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-blocked" title="gst_rtsp_stream_set_blocked ()">gst_rtsp_stream_set_blocked</a> <span class="c_punctuation">()</span>
316 <td class="function_type">
317 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
319 <td class="function_name">
320 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-is-blocking" title="gst_rtsp_stream_is_blocking ()">gst_rtsp_stream_is_blocking</a> <span class="c_punctuation">()</span>
324 <td class="function_type">
325 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
327 <td class="function_name">
328 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-update-crypto" title="gst_rtsp_stream_update_crypto ()">gst_rtsp_stream_update_crypto</a> <span class="c_punctuation">()</span>
332 <td class="function_type">
333 <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="returnvalue">GstRTSPFilterResult</span></a>
335 <td class="function_name">
336 <span class="c_punctuation">(</span><a class="link" href="GstRTSPStream.html#GstRTSPStreamTransportFilterFunc" title="GstRTSPStreamTransportFilterFunc ()">*GstRTSPStreamTransportFilterFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
340 <td class="function_type">
341 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
343 <td class="function_name">
344 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()">gst_rtsp_stream_transport_filter</a> <span class="c_punctuation">()</span>
350 <div class="refsect1">
351 <a name="GstRTSPStream.other"></a><h2>Types and Values</h2>
352 <div class="informaltable"><table width="100%" border="0">
354 <col width="150px" class="name">
355 <col class="description">
359 <td class="datatype_keyword">struct</td>
360 <td class="function_name"><a class="link" href="GstRTSPStream.html#GstRTSPStream-struct" title="struct GstRTSPStream">GstRTSPStream</a></td>
363 <td class="datatype_keyword"> </td>
364 <td class="function_name"><a class="link" href="GstRTSPStream.html#GstRTSPStreamClass" title="GstRTSPStreamClass">GstRTSPStreamClass</a></td>
369 <div class="refsect1">
370 <a name="GstRTSPStream.object-hierarchy"></a><h2>Object Hierarchy</h2>
371 <pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
372 <span class="lineart">╰──</span> GstRTSPStream
375 <div class="refsect1">
376 <a name="GstRTSPStream.description"></a><h2>Description</h2>
377 <p>The <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> object manages the data transport for one stream. It
378 is created from a payloader element and a source pad that produce the RTP
379 packets for the stream.</p>
380 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-join-bin" title="gst_rtsp_stream_join_bin ()"><code class="function">gst_rtsp_stream_join_bin()</code></a> the streaming elements are added to the bin
381 and rtpbin. <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-leave-bin" title="gst_rtsp_stream_leave_bin ()"><code class="function">gst_rtsp_stream_leave_bin()</code></a> removes the elements again.</p>
382 <p>The <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> will use the configured addresspool, as set with
383 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-address-pool" title="gst_rtsp_stream_set_address_pool ()"><code class="function">gst_rtsp_stream_set_address_pool()</code></a>, to allocate multicast addresses for the
384 stream. With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-multicast-address" title="gst_rtsp_stream_get_multicast_address ()"><code class="function">gst_rtsp_stream_get_multicast_address()</code></a> you can get the
385 configured address.</p>
386 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-server-port" title="gst_rtsp_stream_get_server_port ()"><code class="function">gst_rtsp_stream_get_server_port()</code></a> you can get the port that the server
387 will use to receive RTCP. This is the part that the clients will use to send
389 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-add-transport" title="gst_rtsp_stream_add_transport ()"><code class="function">gst_rtsp_stream_add_transport()</code></a> destinations can be added where the
390 stream should be sent to. Use <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-remove-transport" title="gst_rtsp_stream_remove_transport ()"><code class="function">gst_rtsp_stream_remove_transport()</code></a> to remove
391 the destination again.</p>
392 <p>Last reviewed on 2013-07-16 (1.0.0)</p>
394 <div class="refsect1">
395 <a name="GstRTSPStream.functions_details"></a><h2>Functions</h2>
396 <div class="refsect2">
397 <a name="gst-rtsp-stream-new"></a><h3>gst_rtsp_stream_new ()</h3>
398 <pre class="programlisting"><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
399 gst_rtsp_stream_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> idx</code></em>,
400 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *payloader</code></em>,
401 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="type">GstPad</span></a> *srcpad</code></em>);</pre>
402 <p>Create a new media stream with index <em class="parameter"><code>idx</code></em>
403 that handles RTP data on
404 <em class="parameter"><code>srcpad</code></em>
405 and has a payloader element <em class="parameter"><code>payloader</code></em>
407 <div class="refsect3">
408 <a name="id-1.2.8.7.2.5"></a><h4>Parameters</h4>
409 <div class="informaltable"><table width="100%" border="0">
411 <col width="150px" class="parameters_name">
412 <col class="parameters_description">
413 <col width="200px" class="parameters_annotations">
417 <td class="parameter_name"><p>idx</p></td>
418 <td class="parameter_description"><p>an index</p></td>
419 <td class="parameter_annotations"> </td>
422 <td class="parameter_name"><p>srcpad</p></td>
423 <td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="type">GstPad</span></a></p></td>
424 <td class="parameter_annotations"> </td>
427 <td class="parameter_name"><p>payloader</p></td>
428 <td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a></p></td>
429 <td class="parameter_annotations"> </td>
434 <div class="refsect3">
435 <a name="id-1.2.8.7.2.6"></a><h4>Returns</h4>
436 <p> a new <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a>. </p>
437 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
441 <div class="refsect2">
442 <a name="gst-rtsp-stream-get-index"></a><h3>gst_rtsp_stream_get_index ()</h3>
443 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
444 gst_rtsp_stream_get_index (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
445 <p>Get the stream index.</p>
446 <p>Return: the stream index.</p>
447 <div class="refsect3">
448 <a name="id-1.2.8.7.3.6"></a><h4>Parameters</h4>
449 <div class="informaltable"><table width="100%" border="0">
451 <col width="150px" class="parameters_name">
452 <col class="parameters_description">
453 <col width="200px" class="parameters_annotations">
456 <td class="parameter_name"><p>stream</p></td>
457 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
458 <td class="parameter_annotations"> </td>
464 <div class="refsect2">
465 <a name="gst-rtsp-stream-get-srcpad"></a><h3>gst_rtsp_stream_get_srcpad ()</h3>
466 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="returnvalue">GstPad</span></a> *
467 gst_rtsp_stream_get_srcpad (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
468 <p>Get the srcpad associated with <em class="parameter"><code>stream</code></em>
470 <div class="refsect3">
471 <a name="id-1.2.8.7.4.5"></a><h4>Parameters</h4>
472 <div class="informaltable"><table width="100%" border="0">
474 <col width="150px" class="parameters_name">
475 <col class="parameters_description">
476 <col width="200px" class="parameters_annotations">
479 <td class="parameter_name"><p>stream</p></td>
480 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
481 <td class="parameter_annotations"> </td>
485 <div class="refsect3">
486 <a name="id-1.2.8.7.4.6"></a><h4>Returns</h4>
487 <p> the srcpad. Unref after usage. </p>
488 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
492 <div class="refsect2">
493 <a name="gst-rtsp-stream-get-control"></a><h3>gst_rtsp_stream_get_control ()</h3>
494 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
495 gst_rtsp_stream_get_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
496 <p>Get the control string to identify this stream.</p>
497 <div class="refsect3">
498 <a name="id-1.2.8.7.5.5"></a><h4>Parameters</h4>
499 <div class="informaltable"><table width="100%" border="0">
501 <col width="150px" class="parameters_name">
502 <col class="parameters_description">
503 <col width="200px" class="parameters_annotations">
506 <td class="parameter_name"><p>stream</p></td>
507 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
508 <td class="parameter_annotations"> </td>
512 <div class="refsect3">
513 <a name="id-1.2.8.7.5.6"></a><h4>Returns</h4>
514 <p> the control string. <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage. </p>
515 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
519 <div class="refsect2">
520 <a name="gst-rtsp-stream-set-control"></a><h3>gst_rtsp_stream_set_control ()</h3>
521 <pre class="programlisting"><span class="returnvalue">void</span>
522 gst_rtsp_stream_set_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
523 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *control</code></em>);</pre>
524 <p>Set the control string in <em class="parameter"><code>stream</code></em>
526 <div class="refsect3">
527 <a name="id-1.2.8.7.6.5"></a><h4>Parameters</h4>
528 <div class="informaltable"><table width="100%" border="0">
530 <col width="150px" class="parameters_name">
531 <col class="parameters_description">
532 <col width="200px" class="parameters_annotations">
536 <td class="parameter_name"><p>stream</p></td>
537 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
538 <td class="parameter_annotations"> </td>
541 <td class="parameter_name"><p>control</p></td>
542 <td class="parameter_description"><p>a control string</p></td>
543 <td class="parameter_annotations"> </td>
550 <div class="refsect2">
551 <a name="gst-rtsp-stream-has-control"></a><h3>gst_rtsp_stream_has_control ()</h3>
552 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
553 gst_rtsp_stream_has_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
554 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *control</code></em>);</pre>
555 <p>Check if <em class="parameter"><code>stream</code></em>
556 has the control string <em class="parameter"><code>control</code></em>
558 <div class="refsect3">
559 <a name="id-1.2.8.7.7.5"></a><h4>Parameters</h4>
560 <div class="informaltable"><table width="100%" border="0">
562 <col width="150px" class="parameters_name">
563 <col class="parameters_description">
564 <col width="200px" class="parameters_annotations">
568 <td class="parameter_name"><p>stream</p></td>
569 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
570 <td class="parameter_annotations"> </td>
573 <td class="parameter_name"><p>control</p></td>
574 <td class="parameter_description"><p>a control string</p></td>
575 <td class="parameter_annotations"> </td>
580 <div class="refsect3">
581 <a name="id-1.2.8.7.7.6"></a><h4>Returns</h4>
582 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is <em class="parameter"><code>stream</code></em>
583 has <em class="parameter"><code>control</code></em>
584 as the control string</p>
589 <div class="refsect2">
590 <a name="gst-rtsp-stream-get-mtu"></a><h3>gst_rtsp_stream_get_mtu ()</h3>
591 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
592 gst_rtsp_stream_get_mtu (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
593 <p>Get the configured MTU in the payloader of <em class="parameter"><code>stream</code></em>
595 <div class="refsect3">
596 <a name="id-1.2.8.7.8.5"></a><h4>Parameters</h4>
597 <div class="informaltable"><table width="100%" border="0">
599 <col width="150px" class="parameters_name">
600 <col class="parameters_description">
601 <col width="200px" class="parameters_annotations">
604 <td class="parameter_name"><p>stream</p></td>
605 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
606 <td class="parameter_annotations"> </td>
610 <div class="refsect3">
611 <a name="id-1.2.8.7.8.6"></a><h4>Returns</h4>
612 <p> the MTU of the payloader.</p>
617 <div class="refsect2">
618 <a name="gst-rtsp-stream-set-mtu"></a><h3>gst_rtsp_stream_set_mtu ()</h3>
619 <pre class="programlisting"><span class="returnvalue">void</span>
620 gst_rtsp_stream_set_mtu (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
621 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> mtu</code></em>);</pre>
622 <p>Configure the mtu in the payloader of <em class="parameter"><code>stream</code></em>
623 to <em class="parameter"><code>mtu</code></em>
625 <div class="refsect3">
626 <a name="id-1.2.8.7.9.5"></a><h4>Parameters</h4>
627 <div class="informaltable"><table width="100%" border="0">
629 <col width="150px" class="parameters_name">
630 <col class="parameters_description">
631 <col width="200px" class="parameters_annotations">
635 <td class="parameter_name"><p>stream</p></td>
636 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
637 <td class="parameter_annotations"> </td>
640 <td class="parameter_name"><p>mtu</p></td>
641 <td class="parameter_description"><p>a new MTU</p></td>
642 <td class="parameter_annotations"> </td>
649 <div class="refsect2">
650 <a name="gst-rtsp-stream-get-dscp-qos"></a><h3>gst_rtsp_stream_get_dscp_qos ()</h3>
651 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
652 gst_rtsp_stream_get_dscp_qos (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
653 <p>Get the configured DSCP QoS in of the outgoing sockets.</p>
654 <div class="refsect3">
655 <a name="id-1.2.8.7.10.5"></a><h4>Parameters</h4>
656 <div class="informaltable"><table width="100%" border="0">
658 <col width="150px" class="parameters_name">
659 <col class="parameters_description">
660 <col width="200px" class="parameters_annotations">
663 <td class="parameter_name"><p>stream</p></td>
664 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
665 <td class="parameter_annotations"> </td>
669 <div class="refsect3">
670 <a name="id-1.2.8.7.10.6"></a><h4>Returns</h4>
671 <p> the DSCP QoS value of the outgoing sockets, or -1 if disbled.</p>
676 <div class="refsect2">
677 <a name="gst-rtsp-stream-set-dscp-qos"></a><h3>gst_rtsp_stream_set_dscp_qos ()</h3>
678 <pre class="programlisting"><span class="returnvalue">void</span>
679 gst_rtsp_stream_set_dscp_qos (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
680 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dscp_qos</code></em>);</pre>
681 <p>Configure the dscp qos of the outgoing sockets to <em class="parameter"><code>dscp_qos</code></em>
683 <div class="refsect3">
684 <a name="id-1.2.8.7.11.5"></a><h4>Parameters</h4>
685 <div class="informaltable"><table width="100%" border="0">
687 <col width="150px" class="parameters_name">
688 <col class="parameters_description">
689 <col width="200px" class="parameters_annotations">
693 <td class="parameter_name"><p>stream</p></td>
694 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
695 <td class="parameter_annotations"> </td>
698 <td class="parameter_name"><p>dscp_qos</p></td>
699 <td class="parameter_description"><p>a new dscp qos value (0-63, or -1 to disable)</p></td>
700 <td class="parameter_annotations"> </td>
707 <div class="refsect2">
708 <a name="gst-rtsp-stream-set-profiles"></a><h3>gst_rtsp_stream_set_profiles ()</h3>
709 <pre class="programlisting"><span class="returnvalue">void</span>
710 gst_rtsp_stream_set_profiles (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
711 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="type">GstRTSPProfile</span></a> profiles</code></em>);</pre>
712 <p>Configure the allowed profiles for <em class="parameter"><code>stream</code></em>
714 <div class="refsect3">
715 <a name="id-1.2.8.7.12.5"></a><h4>Parameters</h4>
716 <div class="informaltable"><table width="100%" border="0">
718 <col width="150px" class="parameters_name">
719 <col class="parameters_description">
720 <col width="200px" class="parameters_annotations">
724 <td class="parameter_name"><p>stream</p></td>
725 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
726 <td class="parameter_annotations"> </td>
729 <td class="parameter_name"><p>profiles</p></td>
730 <td class="parameter_description"><p>the new profiles</p></td>
731 <td class="parameter_annotations"> </td>
738 <div class="refsect2">
739 <a name="gst-rtsp-stream-get-profiles"></a><h3>gst_rtsp_stream_get_profiles ()</h3>
740 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="returnvalue">GstRTSPProfile</span></a>
741 gst_rtsp_stream_get_profiles (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
742 <p>Get the allowed profiles of <em class="parameter"><code>stream</code></em>
744 <div class="refsect3">
745 <a name="id-1.2.8.7.13.5"></a><h4>Parameters</h4>
746 <div class="informaltable"><table width="100%" border="0">
748 <col width="150px" class="parameters_name">
749 <col class="parameters_description">
750 <col width="200px" class="parameters_annotations">
753 <td class="parameter_name"><p>stream</p></td>
754 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
755 <td class="parameter_annotations"> </td>
759 <div class="refsect3">
760 <a name="id-1.2.8.7.13.6"></a><h4>Returns</h4>
761 <p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="type">GstRTSPProfile</span></a></p>
766 <div class="refsect2">
767 <a name="gst-rtsp-stream-get-protocols"></a><h3>gst_rtsp_stream_get_protocols ()</h3>
768 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="returnvalue">GstRTSPLowerTrans</span></a>
769 gst_rtsp_stream_get_protocols (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
770 <p>Get the allowed protocols of <em class="parameter"><code>stream</code></em>
772 <div class="refsect3">
773 <a name="id-1.2.8.7.14.5"></a><h4>Parameters</h4>
774 <div class="informaltable"><table width="100%" border="0">
776 <col width="150px" class="parameters_name">
777 <col class="parameters_description">
778 <col width="200px" class="parameters_annotations">
781 <td class="parameter_name"><p>stream</p></td>
782 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
783 <td class="parameter_annotations"> </td>
787 <div class="refsect3">
788 <a name="id-1.2.8.7.14.6"></a><h4>Returns</h4>
789 <p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="type">GstRTSPLowerTrans</span></a></p>
794 <div class="refsect2">
795 <a name="gst-rtsp-stream-set-protocols"></a><h3>gst_rtsp_stream_set_protocols ()</h3>
796 <pre class="programlisting"><span class="returnvalue">void</span>
797 gst_rtsp_stream_set_protocols (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
798 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="type">GstRTSPLowerTrans</span></a> protocols</code></em>);</pre>
799 <p>Configure the allowed lower transport for <em class="parameter"><code>stream</code></em>
801 <div class="refsect3">
802 <a name="id-1.2.8.7.15.5"></a><h4>Parameters</h4>
803 <div class="informaltable"><table width="100%" border="0">
805 <col width="150px" class="parameters_name">
806 <col class="parameters_description">
807 <col width="200px" class="parameters_annotations">
811 <td class="parameter_name"><p>stream</p></td>
812 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
813 <td class="parameter_annotations"> </td>
816 <td class="parameter_name"><p>protocols</p></td>
817 <td class="parameter_description"><p>the new flags</p></td>
818 <td class="parameter_annotations"> </td>
825 <div class="refsect2">
826 <a name="gst-rtsp-stream-is-transport-supported"></a><h3>gst_rtsp_stream_is_transport_supported ()</h3>
827 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
828 gst_rtsp_stream_is_transport_supported
829 (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
830 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a> *transport</code></em>);</pre>
831 <p>Check if <em class="parameter"><code>transport</code></em>
832 can be handled by stream</p>
833 <div class="refsect3">
834 <a name="id-1.2.8.7.16.5"></a><h4>Parameters</h4>
835 <div class="informaltable"><table width="100%" border="0">
837 <col width="150px" class="parameters_name">
838 <col class="parameters_description">
839 <col width="200px" class="parameters_annotations">
843 <td class="parameter_name"><p>stream</p></td>
844 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
845 <td class="parameter_annotations"> </td>
848 <td class="parameter_name"><p>transport</p></td>
849 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>. </p></td>
850 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
855 <div class="refsect3">
856 <a name="id-1.2.8.7.16.6"></a><h4>Returns</h4>
857 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>transport</code></em>
858 can be handled by <em class="parameter"><code>stream</code></em>
864 <div class="refsect2">
865 <a name="gst-rtsp-stream-get-address-pool"></a><h3>gst_rtsp_stream_get_address_pool ()</h3>
866 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
867 gst_rtsp_stream_get_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
868 <p>Get the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> used as the address pool of <em class="parameter"><code>stream</code></em>
870 <div class="refsect3">
871 <a name="id-1.2.8.7.17.5"></a><h4>Parameters</h4>
872 <div class="informaltable"><table width="100%" border="0">
874 <col width="150px" class="parameters_name">
875 <col class="parameters_description">
876 <col width="200px" class="parameters_annotations">
879 <td class="parameter_name"><p>stream</p></td>
880 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
881 <td class="parameter_annotations"> </td>
885 <div class="refsect3">
886 <a name="id-1.2.8.7.17.6"></a><h4>Returns</h4>
887 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> of <em class="parameter"><code>stream</code></em>
888 . <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> after
890 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
894 <div class="refsect2">
895 <a name="gst-rtsp-stream-set-address-pool"></a><h3>gst_rtsp_stream_set_address_pool ()</h3>
896 <pre class="programlisting"><span class="returnvalue">void</span>
897 gst_rtsp_stream_set_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
898 <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> *pool</code></em>);</pre>
899 <p>configure <em class="parameter"><code>pool</code></em>
900 to be used as the address pool of <em class="parameter"><code>stream</code></em>
902 <div class="refsect3">
903 <a name="id-1.2.8.7.18.5"></a><h4>Parameters</h4>
904 <div class="informaltable"><table width="100%" border="0">
906 <col width="150px" class="parameters_name">
907 <col class="parameters_description">
908 <col width="200px" class="parameters_annotations">
912 <td class="parameter_name"><p>stream</p></td>
913 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
914 <td class="parameter_annotations"> </td>
917 <td class="parameter_name"><p>pool</p></td>
918 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a>. </p></td>
919 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
926 <div class="refsect2">
927 <a name="gst-rtsp-stream-reserve-address"></a><h3>gst_rtsp_stream_reserve_address ()</h3>
928 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
929 gst_rtsp_stream_reserve_address (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
930 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *address</code></em>,
931 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> port</code></em>,
932 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_ports</code></em>,
933 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ttl</code></em>);</pre>
934 <p>Reserve <em class="parameter"><code>address</code></em>
935 and <em class="parameter"><code>port</code></em>
936 as the address and port of <em class="parameter"><code>stream</code></em>
938 <div class="refsect3">
939 <a name="id-1.2.8.7.19.5"></a><h4>Parameters</h4>
940 <div class="informaltable"><table width="100%" border="0">
942 <col width="150px" class="parameters_name">
943 <col class="parameters_description">
944 <col width="200px" class="parameters_annotations">
948 <td class="parameter_name"><p>stream</p></td>
949 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
950 <td class="parameter_annotations"> </td>
953 <td class="parameter_name"><p>address</p></td>
954 <td class="parameter_description"><p>an address</p></td>
955 <td class="parameter_annotations"> </td>
958 <td class="parameter_name"><p>port</p></td>
959 <td class="parameter_description"><p>a port</p></td>
960 <td class="parameter_annotations"> </td>
963 <td class="parameter_name"><p>n_ports</p></td>
964 <td class="parameter_description"><p>n_ports</p></td>
965 <td class="parameter_annotations"> </td>
968 <td class="parameter_name"><p>ttl</p></td>
969 <td class="parameter_description"><p>a TTL</p></td>
970 <td class="parameter_annotations"> </td>
975 <div class="refsect3">
976 <a name="id-1.2.8.7.19.6"></a><h4>Returns</h4>
977 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="type">GstRTSPAddress</span></a> of <em class="parameter"><code>stream</code></em>
978 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when
979 the address could be reserved. <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#gst-rtsp-address-free" title="gst_rtsp_address_free ()"><code class="function">gst_rtsp_address_free()</code></a> after usage. </p>
980 <p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
984 <div class="refsect2">
985 <a name="gst-rtsp-stream-join-bin"></a><h3>gst_rtsp_stream_join_bin ()</h3>
986 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
987 gst_rtsp_stream_join_bin (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
988 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> *bin</code></em>,
989 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *rtpbin</code></em>,
990 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#GstState"><span class="type">GstState</span></a> state</code></em>);</pre>
991 <p>Join the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> <em class="parameter"><code>bin</code></em>
992 that contains the element <em class="parameter"><code>rtpbin</code></em>
994 <p><em class="parameter"><code>stream</code></em>
995 will link to <em class="parameter"><code>rtpbin</code></em>
996 , which must be inside <em class="parameter"><code>bin</code></em>
998 added to <em class="parameter"><code>bin</code></em>
999 will be set to the state given in <em class="parameter"><code>state</code></em>
1001 <div class="refsect3">
1002 <a name="id-1.2.8.7.20.6"></a><h4>Parameters</h4>
1003 <div class="informaltable"><table width="100%" border="0">
1005 <col width="150px" class="parameters_name">
1006 <col class="parameters_description">
1007 <col width="200px" class="parameters_annotations">
1011 <td class="parameter_name"><p>stream</p></td>
1012 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1013 <td class="parameter_annotations"> </td>
1016 <td class="parameter_name"><p>bin</p></td>
1017 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> to join. </p></td>
1018 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1021 <td class="parameter_name"><p>rtpbin</p></td>
1022 <td class="parameter_description"><p> a rtpbin element in <em class="parameter"><code>bin</code></em>
1024 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1027 <td class="parameter_name"><p>state</p></td>
1028 <td class="parameter_description"><p>the target state of the new elements</p></td>
1029 <td class="parameter_annotations"> </td>
1034 <div class="refsect3">
1035 <a name="id-1.2.8.7.20.7"></a><h4>Returns</h4>
1036 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p>
1041 <div class="refsect2">
1042 <a name="gst-rtsp-stream-leave-bin"></a><h3>gst_rtsp_stream_leave_bin ()</h3>
1043 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1044 gst_rtsp_stream_leave_bin (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1045 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> *bin</code></em>,
1046 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *rtpbin</code></em>);</pre>
1047 <p>Remove the elements of <em class="parameter"><code>stream</code></em>
1048 from <em class="parameter"><code>bin</code></em>
1050 <p>Return: <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p>
1051 <div class="refsect3">
1052 <a name="id-1.2.8.7.21.6"></a><h4>Parameters</h4>
1053 <div class="informaltable"><table width="100%" border="0">
1055 <col width="150px" class="parameters_name">
1056 <col class="parameters_description">
1057 <col width="200px" class="parameters_annotations">
1061 <td class="parameter_name"><p>stream</p></td>
1062 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1063 <td class="parameter_annotations"> </td>
1066 <td class="parameter_name"><p>bin</p></td>
1067 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a>. </p></td>
1068 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1071 <td class="parameter_name"><p>rtpbin</p></td>
1072 <td class="parameter_description"><p> a rtpbin <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a>. </p></td>
1073 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1080 <div class="refsect2">
1081 <a name="gst-rtsp-stream-get-server-port"></a><h3>gst_rtsp_stream_get_server_port ()</h3>
1082 <pre class="programlisting"><span class="returnvalue">void</span>
1083 gst_rtsp_stream_get_server_port (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1084 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPRange"><span class="type">GstRTSPRange</span></a> *server_port</code></em>,
1085 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1086 <p>Fill <em class="parameter"><code>server_port</code></em>
1087 with the port pair used by the server. This function can
1088 only be called when <em class="parameter"><code>stream</code></em>
1089 has been joined.</p>
1090 <div class="refsect3">
1091 <a name="id-1.2.8.7.22.5"></a><h4>Parameters</h4>
1092 <div class="informaltable"><table width="100%" border="0">
1094 <col width="150px" class="parameters_name">
1095 <col class="parameters_description">
1096 <col width="200px" class="parameters_annotations">
1100 <td class="parameter_name"><p>stream</p></td>
1101 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1102 <td class="parameter_annotations"> </td>
1105 <td class="parameter_name"><p>server_port</p></td>
1106 <td class="parameter_description"><p> result server port. </p></td>
1107 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1110 <td class="parameter_name"><p>family</p></td>
1111 <td class="parameter_description"><p>the port family to get</p></td>
1112 <td class="parameter_annotations"> </td>
1119 <div class="refsect2">
1120 <a name="gst-rtsp-stream-get-multicast-address"></a><h3>gst_rtsp_stream_get_multicast_address ()</h3>
1121 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
1122 gst_rtsp_stream_get_multicast_address (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1123 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1124 <p>Get the multicast address of <em class="parameter"><code>stream</code></em>
1125 for <em class="parameter"><code>family</code></em>
1127 <div class="refsect3">
1128 <a name="id-1.2.8.7.23.5"></a><h4>Parameters</h4>
1129 <div class="informaltable"><table width="100%" border="0">
1131 <col width="150px" class="parameters_name">
1132 <col class="parameters_description">
1133 <col width="200px" class="parameters_annotations">
1137 <td class="parameter_name"><p>stream</p></td>
1138 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1139 <td class="parameter_annotations"> </td>
1142 <td class="parameter_name"><p>family</p></td>
1143 <td class="parameter_description"><p>the <a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a></p></td>
1144 <td class="parameter_annotations"> </td>
1149 <div class="refsect3">
1150 <a name="id-1.2.8.7.23.6"></a><h4>Returns</h4>
1151 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="type">GstRTSPAddress</span></a> of <em class="parameter"><code>stream</code></em>
1152 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when no address could be allocated. <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#gst-rtsp-address-free" title="gst_rtsp_address_free ()"><code class="function">gst_rtsp_address_free()</code></a>
1154 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1158 <div class="refsect2">
1159 <a name="gst-rtsp-stream-get-rtpsession"></a><h3>gst_rtsp_stream_get_rtpsession ()</h3>
1160 <pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *
1161 gst_rtsp_stream_get_rtpsession (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1162 <p>Get the RTP session of this stream.</p>
1163 <div class="refsect3">
1164 <a name="id-1.2.8.7.24.5"></a><h4>Parameters</h4>
1165 <div class="informaltable"><table width="100%" border="0">
1167 <col width="150px" class="parameters_name">
1168 <col class="parameters_description">
1169 <col width="200px" class="parameters_annotations">
1172 <td class="parameter_name"><p>stream</p></td>
1173 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1174 <td class="parameter_annotations"> </td>
1178 <div class="refsect3">
1179 <a name="id-1.2.8.7.24.6"></a><h4>Returns</h4>
1180 <p> The RTP session of this stream. Unref after usage. </p>
1181 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1185 <div class="refsect2">
1186 <a name="gst-rtsp-stream-get-ssrc"></a><h3>gst_rtsp_stream_get_ssrc ()</h3>
1187 <pre class="programlisting"><span class="returnvalue">void</span>
1188 gst_rtsp_stream_get_ssrc (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1189 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *ssrc</code></em>);</pre>
1190 <p>Get the SSRC used by the RTP session of this stream. This function can only
1191 be called when <em class="parameter"><code>stream</code></em>
1192 has been joined.</p>
1193 <div class="refsect3">
1194 <a name="id-1.2.8.7.25.5"></a><h4>Parameters</h4>
1195 <div class="informaltable"><table width="100%" border="0">
1197 <col width="150px" class="parameters_name">
1198 <col class="parameters_description">
1199 <col width="200px" class="parameters_annotations">
1203 <td class="parameter_name"><p>stream</p></td>
1204 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1205 <td class="parameter_annotations"> </td>
1208 <td class="parameter_name"><p>ssrc</p></td>
1209 <td class="parameter_description"><p> result ssrc. </p></td>
1210 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1217 <div class="refsect2">
1218 <a name="gst-rtsp-stream-get-rtpinfo"></a><h3>gst_rtsp_stream_get_rtpinfo ()</h3>
1219 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1220 gst_rtsp_stream_get_rtpinfo (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1221 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *rtptime</code></em>,
1222 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *seq</code></em>,
1223 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *clock_rate</code></em>,
1224 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> *running_time</code></em>);</pre>
1225 <p>Retrieve the current rtptime, seq and running-time. This is used to
1226 construct a RTPInfo reply header.</p>
1227 <div class="refsect3">
1228 <a name="id-1.2.8.7.26.5"></a><h4>Parameters</h4>
1229 <div class="informaltable"><table width="100%" border="0">
1231 <col width="150px" class="parameters_name">
1232 <col class="parameters_description">
1233 <col width="200px" class="parameters_annotations">
1237 <td class="parameter_name"><p>stream</p></td>
1238 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1239 <td class="parameter_annotations"> </td>
1242 <td class="parameter_name"><p>rtptime</p></td>
1243 <td class="parameter_description"><p> result RTP timestamp. </p></td>
1244 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1247 <td class="parameter_name"><p>seq</p></td>
1248 <td class="parameter_description"><p> result RTP seqnum. </p></td>
1249 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1252 <td class="parameter_name"><p>clock_rate</p></td>
1253 <td class="parameter_description"><p> the clock rate. </p></td>
1254 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1257 <td class="parameter_name"><p>running_time</p></td>
1258 <td class="parameter_description"><p> result running-time. </p></td>
1259 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1264 <div class="refsect3">
1265 <a name="id-1.2.8.7.26.6"></a><h4>Returns</h4>
1266 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> when rtptime, seq and running-time could be determined.</p>
1271 <div class="refsect2">
1272 <a name="gst-rtsp-stream-get-caps"></a><h3>gst_rtsp_stream_get_caps ()</h3>
1273 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="returnvalue">GstCaps</span></a> *
1274 gst_rtsp_stream_get_caps (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1275 <p>Retrieve the current caps of <em class="parameter"><code>stream</code></em>
1277 <div class="refsect3">
1278 <a name="id-1.2.8.7.27.5"></a><h4>Parameters</h4>
1279 <div class="informaltable"><table width="100%" border="0">
1281 <col width="150px" class="parameters_name">
1282 <col class="parameters_description">
1283 <col width="200px" class="parameters_annotations">
1286 <td class="parameter_name"><p>stream</p></td>
1287 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1288 <td class="parameter_annotations"> </td>
1292 <div class="refsect3">
1293 <a name="id-1.2.8.7.27.6"></a><h4>Returns</h4>
1294 <p> the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> of <em class="parameter"><code>stream</code></em>
1295 . use <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html#gst-caps-unref"><code class="function">gst_caps_unref()</code></a>
1297 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1301 <div class="refsect2">
1302 <a name="gst-rtsp-stream-get-pt"></a><h3>gst_rtsp_stream_get_pt ()</h3>
1303 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
1304 gst_rtsp_stream_get_pt (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1305 <p>Get the stream payload type.</p>
1306 <p>Return: the stream payload type.</p>
1307 <div class="refsect3">
1308 <a name="id-1.2.8.7.28.6"></a><h4>Parameters</h4>
1309 <div class="informaltable"><table width="100%" border="0">
1311 <col width="150px" class="parameters_name">
1312 <col class="parameters_description">
1313 <col width="200px" class="parameters_annotations">
1316 <td class="parameter_name"><p>stream</p></td>
1317 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1318 <td class="parameter_annotations"> </td>
1324 <div class="refsect2">
1325 <a name="gst-rtsp-stream-recv-rtcp"></a><h3>gst_rtsp_stream_recv_rtcp ()</h3>
1326 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
1327 gst_rtsp_stream_recv_rtcp (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1328 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1329 <p>Handle an RTCP buffer for the stream. This method is usually called when a
1330 message has been received from a client using the TCP transport.</p>
1331 <p>This function takes ownership of <em class="parameter"><code>buffer</code></em>
1333 <div class="refsect3">
1334 <a name="id-1.2.8.7.29.6"></a><h4>Parameters</h4>
1335 <div class="informaltable"><table width="100%" border="0">
1337 <col width="150px" class="parameters_name">
1338 <col class="parameters_description">
1339 <col width="200px" class="parameters_annotations">
1343 <td class="parameter_name"><p>stream</p></td>
1344 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1345 <td class="parameter_annotations"> </td>
1348 <td class="parameter_name"><p>buffer</p></td>
1349 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>. </p></td>
1350 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
1355 <div class="refsect3">
1356 <a name="id-1.2.8.7.29.7"></a><h4>Returns</h4>
1357 <p> a GstFlowReturn.</p>
1362 <div class="refsect2">
1363 <a name="gst-rtsp-stream-recv-rtp"></a><h3>gst_rtsp_stream_recv_rtp ()</h3>
1364 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
1365 gst_rtsp_stream_recv_rtp (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1366 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1367 <p>Handle an RTP buffer for the stream. This method is usually called when a
1368 message has been received from a client using the TCP transport.</p>
1369 <p>This function takes ownership of <em class="parameter"><code>buffer</code></em>
1371 <div class="refsect3">
1372 <a name="id-1.2.8.7.30.6"></a><h4>Parameters</h4>
1373 <div class="informaltable"><table width="100%" border="0">
1375 <col width="150px" class="parameters_name">
1376 <col class="parameters_description">
1377 <col width="200px" class="parameters_annotations">
1381 <td class="parameter_name"><p>stream</p></td>
1382 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1383 <td class="parameter_annotations"> </td>
1386 <td class="parameter_name"><p>buffer</p></td>
1387 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>. </p></td>
1388 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
1393 <div class="refsect3">
1394 <a name="id-1.2.8.7.30.7"></a><h4>Returns</h4>
1395 <p> a GstFlowReturn.</p>
1400 <div class="refsect2">
1401 <a name="gst-rtsp-stream-add-transport"></a><h3>gst_rtsp_stream_add_transport ()</h3>
1402 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1403 gst_rtsp_stream_add_transport (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1404 <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>);</pre>
1405 <p>Add the transport in <em class="parameter"><code>trans</code></em>
1406 to <em class="parameter"><code>stream</code></em>
1407 . The media of <em class="parameter"><code>stream</code></em>
1409 then also be send to the values configured in <em class="parameter"><code>trans</code></em>
1411 <p><em class="parameter"><code>stream</code></em>
1412 must be joined to a bin.</p>
1413 <p><em class="parameter"><code>trans</code></em>
1414 must contain a valid <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>.</p>
1415 <div class="refsect3">
1416 <a name="id-1.2.8.7.31.7"></a><h4>Parameters</h4>
1417 <div class="informaltable"><table width="100%" border="0">
1419 <col width="150px" class="parameters_name">
1420 <col class="parameters_description">
1421 <col width="200px" class="parameters_annotations">
1425 <td class="parameter_name"><p>stream</p></td>
1426 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1427 <td class="parameter_annotations"> </td>
1430 <td class="parameter_name"><p>trans</p></td>
1431 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a>. </p></td>
1432 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1437 <div class="refsect3">
1438 <a name="id-1.2.8.7.31.8"></a><h4>Returns</h4>
1439 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>trans</code></em>
1445 <div class="refsect2">
1446 <a name="gst-rtsp-stream-remove-transport"></a><h3>gst_rtsp_stream_remove_transport ()</h3>
1447 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1448 gst_rtsp_stream_remove_transport (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1449 <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>);</pre>
1450 <p>Remove the transport in <em class="parameter"><code>trans</code></em>
1451 from <em class="parameter"><code>stream</code></em>
1452 . The media of <em class="parameter"><code>stream</code></em>
1454 not be sent to the values configured in <em class="parameter"><code>trans</code></em>
1456 <p><em class="parameter"><code>stream</code></em>
1457 must be joined to a bin.</p>
1458 <p><em class="parameter"><code>trans</code></em>
1459 must contain a valid <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>.</p>
1460 <div class="refsect3">
1461 <a name="id-1.2.8.7.32.7"></a><h4>Parameters</h4>
1462 <div class="informaltable"><table width="100%" border="0">
1464 <col width="150px" class="parameters_name">
1465 <col class="parameters_description">
1466 <col width="200px" class="parameters_annotations">
1470 <td class="parameter_name"><p>stream</p></td>
1471 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1472 <td class="parameter_annotations"> </td>
1475 <td class="parameter_name"><p>trans</p></td>
1476 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a>. </p></td>
1477 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1482 <div class="refsect3">
1483 <a name="id-1.2.8.7.32.8"></a><h4>Returns</h4>
1484 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>trans</code></em>
1490 <div class="refsect2">
1491 <a name="gst-rtsp-stream-get-rtp-socket"></a><h3>gst_rtsp_stream_get_rtp_socket ()</h3>
1492 <pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
1493 gst_rtsp_stream_get_rtp_socket (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1494 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1495 <p>Get the RTP socket from <em class="parameter"><code>stream</code></em>
1496 for a <em class="parameter"><code>family</code></em>
1498 <p><em class="parameter"><code>stream</code></em>
1499 must be joined to a bin.</p>
1500 <div class="refsect3">
1501 <a name="id-1.2.8.7.33.6"></a><h4>Parameters</h4>
1502 <div class="informaltable"><table width="100%" border="0">
1504 <col width="150px" class="parameters_name">
1505 <col class="parameters_description">
1506 <col width="200px" class="parameters_annotations">
1510 <td class="parameter_name"><p>stream</p></td>
1511 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1512 <td class="parameter_annotations"> </td>
1515 <td class="parameter_name"><p>family</p></td>
1516 <td class="parameter_description"><p>the socket family</p></td>
1517 <td class="parameter_annotations"> </td>
1522 <div class="refsect3">
1523 <a name="id-1.2.8.7.33.7"></a><h4>Returns</h4>
1524 <p> the RTP socket or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
1525 socket could be allocated for <em class="parameter"><code>family</code></em>
1526 . Unref after usage. </p>
1527 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1531 <div class="refsect2">
1532 <a name="gst-rtsp-stream-get-rtcp-socket"></a><h3>gst_rtsp_stream_get_rtcp_socket ()</h3>
1533 <pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
1534 gst_rtsp_stream_get_rtcp_socket (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1535 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1536 <p>Get the RTCP socket from <em class="parameter"><code>stream</code></em>
1537 for a <em class="parameter"><code>family</code></em>
1539 <p><em class="parameter"><code>stream</code></em>
1540 must be joined to a bin.</p>
1541 <div class="refsect3">
1542 <a name="id-1.2.8.7.34.6"></a><h4>Parameters</h4>
1543 <div class="informaltable"><table width="100%" border="0">
1545 <col width="150px" class="parameters_name">
1546 <col class="parameters_description">
1547 <col width="200px" class="parameters_annotations">
1551 <td class="parameter_name"><p>stream</p></td>
1552 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1553 <td class="parameter_annotations"> </td>
1556 <td class="parameter_name"><p>family</p></td>
1557 <td class="parameter_description"><p>the socket family</p></td>
1558 <td class="parameter_annotations"> </td>
1563 <div class="refsect3">
1564 <a name="id-1.2.8.7.34.7"></a><h4>Returns</h4>
1565 <p> the RTCP socket or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
1566 socket could be allocated for <em class="parameter"><code>family</code></em>
1567 . Unref after usage. </p>
1568 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1572 <div class="refsect2">
1573 <a name="gst-rtsp-stream-set-blocked"></a><h3>gst_rtsp_stream_set_blocked ()</h3>
1574 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1575 gst_rtsp_stream_set_blocked (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1576 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocked</code></em>);</pre>
1577 <p>Blocks or unblocks the dataflow on <em class="parameter"><code>stream</code></em>
1579 <div class="refsect3">
1580 <a name="id-1.2.8.7.35.5"></a><h4>Parameters</h4>
1581 <div class="informaltable"><table width="100%" border="0">
1583 <col width="150px" class="parameters_name">
1584 <col class="parameters_description">
1585 <col width="200px" class="parameters_annotations">
1589 <td class="parameter_name"><p>stream</p></td>
1590 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1591 <td class="parameter_annotations"> </td>
1594 <td class="parameter_name"><p>blocked</p></td>
1595 <td class="parameter_description"><p>boolean indicating we should block or unblock</p></td>
1596 <td class="parameter_annotations"> </td>
1601 <div class="refsect3">
1602 <a name="id-1.2.8.7.35.6"></a><h4>Returns</h4>
1603 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
1608 <div class="refsect2">
1609 <a name="gst-rtsp-stream-is-blocking"></a><h3>gst_rtsp_stream_is_blocking ()</h3>
1610 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1611 gst_rtsp_stream_is_blocking (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1612 <p>Check if <em class="parameter"><code>stream</code></em>
1613 is blocking on a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>.</p>
1614 <div class="refsect3">
1615 <a name="id-1.2.8.7.36.5"></a><h4>Parameters</h4>
1616 <div class="informaltable"><table width="100%" border="0">
1618 <col width="150px" class="parameters_name">
1619 <col class="parameters_description">
1620 <col width="200px" class="parameters_annotations">
1623 <td class="parameter_name"><p>stream</p></td>
1624 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1625 <td class="parameter_annotations"> </td>
1629 <div class="refsect3">
1630 <a name="id-1.2.8.7.36.6"></a><h4>Returns</h4>
1631 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
1637 <div class="refsect2">
1638 <a name="gst-rtsp-stream-update-crypto"></a><h3>gst_rtsp_stream_update_crypto ()</h3>
1639 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1640 gst_rtsp_stream_update_crypto (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1641 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ssrc</code></em>,
1642 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> *crypto</code></em>);</pre>
1643 <p>Update the new crypto information for <em class="parameter"><code>ssrc</code></em>
1644 in <em class="parameter"><code>stream</code></em>
1646 for <em class="parameter"><code>ssrc</code></em>
1647 did not exist, it will be added. If information
1648 for <em class="parameter"><code>ssrc</code></em>
1649 existed, it will be replaced. If <em class="parameter"><code>crypto</code></em>
1650 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it will
1651 be removed from <em class="parameter"><code>stream</code></em>
1653 <div class="refsect3">
1654 <a name="id-1.2.8.7.37.5"></a><h4>Parameters</h4>
1655 <div class="informaltable"><table width="100%" border="0">
1657 <col width="150px" class="parameters_name">
1658 <col class="parameters_description">
1659 <col width="200px" class="parameters_annotations">
1663 <td class="parameter_name"><p>stream</p></td>
1664 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1665 <td class="parameter_annotations"> </td>
1668 <td class="parameter_name"><p>ssrc</p></td>
1669 <td class="parameter_description"><p>the SSRC</p></td>
1670 <td class="parameter_annotations"> </td>
1673 <td class="parameter_name"><p>crypto</p></td>
1674 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> with crypto info. </p></td>
1675 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1680 <div class="refsect3">
1681 <a name="id-1.2.8.7.37.6"></a><h4>Returns</h4>
1682 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>crypto</code></em>
1683 could be updated</p>
1688 <div class="refsect2">
1689 <a name="GstRTSPStreamTransportFilterFunc"></a><h3>GstRTSPStreamTransportFilterFunc ()</h3>
1690 <pre class="programlisting"><a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="returnvalue">GstRTSPFilterResult</span></a>
1691 <span class="c_punctuation">(</span>*GstRTSPStreamTransportFilterFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1692 <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>,
1693 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1694 <p>This function will be called by the <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a>. An
1695 implementation should return a value of <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="type">GstRTSPFilterResult</span></a>.</p>
1696 <p>When this function returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REMOVE:CAPS"><span class="type">GST_RTSP_FILTER_REMOVE</span></a>, <em class="parameter"><code>trans</code></em>
1698 from <em class="parameter"><code>stream</code></em>
1700 <p>A return value of <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-KEEP:CAPS"><span class="type">GST_RTSP_FILTER_KEEP</span></a> will leave <em class="parameter"><code>trans</code></em>
1702 <em class="parameter"><code>stream</code></em>
1704 <p>A value of <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a> will add <em class="parameter"><code>trans</code></em>
1705 to the result <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
1706 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a>.</p>
1707 <div class="refsect3">
1708 <a name="id-1.2.8.7.38.8"></a><h4>Parameters</h4>
1709 <div class="informaltable"><table width="100%" border="0">
1711 <col width="150px" class="parameters_name">
1712 <col class="parameters_description">
1713 <col width="200px" class="parameters_annotations">
1717 <td class="parameter_name"><p>stream</p></td>
1718 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> object</p></td>
1719 <td class="parameter_annotations"> </td>
1722 <td class="parameter_name"><p>trans</p></td>
1723 <td class="parameter_description"><p>a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> in <em class="parameter"><code>stream</code></em>
1725 <td class="parameter_annotations"> </td>
1728 <td class="parameter_name"><p>user_data</p></td>
1729 <td class="parameter_description"><p>user data that has been given to <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a></p></td>
1730 <td class="parameter_annotations"> </td>
1735 <div class="refsect3">
1736 <a name="id-1.2.8.7.38.9"></a><h4>Returns</h4>
1737 <p> a <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="type">GstRTSPFilterResult</span></a>.</p>
1742 <div class="refsect2">
1743 <a name="gst-rtsp-stream-transport-filter"></a><h3>gst_rtsp_stream_transport_filter ()</h3>
1744 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
1745 gst_rtsp_stream_transport_filter (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1746 <em class="parameter"><code><a class="link" href="GstRTSPStream.html#GstRTSPStreamTransportFilterFunc" title="GstRTSPStreamTransportFilterFunc ()"><span class="type">GstRTSPStreamTransportFilterFunc</span></a> func</code></em>,
1747 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1748 <p>Call <em class="parameter"><code>func</code></em>
1749 for each transport managed by <em class="parameter"><code>stream</code></em>
1750 . The result value of <em class="parameter"><code>func</code></em>
1752 determines what happens to the transport. <em class="parameter"><code>func</code></em>
1753 will be called with <em class="parameter"><code>stream</code></em>
1755 locked so no further actions on <em class="parameter"><code>stream</code></em>
1756 can be performed from <em class="parameter"><code>func</code></em>
1758 <p>If <em class="parameter"><code>func</code></em>
1759 returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REMOVE:CAPS"><span class="type">GST_RTSP_FILTER_REMOVE</span></a>, the transport will be removed from
1760 <em class="parameter"><code>stream</code></em>
1762 <p>If <em class="parameter"><code>func</code></em>
1763 returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-KEEP:CAPS"><span class="type">GST_RTSP_FILTER_KEEP</span></a>, the transport will remain in <em class="parameter"><code>stream</code></em>
1765 <p>If <em class="parameter"><code>func</code></em>
1766 returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a>, the transport will remain in <em class="parameter"><code>stream</code></em>
1768 will also be added with an additional ref to the result <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of this
1770 <p>When <em class="parameter"><code>func</code></em>
1771 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a> will be assumed for each transport.</p>
1772 <div class="refsect3">
1773 <a name="id-1.2.8.7.39.9"></a><h4>Parameters</h4>
1774 <div class="informaltable"><table width="100%" border="0">
1776 <col width="150px" class="parameters_name">
1777 <col class="parameters_description">
1778 <col width="200px" class="parameters_annotations">
1782 <td class="parameter_name"><p>stream</p></td>
1783 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1784 <td class="parameter_annotations"> </td>
1787 <td class="parameter_name"><p>func</p></td>
1788 <td class="parameter_description"><p> a callback. </p></td>
1789 <td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1792 <td class="parameter_name"><p>user_data</p></td>
1793 <td class="parameter_description"><p> user data passed to <em class="parameter"><code>func</code></em>
1795 <td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
1800 <div class="refsect3">
1801 <a name="id-1.2.8.7.39.10"></a><h4>Returns</h4>
1802 <p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> with all
1803 transports for which <em class="parameter"><code>func</code></em>
1804 returned <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a>. After usage, each
1805 element in the <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> should be unreffed before the list is freed. </p>
1806 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GstRTSPStreamTransport][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1810 <div class="refsect1">
1811 <a name="GstRTSPStream.other_details"></a><h2>Types and Values</h2>
1812 <div class="refsect2">
1813 <a name="GstRTSPStream-struct"></a><h3>struct GstRTSPStream</h3>
1814 <pre class="programlisting">struct GstRTSPStream;</pre>
1815 <p>The definition of a media stream.</p>
1818 <div class="refsect2">
1819 <a name="GstRTSPStreamClass"></a><h3>GstRTSPStreamClass</h3>
1820 <pre class="programlisting">typedef struct _GstRTSPStreamClass GstRTSPStreamClass;</pre>
1823 <div class="refsect1">
1824 <a name="GstRTSPStream.see-also"></a><h2>See Also</h2>
1825 <p><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p>
1828 <div class="footer">
1830 Generated by GTK-Doc V1.21</div>