mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
session: small cleanups
This commit is contained in:
parent
30c31a65eb
commit
558c7fddd2
1 changed files with 5 additions and 3 deletions
|
@ -300,7 +300,6 @@ GstRTSPSessionStream *
|
|||
gst_rtsp_session_media_get_stream (GstRTSPSessionMedia * media, guint idx)
|
||||
{
|
||||
GstRTSPSessionStream *result;
|
||||
GstRTSPMediaStream *media_stream;
|
||||
|
||||
g_return_val_if_fail (media != NULL, NULL);
|
||||
g_return_val_if_fail (media->media != NULL, NULL);
|
||||
|
@ -310,6 +309,8 @@ gst_rtsp_session_media_get_stream (GstRTSPSessionMedia * media, guint idx)
|
|||
|
||||
result = g_array_index (media->streams, GstRTSPSessionStream *, idx);
|
||||
if (result == NULL) {
|
||||
GstRTSPMediaStream *media_stream;
|
||||
|
||||
media_stream = gst_rtsp_media_get_stream (media->media, idx);
|
||||
if (media_stream == NULL)
|
||||
goto no_media;
|
||||
|
@ -477,9 +478,10 @@ gst_rtsp_session_is_expired (GstRTSPSession * session, GTimeVal * now)
|
|||
* @ct: a client #GstRTSPTransport
|
||||
*
|
||||
* Set @ct as the client transport and create and return a matching server
|
||||
* transport.
|
||||
* transport. This function takes ownership of the passed @ct.
|
||||
*
|
||||
* Returns: a server transport or NULL if something went wrong.
|
||||
* Returns: a server transport or NULL if something went wrong. Use
|
||||
* gst_rtsp_transport_free () after usage.
|
||||
*/
|
||||
GstRTSPTransport *
|
||||
gst_rtsp_session_stream_set_transport (GstRTSPSessionStream * stream,
|
||||
|
|
Loading…
Reference in a new issue