projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84403db
)
d3dvideosink: only warn about HWND already set if new HWND is not NULL
author
Aaron Boxer
<aaron.boxer@collabora.com>
Sat, 7 Dec 2019 15:34:55 +0000
(09:34 -0600)
committer
Aaron Boxer
<aaron.boxer@collabora.com>
Wed, 18 Dec 2019 18:15:06 +0000
(13:15 -0500)
sys/d3dvideosink/d3dhelpers.c
patch
|
blob
|
history
diff --git
a/sys/d3dvideosink/d3dhelpers.c
b/sys/d3dvideosink/d3dhelpers.c
index
1043571
..
d0c4043
100644
(file)
--- a/
sys/d3dvideosink/d3dhelpers.c
+++ b/
sys/d3dvideosink/d3dhelpers.c
@@
-1143,8
+1143,9
@@
d3d_set_window_handle (GstD3DVideoSink * sink, guintptr window_id,
LOCK_SINK (sink);
if (sink->d3d.window_handle == (HWND) window_id) {
- GST_WARNING_OBJECT (sink, "Window HWND already set to: %" G_GUINTPTR_FORMAT,
- window_id);
+ if (window_id)
+ GST_WARNING_OBJECT (sink,
+ "Window HWND already set to: %" G_GUINTPTR_FORMAT, window_id);
goto end;
}