mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
rtsp-media: Some minor cleanup
This commit is contained in:
parent
06bfc0697b
commit
8ae3566591
1 changed files with 4 additions and 4 deletions
|
@ -1263,18 +1263,18 @@ gst_rtsp_media_get_address_pool (GstRTSPMedia * media)
|
||||||
static GList *
|
static GList *
|
||||||
_find_payload_types (GstRTSPMedia * media)
|
_find_payload_types (GstRTSPMedia * media)
|
||||||
{
|
{
|
||||||
GList *ret = NULL;
|
|
||||||
gint i, n;
|
gint i, n;
|
||||||
|
GQueue queue = G_QUEUE_INIT;
|
||||||
|
|
||||||
n = media->priv->streams->len;
|
n = media->priv->streams->len;
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
GstRTSPStream *stream = g_ptr_array_index (media->priv->streams, i);
|
GstRTSPStream *stream = g_ptr_array_index (media->priv->streams, i);
|
||||||
guint pt = gst_rtsp_stream_get_pt (stream);
|
guint pt = gst_rtsp_stream_get_pt (stream);
|
||||||
|
|
||||||
ret = g_list_append (ret, GUINT_TO_POINTER (pt));
|
g_queue_push_tail (&queue, GUINT_TO_POINTER (pt));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return queue.head;
|
||||||
}
|
}
|
||||||
|
|
||||||
static guint
|
static guint
|
||||||
|
@ -1411,7 +1411,7 @@ gst_rtsp_media_create_stream (GstRTSPMedia * media, GstElement * payloader,
|
||||||
guint rtx_pt = _next_available_pt (priv->payloads);
|
guint rtx_pt = _next_available_pt (priv->payloads);
|
||||||
|
|
||||||
if (rtx_pt == 0) {
|
if (rtx_pt == 0) {
|
||||||
/* FIXME: ran out of space of dynamic payload types */
|
GST_WARNING ("Ran out of space of dynamic payload types");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue