From c19d0db4547622669ede20fd51ecd2503ecbec06 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 19 Feb 2022 00:37:34 +0900 Subject: [PATCH] directshow: Fix build warnings Part-of: --- subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp | 2 +- subprojects/gst-plugins-bad/sys/directshow/gstdshowaudiodec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp b/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp index 356a9274f2..e16cf24223 100644 --- a/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp +++ b/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp @@ -676,7 +676,7 @@ gst_dshowvideosink_window_thread (GstDshowVideoSink * sink) /* signal application we created a window */ gst_video_overlay_got_window_handle (GST_VIDEO_OVERLAY (sink), - (gulong)video_window); + (guintptr)video_window); /* Set the renderer's clipping window */ if (!sink->renderersupport->SetRendererWindow (video_window)) { diff --git a/subprojects/gst-plugins-bad/sys/directshow/gstdshowaudiodec.h b/subprojects/gst-plugins-bad/sys/directshow/gstdshowaudiodec.h index b4736f918b..f4bfe712ea 100644 --- a/subprojects/gst-plugins-bad/sys/directshow/gstdshowaudiodec.h +++ b/subprojects/gst-plugins-bad/sys/directshow/gstdshowaudiodec.h @@ -56,7 +56,7 @@ G_BEGIN_DECLS typedef struct { gchar *element_name; /* The gst element factory name */ gchar *element_longname; /* Description string for element */ - gint32 format; /* WAVEFORMATEX format */ + unsigned long format; /* WAVEFORMATEX format */ gchar *sinkcaps; /* GStreamer caps of input format */ PreferredFilter *preferred_filters; /* NULL-terminated list of preferred filters */ } AudioCodecEntry;