summaryrefslogtreecommitdiffstats
path: root/src/wth-receiver-gst-shm.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-10-20 14:30:32 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-12-01 13:07:57 +0200
commit694ec412b5ae13b84229e5c65f2e3dce2babee34 (patch)
treee25a0f1a94e025ad729b37d5f35ec4494aff8b0d /src/wth-receiver-gst-shm.c
parente6ad86a86fe3ed73cac6478e07eb1220399ace1f (diff)
build: Added AGL specific build directory for widget building
Adds also a cmake as we don't have meson alternative as of yet. Bug-AGL: SPEC-3605 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I43cc98294d7bb5d887370c8ce2db854cbd9055d7
Diffstat (limited to 'src/wth-receiver-gst-shm.c')
-rw-r--r--src/wth-receiver-gst-shm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wth-receiver-gst-shm.c b/src/wth-receiver-gst-shm.c
index 54950ef..2228d4f 100644
--- a/src/wth-receiver-gst-shm.c
+++ b/src/wth-receiver-gst-shm.c
@@ -836,11 +836,12 @@ wth_receiver_weston_main(struct window *window, const char *app_id, int port)
while (running && ret != -1)
ret = wl_display_dispatch(gstctx.display->display);
+
gst_element_set_state(gstctx.pipeline, GST_STATE_NULL);
+ gst_object_unref(gstctx.pipeline);
destroy_window(window);
destroy_display(gstctx.display);
- gst_object_unref(gstctx.pipeline);
free(gargv);
return 0;