summaryrefslogtreecommitdiff
path: root/transmitters/shm/fs-shm-transmitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'transmitters/shm/fs-shm-transmitter.c')
-rw-r--r--transmitters/shm/fs-shm-transmitter.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/transmitters/shm/fs-shm-transmitter.c b/transmitters/shm/fs-shm-transmitter.c
index 5bd049f6..e0b11062 100644
--- a/transmitters/shm/fs-shm-transmitter.c
+++ b/transmitters/shm/fs-shm-transmitter.c
@@ -732,6 +732,7 @@ ShmSink *
fs_shm_transmitter_get_shm_sink (FsShmTransmitter *self,
guint component,
const gchar *path,
+ guint64 buffer_time,
ready ready_func,
connection connected_func,
gpointer cb_data,
@@ -767,6 +768,17 @@ fs_shm_transmitter_get_shm_sink (FsShmTransmitter *self,
"sync" , FALSE,
NULL);
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS (elem), "buffer-time"))
+ {
+ GST_DEBUG ("Configured shmsink with a %"G_GUINT64_FORMAT" buffer-time",
+ buffer_time);
+ g_object_set (elem, "buffer-time", buffer_time, NULL);
+ }
+ else
+ {
+ GST_DEBUG ("No buffer-time property in shmsink, not setting");
+ }
+
if (ready_func)
g_signal_connect (self->priv->gst_sink, "ready", G_CALLBACK (ready_cb),
shm);