summaryrefslogtreecommitdiff
path: root/sys/d3dvideosink/d3dhelpers.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-22 11:58:21 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-22 11:58:21 +0100
commitde8f436b213fd5fe6d859f9ff79dfebda9be6d02 (patch)
tree5cc6aaceca744cf75fe59f70d2002f2d3389595b /sys/d3dvideosink/d3dhelpers.c
parent7e8c531621958f53fc2da5671cfc0b4e7b239c52 (diff)
downloadgstreamer-plugins-bad-de8f436b213fd5fe6d859f9ff79dfebda9be6d02.tar.gz
d3dvideosink: Fix some more compiler warnings
Diffstat (limited to 'sys/d3dvideosink/d3dhelpers.c')
-rw-r--r--sys/d3dvideosink/d3dhelpers.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/d3dvideosink/d3dhelpers.c b/sys/d3dvideosink/d3dhelpers.c
index 3cecc283b..39bed7ade 100644
--- a/sys/d3dvideosink/d3dhelpers.c
+++ b/sys/d3dvideosink/d3dhelpers.c
@@ -25,6 +25,8 @@
#include "d3dvideosink.h"
#include "d3dhelpers.h"
+#include <stdio.h>
+
/** FWD DECLS **/
static gboolean d3d_hidden_window_thread (GstD3DVideoSinkClass * class);
@@ -850,7 +852,8 @@ 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: %u", window_id);
+ GST_WARNING_OBJECT (sink, "Window HWND already set to: %" G_GUINTPTR_FORMAT,
+ window_id);
goto end;
}
@@ -1922,8 +1925,8 @@ d3d_create_internal_window (GstD3DVideoSink * sink)
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;
@@ -1934,7 +1937,7 @@ d3d_create_internal_window (GstD3DVideoSink * sink)
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;
}
@@ -1991,8 +1994,8 @@ d3d_class_init (GstD3DVideoSink * sink)
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) {