mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
media: set protocols on streams
This commit is contained in:
parent
1a838d6179
commit
f094256add
1 changed files with 7 additions and 0 deletions
|
@ -672,6 +672,12 @@ gst_rtsp_media_is_reusable (GstRTSPMedia * media)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
do_set_protocols (GstRTSPStream * stream, GstRTSPLowerTrans * protocols)
|
||||||
|
{
|
||||||
|
gst_rtsp_stream_set_protocols (stream, *protocols);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_rtsp_media_set_protocols:
|
* gst_rtsp_media_set_protocols:
|
||||||
* @media: a #GstRTSPMedia
|
* @media: a #GstRTSPMedia
|
||||||
|
@ -690,6 +696,7 @@ gst_rtsp_media_set_protocols (GstRTSPMedia * media, GstRTSPLowerTrans protocols)
|
||||||
|
|
||||||
g_mutex_lock (&priv->lock);
|
g_mutex_lock (&priv->lock);
|
||||||
priv->protocols = protocols;
|
priv->protocols = protocols;
|
||||||
|
g_ptr_array_foreach (priv->streams, (GFunc) do_set_protocols, &protocols);
|
||||||
g_mutex_unlock (&priv->lock);
|
g_mutex_unlock (&priv->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue