diff options
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) |