#include "d3dvideosink.h"
#include "d3dhelpers.h"
+#include <stdio.h>
+
/** FWD DECLS **/
static gboolean d3d_hidden_window_thread (GstD3DVideoSinkClass * class);
LOCK_SINK (sink);
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;
}
dat.hWnd = 0;
thread =
- g_thread_create ((GThreadFunc) d3d_internal_window_thread, &dat, TRUE,
- NULL);
+ g_thread_new ("d3dvideosink-window-thread",
+ (GThreadFunc) d3d_internal_window_thread, &dat);
if (!thread) {
GST_ERROR ("Failed to created internal window thread");
return 0;
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;
}
class->d3d.error_exit = FALSE;
UNLOCK_CLASS (sink, class);
class->d3d.thread =
- g_thread_create ((GThreadFunc) d3d_hidden_window_thread, class, TRUE,
- NULL);
+ g_thread_new ("d3dvideosink-window-thread",
+ (GThreadFunc) d3d_hidden_window_thread, class);
LOCK_CLASS (sink, class);
if (!class->d3d.thread) {