[gstreamer-bugs] [Bug 573343] New: Type mismatches in gstdirectdrawsink.c

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Feb 26 17:58:37 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=573343

  GStreamer | gst-plugins-good | Ver: git
           Summary: Type mismatches in gstdirectdrawsink.c
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: lrn1986 at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


diff --git a/sys/directdraw/gstdirectdrawsink.c
b/sys/directdraw/gstdirectdrawsink.c
index a128b31..eb09a82 100644
--- a/sys/directdraw/gstdirectdrawsink.c
+++ b/sys/directdraw/gstdirectdrawsink.c
@@ -610,7 +610,7 @@ gst_directdraw_sink_buffer_alloc (GstBaseSink * bsink,
guint64 offset,
               !gst_directdraw_sink_surface_check (ddrawsink, surface))
           ) {
         gst_directdraw_sink_surface_destroy (ddrawsink, surface);
-        gst_buffer_unref (surface);
+        gst_buffer_unref (GST_BUFFER(surface));
         surface = NULL;
       } else {
         /* We found a suitable surface */
@@ -629,7 +629,7 @@ gst_directdraw_sink_buffer_alloc (GstBaseSink * bsink,
guint64 offset,
     DDSURFACEDESC2 surface_desc;
     DDSURFACEDESC2 *sd;

-    if (!gst_structure_get_int (structure, "depth", &depth)) {
+    if (!gst_structure_get_int (structure, "depth", (gint *) &depth)) {
       GST_CAT_DEBUG_OBJECT (directdrawsink_debug, ddrawsink,
           "Can't get depth from buffer_alloc caps");
       return GST_FLOW_ERROR;
@@ -663,7 +663,7 @@ gst_directdraw_sink_buffer_alloc (GstBaseSink * bsink,
guint64 offset,
           gint bpp, endianness, red_mask, green_mask, blue_mask;

           /* get new display mode properties */
-          gst_structure_get_int (display_structure, "depth", &depth);
+          gst_structure_get_int (display_structure, "depth", (gint *) &depth);
           gst_structure_get_int (display_structure, "bpp", &bpp);
           gst_structure_get_int (display_structure, "endianness",
&endianness);
           gst_structure_get_int (display_structure, "red_mask", &red_mask);
@@ -997,7 +997,7 @@ gst_ddrawvideosink_get_format_from_caps (GstDirectDrawSink
* ddrawsink,
       pPixelFormat->dwBBitMask = GUINT32_TO_BE (pPixelFormat->dwBBitMask);
     }
   } else if (gst_structure_has_name (structure, "video/x-raw-yuv")) {
-    gint fourcc;
+    guint32 fourcc;

     pPixelFormat->dwFlags = DDPF_FOURCC;
     ret &= gst_structure_get_fourcc (structure, "format", &fourcc);
@@ -1894,7 +1894,7 @@ gst_directdraw_sink_bufferpool_clear (GstDirectDrawSink *
ddrawsink)
     ddrawsink->buffer_pool = g_slist_delete_link (ddrawsink->buffer_pool,
         ddrawsink->buffer_pool);
     gst_directdraw_sink_surface_destroy (ddrawsink, surface);
-    gst_buffer_unref (surface);
+    gst_buffer_unref (GST_BUFFER(surface));
   }
   g_mutex_unlock (ddrawsink->pool_lock);
 }


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=573343.




More information about the Gstreamer-bugs mailing list