mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
d3dvideosink: Fix device initialization check
This commit is contained in:
parent
3b549c4dbd
commit
d3b1488fa7
1 changed files with 5 additions and 1 deletions
|
@ -495,6 +495,9 @@ gst_d3dvideosink_create_shared_hidden_window (GstD3DVideoSink * sink)
|
|||
|
||||
CloseHandle (shared.hidden_window_created_signal);
|
||||
|
||||
if (!shared.d3ddev)
|
||||
goto failed;
|
||||
|
||||
GST_DEBUG ("Successfully created Direct3D hidden window, handle: %p",
|
||||
shared.hidden_window_handle);
|
||||
|
||||
|
@ -1356,7 +1359,8 @@ gst_d3dvideosink_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||
gst_d3dvideosink_initialize_direct3d (sink);
|
||||
if (!gst_d3dvideosink_initialize_direct3d (sink))
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue