projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a838d6
)
media: set protocols on streams
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 14:34:56 +0000
(16:34 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 14:34:56 +0000
(16:34 +0200)
gst/rtsp-server/rtsp-media.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-media.c
b/gst/rtsp-server/rtsp-media.c
index de13c14fa2632a04ed71cd26b615b44868a8ecc8..93f156518f3694f43d224c4a39baf976b3a31b93 100644
(file)
--- a/
gst/rtsp-server/rtsp-media.c
+++ b/
gst/rtsp-server/rtsp-media.c
@@
-672,6
+672,12
@@
gst_rtsp_media_is_reusable (GstRTSPMedia * media)
return res;
}
+static void
+do_set_protocols (GstRTSPStream * stream, GstRTSPLowerTrans * protocols)
+{
+ gst_rtsp_stream_set_protocols (stream, *protocols);
+}
+
/**
* gst_rtsp_media_set_protocols:
* @media: a #GstRTSPMedia
@@
-690,6
+696,7
@@
gst_rtsp_media_set_protocols (GstRTSPMedia * media, GstRTSPLowerTrans protocols)
g_mutex_lock (&priv->lock);
priv->protocols = protocols;
+ g_ptr_array_foreach (priv->streams, (GFunc) do_set_protocols, &protocols);
g_mutex_unlock (&priv->lock);
}