diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2023-08-09 12:58:36 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2023-08-09 14:04:48 +0300 |
commit | e48e0b3102b63a65944463c807b4c2d851bda3f4 (patch) | |
tree | 204025c7623f6548fea88c29d1614df5e8f41c9a /app/main.cpp | |
parent | 1962f81149e1a1230b7888f1c7da0ac4c0b33c08 (diff) |
main: Destroy the pipeline before window/display
Bug-AGL: SPEC-4878
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ided754172557d9c9f92fe7c0e27b08c11f9a81ac
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/main.cpp b/app/main.cpp index d4c0671..bfcef46 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -752,11 +752,12 @@ int main(int argc, char *argv[]) while (running && ret != -1) ret = wl_display_dispatch(display->wl_display); + gst_element_set_state(pipeline, GST_STATE_NULL); + gst_object_unref(pipeline); + destroy_window(window); destroy_display(display); free(gargv); - gst_element_set_state(pipeline, GST_STATE_NULL); - gst_object_unref(pipeline); return ret; } |