File gst-plugins-bad-0.10.23-warnings.patch of Package mingw64-gst-0_10-plugins-bad

--- configure.ac	0.10.23
+++ configure.ac	fixed
@@ -1943,6 +1943,8 @@
 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc.*' $GST_ALL_LDFLAGS"
 AC_SUBST(GST_PLUGIN_LDFLAGS)
 
+AC_DEFINE(GLIB_DISABLE_DEPRECATION_WARNINGS, , [Disable GLib deprecation warnings])
+
 dnl *** output files ***
 
 dnl po/Makefile.in
--- gst/hls/m3u8.c	0.10.23
+++ gst/hls/m3u8.c	fixed
@@ -19,6 +19,8 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <stdlib.h>
 #include <errno.h>
 #include <glib.h>
--- gst/mpegdemux/mpegtspacketizer.h	0.10.23
+++ gst/mpegdemux/mpegtspacketizer.h	fixed
@@ -24,6 +24,8 @@
 #ifndef GST_MPEGTS_PACKETIZER_H
 #define GST_MPEGTS_PACKETIZER_H
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <gst/gst.h>
 #include <gst/base/gstadapter.h>
 #include <glib.h>
--- gst/mpegtsdemux/mpegtspacketizer.h	0.10.23
+++ gst/mpegtsdemux/mpegtspacketizer.h	fixed
@@ -24,6 +24,8 @@
 #ifndef GST_MPEGTS_PACKETIZER_H
 #define GST_MPEGTS_PACKETIZER_H
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <gst/gst.h>
 #include <gst/base/gstadapter.h>
 #include <glib.h>
--- gst/removesilence/vad_private.c	0.10.23
+++ gst/removesilence/vad_private.c	fixed
@@ -74,7 +74,7 @@
 void
 vad_reset (VADFilter * vad)
 {
-  memset (vad, 0, sizeof (vad));
+  memset (vad, 0, sizeof (*vad));
   vad->cqueue.base.s = vad->vad_buffer;
   vad->cqueue.tail.a = vad->cqueue.head.a = 0;
   vad->cqueue.size = VAD_BUFFER_SIZE;
--- gst/tta/gstttaparse.c	0.10.23
+++ gst/tta/gstttaparse.c	fixed
@@ -19,6 +19,8 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <gst/gst.h>
 
 #include <math.h>
--- gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c	0.10.23
+++ gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c	fixed
@@ -26,6 +26,9 @@
  * #GstCameraBinVideo.
  *
  */
+
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <gst/app/gstappsrc.h>
 #include <gst/app/gstappsink.h>
 #include "gstcamerabinpreview.h"
--- sys/d3dvideosink/directx/dx.c	0.10.23
+++ sys/d3dvideosink/directx/dx.c	fixed
@@ -17,6 +17,8 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <glib.h>
 #include <glib/gprintf.h>
 #include <gmodule.h>
--- sys/directdraw/gstdirectdrawsink.c	0.10.23
+++ sys/directdraw/gstdirectdrawsink.c	fixed
@@ -148,8 +148,6 @@
   }
 
   if (window_handle) {
-    HRESULT hres;
-
     /* If we had an internal window, close it first */
     if (ddrawsink->video_window && ddrawsink->our_video_window) {
       /* Trick to let the event thread know that it has to die silently */
@@ -162,7 +160,7 @@
     ddrawsink->our_video_window = FALSE;
     if (ddrawsink->setup) {
       /* update the clipper object with the new window */
-      hres = IDirectDrawClipper_SetHWnd (ddrawsink->clipper, 0,
+      IDirectDrawClipper_SetHWnd (ddrawsink->clipper, 0,
           ddrawsink->video_window);
     }
   }
@@ -2021,6 +2019,7 @@
 
 surface_pitch_bad:
 #else
+  (void)pitch;
   GST_BUFFER (surface)->malloc_data = g_malloc (size);
   GST_BUFFER_DATA (surface) = GST_BUFFER (surface)->malloc_data;
   GST_BUFFER_SIZE (surface) = size;
--- sys/directsound/gstdirectsoundsrc.c	0.10.23
+++ sys/directsound/gstdirectsoundsrc.c	fixed
@@ -166,15 +166,11 @@
 gst_directsound_src_class_init (GstDirectSoundSrcClass * klass)
 {
   GObjectClass *gobject_class;
-  GstElementClass *gstelement_class;
   GstBaseSrcClass *gstbasesrc_class;
-  GstBaseAudioSrcClass *gstbaseaudiosrc_class;
   GstAudioSrcClass *gstaudiosrc_class;
 
   gobject_class = (GObjectClass *) klass;
-  gstelement_class = (GstElementClass *) klass;
   gstbasesrc_class = (GstBaseSrcClass *) klass;
-  gstbaseaudiosrc_class = (GstBaseAudioSrcClass *) klass;
   gstaudiosrc_class = (GstAudioSrcClass *) klass;
 
   GST_DEBUG ("initializing directsoundsrc class\n");
@@ -203,13 +199,9 @@
 static GstCaps *
 gst_directsound_src_getcaps (GstBaseSrc * bsrc)
 {
-  GstDirectSoundSrc *dsoundsrc;
   GstCaps *caps = NULL;
   GST_DEBUG ("get caps\n");
 
-  dsoundsrc = GST_DIRECTSOUND_SRC (bsrc);
-
-
   caps = gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC_PAD
           (bsrc)));
   return caps;
@@ -338,14 +330,13 @@
 gst_directsound_src_close (GstAudioSrc * asrc)
 {
   GstDirectSoundSrc *dsoundsrc;
-  HRESULT hRes;                 /* Result for windows functions */
 
   GST_DEBUG ("initializing directsoundsrc\n");
 
   dsoundsrc = GST_DIRECTSOUND_SRC (asrc);
 
   /* Release capture handler  */
-  hRes = IDirectSoundCapture_Release (dsoundsrc->pDSC);
+  IDirectSoundCapture_Release (dsoundsrc->pDSC);
 
   /* Close library */
   FreeLibrary (dsoundsrc->DSoundDLL);
@@ -488,18 +479,16 @@
 {
   GstDirectSoundSrc *dsoundsrc;
 
-  HRESULT hRes;                 /* Result for windows functions */
-
   /* Resets */
   GST_DEBUG ("unpreparing directsoundsrc");
 
   dsoundsrc = GST_DIRECTSOUND_SRC (asrc);
 
   /* Stop capturing */
-  hRes = IDirectSoundCaptureBuffer_Stop (dsoundsrc->pDSBSecondary);
+  IDirectSoundCaptureBuffer_Stop (dsoundsrc->pDSBSecondary);
 
   /* Release buffer  */
-  hRes = IDirectSoundCaptureBuffer_Release (dsoundsrc->pDSBSecondary);
+  IDirectSoundCaptureBuffer_Release (dsoundsrc->pDSBSecondary);
 
   return TRUE;
 
--- sys/winks/gstksclock.h	0.10.23
+++ sys/winks/gstksclock.h	fixed
@@ -20,6 +20,8 @@
 #ifndef __GST_KS_CLOCK_H__
 #define __GST_KS_CLOCK_H__
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <gst/gst.h>
 #include <windows.h>
 
--- sys/winks/gstksvideodevice.c	0.10.23
+++ sys/winks/gstksvideodevice.c	fixed
@@ -313,7 +313,8 @@
   }
 
   for (i = 0; i < priv->num_requests; i++) {
-    ReadRequest req = { 0, };
+    ReadRequest req;
+    memset(&req, 0, sizeof(ReadRequest));
 
     req.buf = self->allocfunc (frame_size, KS_BUFFER_ALIGNMENT,
         self->allocfunc_data);
@@ -568,7 +569,7 @@
   alignment = 0;
 
   if (ks_object_get_property (pin_handle, KSPROPSETID_Connection,
-          KSPROPERTY_CONNECTION_ALLOCATORFRAMING_EX, &framing_ex, NULL, NULL)) {
+          KSPROPERTY_CONNECTION_ALLOCATORFRAMING_EX, (void**)&framing_ex, NULL, NULL)) {
     if (framing_ex->CountItems >= 1) {
       *num_outstanding = framing_ex->FramingItem[0].Frames;
       alignment = framing_ex->FramingItem[0].FileAlignment;
@@ -580,7 +581,7 @@
         "ALLOCATORFRAMING");
 
     if (ks_object_get_property (pin_handle, KSPROPSETID_Connection,
-            KSPROPERTY_CONNECTION_ALLOCATORFRAMING, &framing, &framing_size,
+            KSPROPERTY_CONNECTION_ALLOCATORFRAMING, (void**)&framing, &framing_size,
             NULL)) {
       *num_outstanding = framing->Frames;
       alignment = framing->FileAlignment;
@@ -589,7 +590,7 @@
     }
   }
 
-  GST_DEBUG ("num_outstanding: %lu alignment: 0x%08x", *num_outstanding,
+  GST_DEBUG ("num_outstanding: %lu alignment: 0x%08lx", *num_outstanding,
       alignment);
 
   if (*num_outstanding == 0 || *num_outstanding > MAX_OUTSTANDING_FRAMES) {
@@ -627,7 +628,7 @@
     if (ks_object_get_property (pin_handle, KSPROPSETID_Stream,
             KSPROPERTY_STREAM_MASTERCLOCK, (gpointer *) & cur_clock_handle,
             &cur_clock_handle_size, NULL)) {
-      GST_DEBUG ("current master clock handle: 0x%08x", *cur_clock_handle);
+      GST_DEBUG ("current master clock handle: 0x%08x", (unsigned int)*cur_clock_handle);
       CloseHandle (*cur_clock_handle);
       g_free (cur_clock_handle);
     } else {
--- sys/winks/gstksvideosrc.c	0.10.23
+++ sys/winks/gstksvideosrc.c	fixed
@@ -1073,7 +1073,7 @@
         break;
       default:
         GST_ELEMENT_ERROR (self, RESOURCE, FAILED,
-            ("failed to start capture (0x%08x)", error_code), (debug_str));
+            ("failed to start capture (0x%08lx)", error_code), (debug_str));
         break;
     }
 
@@ -1084,7 +1084,7 @@
     if (result == GST_FLOW_ERROR) {
       if (error_str != NULL) {
         GST_ELEMENT_ERROR (self, RESOURCE, READ,
-            ("read failed: %s [0x%08x]", error_str, error_code),
+            ("read failed: %s [0x%08lx]", error_str, error_code),
             ("gst_ks_video_device_read_frame failed"));
       }
     } else if (result == GST_FLOW_UNEXPECTED) {
--- sys/winks/kshelpers.c	0.10.23
+++ sys/winks/kshelpers.c	fixed
@@ -165,9 +165,11 @@
     GUID prop_set, gulong prop_id, gpointer value, gulong value_size,
     gulong * error)
 {
-  KSP_PIN prop = { 0, };
+  KSP_PIN prop;
   DWORD bytes_returned = 0;
 
+  memset(&prop, 0, sizeof(KSP_PIN));
+
   prop.PinId = pin_id;
   prop.Property.Set = prop_set;
   prop.Property.Id = prop_id;
@@ -181,11 +183,13 @@
 ks_filter_get_pin_property_multi (HANDLE filter_handle, gulong pin_id,
     GUID prop_set, gulong prop_id, KSMULTIPLE_ITEM ** items, gulong * error)
 {
-  KSP_PIN prop = { 0, };
+  KSP_PIN prop;
   DWORD items_size = 0, bytes_written = 0;
   gulong err;
   gboolean ret;
 
+  memset(&prop, 0, sizeof(KSP_PIN));
+
   *items = NULL;
 
   prop.PinId = pin_id;
@@ -221,11 +225,13 @@
 ks_object_query_property (HANDLE handle, GUID prop_set, gulong prop_id,
     gulong prop_flags, gpointer * value, gulong * value_size, gulong * error)
 {
-  KSPROPERTY prop = { 0, };
+  KSPROPERTY prop;
   DWORD req_value_size = 0, bytes_written = 0;
   gulong err;
   gboolean ret;
 
+  memset(&prop, 0, sizeof(KSPROPERTY));
+
   *value = NULL;
 
   prop.Set = prop_set;
@@ -278,9 +284,11 @@
 ks_object_set_property (HANDLE handle, GUID prop_set, gulong prop_id,
     gpointer value, gulong value_size, gulong * error)
 {
-  KSPROPERTY prop = { 0, };
+  KSPROPERTY prop;
   DWORD bytes_returned;
 
+  memset(&prop, 0, sizeof(KSPROPERTY));
+
   prop.Set = prop_set;
   prop.Id = prop_id;
   prop.Flags = KSPROPERTY_TYPE_SET;
@@ -300,7 +308,7 @@
   *len = 0;
 
   if (ks_object_query_property (handle, GUID_NULL, 0,
-          KSPROPERTY_TYPE_SETSUPPORT, propsets, &size, &error)) {
+          KSPROPERTY_TYPE_SETSUPPORT, (void **)propsets, &size, &error)) {
     if (size % sizeof (GUID) == 0) {
       *len = size / sizeof (GUID);
       return TRUE;
@@ -323,7 +331,7 @@
 gchar *
 ks_guid_to_string (const GUID * guid)
 {
-  return g_strdup_printf ("{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
+  return g_strdup_printf ("{%08lX-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
       guid->Data1, guid->Data2, guid->Data3, guid->Data4[0], guid->Data4[1],
       guid->Data4[2], guid->Data4[3], guid->Data4[4], guid->Data4[5],
       guid->Data4[6], guid->Data4[7]);
@@ -379,7 +387,7 @@
   CHECK_OPTIONS_FLAG (LOOPEDDATA);
 
   if (flags != 0)
-    g_string_append_printf (str, "|0x%08x", flags);
+    g_string_append_printf (str, "|0x%08lx", flags);
 
   ret = str->str;
   g_string_free (str, FALSE);
--- sys/winks/kshelpers.h	0.10.23
+++ sys/winks/kshelpers.h	fixed
@@ -23,6 +23,7 @@
 #include <glib.h>
 #include <windows.h>
 #include <ks.h>
+#include <gst/gst.h>
 
 G_BEGIN_DECLS
 
--- sys/winks/ksvideohelpers.c	0.10.23
+++ sys/winks/ksvideohelpers.c	fixed
@@ -234,7 +234,7 @@
   }
 
   if (!structure) {
-    GST_DEBUG ("Unknown DirectShow Video GUID %08x-%04x-%04x-%04x-%08x%04x",
+    GST_DEBUG ("Unknown DirectShow Video GUID %08lx-%04x-%04x-%04x-%08lx%04x",
         subtype_guid.Data1, subtype_guid.Data2, subtype_guid.Data3,
         *(WORD *) subtype_guid.Data4, *(DWORD *) & subtype_guid.Data4[2],
         *(WORD *) & subtype_guid.Data4[6]);
--- tests/examples/opencv/gst_element_print_properties.c	0.10.23
+++ tests/examples/opencv/gst_element_print_properties.c	fixed
@@ -20,6 +20,7 @@
  *
  */
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
 
 #include <gst/gst.h>
 #include <string.h>
openSUSE Build Service is sponsored by