mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
d3dvideosink: Fix some more compiler warnings
This commit is contained in:
parent
7e8c531621
commit
de8f436b21
1 changed files with 9 additions and 6 deletions
|
@ -25,6 +25,8 @@
|
||||||
#include "d3dvideosink.h"
|
#include "d3dvideosink.h"
|
||||||
#include "d3dhelpers.h"
|
#include "d3dhelpers.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
/** FWD DECLS **/
|
/** FWD DECLS **/
|
||||||
|
|
||||||
static gboolean d3d_hidden_window_thread (GstD3DVideoSinkClass * class);
|
static gboolean d3d_hidden_window_thread (GstD3DVideoSinkClass * class);
|
||||||
|
@ -850,7 +852,8 @@ d3d_set_window_handle (GstD3DVideoSink * sink, guintptr window_id,
|
||||||
LOCK_SINK (sink);
|
LOCK_SINK (sink);
|
||||||
|
|
||||||
if (sink->d3d.window_handle == (HWND) window_id) {
|
if (sink->d3d.window_handle == (HWND) window_id) {
|
||||||
GST_WARNING_OBJECT (sink, "Window HWND already set to: %u", window_id);
|
GST_WARNING_OBJECT (sink, "Window HWND already set to: %" G_GUINTPTR_FORMAT,
|
||||||
|
window_id);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1922,8 +1925,8 @@ d3d_create_internal_window (GstD3DVideoSink * sink)
|
||||||
dat.hWnd = 0;
|
dat.hWnd = 0;
|
||||||
|
|
||||||
thread =
|
thread =
|
||||||
g_thread_create ((GThreadFunc) d3d_internal_window_thread, &dat, TRUE,
|
g_thread_new ("d3dvideosink-window-thread",
|
||||||
NULL);
|
(GThreadFunc) d3d_internal_window_thread, &dat);
|
||||||
if (!thread) {
|
if (!thread) {
|
||||||
GST_ERROR ("Failed to created internal window thread");
|
GST_ERROR ("Failed to created internal window thread");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1934,7 +1937,7 @@ d3d_create_internal_window (GstD3DVideoSink * sink)
|
||||||
g_usleep (timeout_interval);
|
g_usleep (timeout_interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (sink, "Created window: %p (intervals: %ul)", dat.hWnd, i);
|
GST_DEBUG_OBJECT (sink, "Created window: %p (intervals: %lu)", dat.hWnd, i);
|
||||||
|
|
||||||
return dat.hWnd;
|
return dat.hWnd;
|
||||||
}
|
}
|
||||||
|
@ -1991,8 +1994,8 @@ d3d_class_init (GstD3DVideoSink * sink)
|
||||||
class->d3d.error_exit = FALSE;
|
class->d3d.error_exit = FALSE;
|
||||||
UNLOCK_CLASS (sink, class);
|
UNLOCK_CLASS (sink, class);
|
||||||
class->d3d.thread =
|
class->d3d.thread =
|
||||||
g_thread_create ((GThreadFunc) d3d_hidden_window_thread, class, TRUE,
|
g_thread_new ("d3dvideosink-window-thread",
|
||||||
NULL);
|
(GThreadFunc) d3d_hidden_window_thread, class);
|
||||||
LOCK_CLASS (sink, class);
|
LOCK_CLASS (sink, class);
|
||||||
|
|
||||||
if (!class->d3d.thread) {
|
if (!class->d3d.thread) {
|
||||||
|
|
Loading…
Reference in a new issue