mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
parent
849d3ec371
commit
a96c0ab9fe
1 changed files with 5 additions and 4 deletions
|
@ -63,7 +63,7 @@ static gboolean gst_sdlvideosink_supported (GstImplementsInterface * iface,
|
||||||
GType type);
|
GType type);
|
||||||
|
|
||||||
static void gst_sdlvideosink_xoverlay_init (GstXOverlayClass * klass);
|
static void gst_sdlvideosink_xoverlay_init (GstXOverlayClass * klass);
|
||||||
static void gst_sdlvideosink_xoverlay_set_xwindow_id
|
static void gst_sdlvideosink_xoverlay_set_window_handle
|
||||||
(GstXOverlay * overlay, unsigned long parent);
|
(GstXOverlay * overlay, unsigned long parent);
|
||||||
|
|
||||||
static gboolean gst_sdlvideosink_lock (GstSDLVideoSink * sdl);
|
static gboolean gst_sdlvideosink_lock (GstSDLVideoSink * sdl);
|
||||||
|
@ -361,14 +361,15 @@ gst_sdlvideosink_supported (GstImplementsInterface * interface,
|
||||||
static void
|
static void
|
||||||
gst_sdlvideosink_xoverlay_init (GstXOverlayClass * klass)
|
gst_sdlvideosink_xoverlay_init (GstXOverlayClass * klass)
|
||||||
{
|
{
|
||||||
klass->set_xwindow_id = gst_sdlvideosink_xoverlay_set_xwindow_id;
|
klass->set_window_handle = gst_sdlvideosink_xoverlay_set_window_handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_sdlvideosink_xoverlay_set_xwindow_id (GstXOverlay * overlay,
|
gst_sdlvideosink_xoverlay_set_window_handle (GstXOverlay * overlay,
|
||||||
unsigned long parent)
|
guintptr handle)
|
||||||
{
|
{
|
||||||
GstSDLVideoSink *sdlvideosink = GST_SDLVIDEOSINK (overlay);
|
GstSDLVideoSink *sdlvideosink = GST_SDLVIDEOSINK (overlay);
|
||||||
|
unsigned long parent = (unsigned long) handle;
|
||||||
|
|
||||||
if (sdlvideosink->xwindow_id == parent)
|
if (sdlvideosink->xwindow_id == parent)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue