projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cd74f1
)
directdraw: Fix warnings
author
Benjamin Otte
<otte@redhat.com>
Tue, 23 Mar 2010 00:30:54 +0000
(
01:30
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 23 Mar 2010 00:30:54 +0000
(
01:30
+0100)
sys/directdraw/gstdirectdrawsink.c
patch
|
blob
|
history
diff --git
a/sys/directdraw/gstdirectdrawsink.c
b/sys/directdraw/gstdirectdrawsink.c
index
66ebf20
..
c00b36f
100644
(file)
--- a/
sys/directdraw/gstdirectdrawsink.c
+++ b/
sys/directdraw/gstdirectdrawsink.c
@@
-90,7
+90,7
@@
static gboolean gst_ddrawvideosink_get_format_from_caps (GstDirectDrawSink *
ddrawsink, GstCaps * caps, DDPIXELFORMAT * pPixelFormat);
static void gst_directdraw_sink_center_rect (GstDirectDrawSink * ddrawsink,
RECT src, RECT dst, RECT * result);
ddrawsink, GstCaps * caps, DDPIXELFORMAT * pPixelFormat);
static void gst_directdraw_sink_center_rect (GstDirectDrawSink * ddrawsink,
RECT src, RECT dst, RECT * result);
-char *DDErrorString (HRESULT hr);
+
static const
char *DDErrorString (HRESULT hr);
/* surfaces management functions */
static void gst_directdraw_sink_surface_destroy (GstDirectDrawSink * ddrawsink,
/* surfaces management functions */
static void gst_directdraw_sink_surface_destroy (GstDirectDrawSink * ddrawsink,
@@
-1139,7
+1139,7
@@
gst_directdraw_sink_center_rect (GstDirectDrawSink * ddrawsink, RECT src,
* @hr: HRESULT code
* Returns: Text representation of the error.
*/
* @hr: HRESULT code
* Returns: Text representation of the error.
*/
-char *
+
static const
char *
DDErrorString (HRESULT hr)
{
switch (hr) {
DDErrorString (HRESULT hr)
{
switch (hr) {
@@
-1453,7
+1453,7
@@
WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_MBUTTONUP:
case WM_MOUSEMOVE:{
gint x, y, button;
case WM_MBUTTONUP:
case WM_MOUSEMOVE:{
gint x, y, button;
- gchar *action;
+
const
gchar *action;
switch (message) {
case WM_MOUSEMOVE:
switch (message) {
case WM_MOUSEMOVE: