mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
d3dvideosink: only warn about HWND already set if new HWND is not NULL
This commit is contained in:
parent
84403dbae3
commit
adfbce336a
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue