diff options
Diffstat (limited to 'src/wth-receiver-gst-shm.c')
-rw-r--r-- | src/wth-receiver-gst-shm.c | 3 |
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; |