diff options
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; } |