playback: fix build error for 64bit Windows build by MinGW
authorKouhei Sutou <kou@clear-code.com>
Fri, 11 Sep 2015 14:48:05 +0000 (23:48 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 11 Sep 2015 21:28:07 +0000 (23:28 +0200)
commitab64b00b48ab78496245d5bb0eda1d51fcb9e209
tree73d61761371bca10b334e5cc2e6358c284d70acc
parentdf931fb0b8b79d3b4f8fd89746c1be7ef8b3a3d4
playback: fix build error for 64bit Windows build by MinGW

Casting to gpointer from gulong generates the following warning with
64bit Windows target MinGW:

    gstplaybin2.c: In function 'pad_added_cb':
    gstplaybin2.c:3476:7: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
           (gpointer) group_id_probe_handler);
           ^
    cc1: all warnings being treated as errors

We should cast to guintptr from gulong before we cast to gpointer.

https://bugzilla.gnome.org/show_bug.cgi?id=754755
gst/playback/gstplaybin2.c