Commit 6291dfb3 authored by Stephan Sundermann's avatar Stephan Sundermann Committed by Andrés G. Aragoneses

GStreamerSharp: fix audio&video playback in 32bits (bgo#750041)

The playback was broken on 32 bits because of a bug in gstreamer-sharp
where the handles always were 64 bits long even on 32 bits. This is
fixed in master [1] (which we already depend on, since [2]).

This fix updates VideoManager to account for the changes (and this
does not only fix video, since playing audio apparently also calls

[2] 's avatarAndrés G. Aragoneses <>
parent c2f6abca
......@@ -52,7 +52,7 @@ namespace Banshee.GStreamerSharp
Element playbin;
VideoDisplayContextType video_display_context_type;
IntPtr video_window;
ulong? video_window_xid;
IntPtr? video_window_xid;
VideoOverlayAdapter xoverlay;
object video_mutex = new object ();
......@@ -295,10 +295,10 @@ namespace Banshee.GStreamerSharp
public void WindowRealize (IntPtr window)
if (PlatformDetection.IsWindows) {
video_window_xid = (ulong)gdk_win32_drawable_get_handle (window);
video_window_xid = gdk_win32_drawable_get_handle (window);
} else if (PlatformDetection.IsUnix) {
//FIXME: we should maybe stop relying on x11
video_window_xid = (ulong)gdk_x11_window_get_xid (window);
video_window_xid = gdk_x11_window_get_xid (window);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment