diff options
author | fukubayashi.akio <fukubayashi.akio@genetec.co.jp> | 2019-05-31 15:56:15 +0900 |
---|---|---|
committer | fukubayashi.akio <fukubayashi.akio@genetec.co.jp> | 2019-05-31 15:56:15 +0900 |
commit | d91dd6cd072a96c544ecf82fa8dd86765b215aec (patch) | |
tree | 58329cc3d3b6871ac5716d7bb4a1c12a8f28d0e2 /waltham-transmitter/waltham-renderer | |
parent | cd33a17ea5ac787786e5289ec914a96adeaf6346 (diff) |
Add multi transfer
Signed-off-by: fukubayashi.akio <fukubayashi.akio@genetec.co.jp>
Diffstat (limited to 'waltham-transmitter/waltham-renderer')
-rw-r--r-- | waltham-transmitter/waltham-renderer/waltham-renderer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/waltham-transmitter/waltham-renderer/waltham-renderer.c b/waltham-transmitter/waltham-renderer/waltham-renderer.c index 76e045c..a475735 100644 --- a/waltham-transmitter/waltham-renderer/waltham-renderer.c +++ b/waltham-transmitter/waltham-renderer/waltham-renderer.c @@ -169,6 +169,13 @@ gst_pipe_init(struct weston_transmitter_output *output, struct gst_settings *set NULL); gst_caps_unref(caps); + GstElement *sink = gst_bin_get_by_name(GST_BIN(gstctx->pipeline), "sink"); + gchar *g_host = (gchar *)output->remote->addr; + gint g_port = (gint)atoi(output->remote->port); + g_object_set(G_OBJECT(sink), "host", g_host, "port", g_port, NULL); + + weston_log("Parsing GST pipeline:%s",pipe); + gst_element_set_state((GstElement*)((void*)gstctx->pipeline), GST_STATE_PLAYING); output->renderer->ctx = gstctx; @@ -223,7 +230,7 @@ static void waltham_renderer_repaint_output(struct weston_transmitter_output *ou GstBuffer *gstbuffer; GstMemory *mem; GstAllocator *allocator; - int stride = output->renderer->buf_stride; + int stride = output->renderer->surface_width * 4; gsize offset = 0; if(!output->renderer->recorder_enabled) |