mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
session: indent
This commit is contained in:
parent
d749f1e7d5
commit
4eccdd9dd7
1 changed files with 52 additions and 47 deletions
|
@ -60,8 +60,9 @@ gst_rtsp_session_class_init (GstRTSPSessionClass * klass)
|
|||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_TIMEOUT,
|
||||
g_param_spec_uint ("timeout", "timeout", "the timeout of the session (0 = never)",
|
||||
0, G_MAXUINT, DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
g_param_spec_uint ("timeout", "timeout",
|
||||
"the timeout of the session (0 = never)", 0, G_MAXUINT,
|
||||
DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -88,7 +89,8 @@ gst_rtsp_session_free_stream (GstRTSPSessionStream *stream)
|
|||
}
|
||||
|
||||
static void
|
||||
gst_rtsp_session_free_media (GstRTSPSessionMedia *media, GstRTSPSession *session)
|
||||
gst_rtsp_session_free_media (GstRTSPSessionMedia * media,
|
||||
GstRTSPSession * session)
|
||||
{
|
||||
guint size, i;
|
||||
|
||||
|
@ -206,7 +208,9 @@ gst_rtsp_session_manage_media (GstRTSPSession *sess, const GstRTSPUrl *uri,
|
|||
|
||||
/* prealloc the streams now, filled with NULL */
|
||||
n_streams = gst_rtsp_media_n_streams (media);
|
||||
result->streams = g_array_sized_new (FALSE, TRUE, sizeof (GstRTSPSessionStream *), n_streams);
|
||||
result->streams =
|
||||
g_array_sized_new (FALSE, TRUE, sizeof (GstRTSPSessionStream *),
|
||||
n_streams);
|
||||
g_array_set_size (result->streams, n_streams);
|
||||
|
||||
sess->medias = g_list_prepend (sess->medias, result);
|
||||
|
@ -327,7 +331,8 @@ no_media:
|
|||
}
|
||||
|
||||
gboolean
|
||||
gst_rtsp_session_media_alloc_channels (GstRTSPSessionMedia *media, GstRTSPRange *range)
|
||||
gst_rtsp_session_media_alloc_channels (GstRTSPSessionMedia * media,
|
||||
GstRTSPRange * range)
|
||||
{
|
||||
range->min = media->counter++;
|
||||
range->max = media->counter++;
|
||||
|
@ -508,7 +513,8 @@ gst_rtsp_session_stream_set_transport (GstRTSPSessionStream *stream,
|
|||
}
|
||||
|
||||
if (stream->media_stream->session)
|
||||
g_object_get (stream->media_stream->session, "internal-ssrc", &st->ssrc, NULL);
|
||||
g_object_get (stream->media_stream->session, "internal-ssrc", &st->ssrc,
|
||||
NULL);
|
||||
|
||||
/* keep track of the transports in the stream. */
|
||||
if (stream->trans.transport)
|
||||
|
@ -583,4 +589,3 @@ gst_rtsp_session_media_set_state (GstRTSPSessionMedia *media, GstState state)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue