Code Review
/
apps
/
camera-gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1962f81
)
main: Destroy the pipeline before window/display
11/29111/1
author
Marius Vlad
<marius.vlad@collabora.com>
Wed, 9 Aug 2023 09:58:36 +0000
(12:58 +0300)
committer
Marius Vlad
<marius.vlad@collabora.com>
Wed, 9 Aug 2023 11:04:48 +0000
(14:04 +0300)
Bug-AGL: SPEC-4878
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ided754172557d9c9f92fe7c0e27b08c11f9a81ac
app/main.cpp
patch
|
blob
|
history
diff --git
a/app/main.cpp
b/app/main.cpp
index
d4c0671
..
bfcef46
100644
(file)
--- 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;
}