mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
ximage: more fixes
This commit is contained in:
parent
4007076b55
commit
1ae67927cc
4 changed files with 6 additions and 3 deletions
|
@ -291,6 +291,8 @@ gst_meta_ximage_free (GstMetaXImage * meta, GstBuffer * buffer)
|
|||
|
||||
beach:
|
||||
GST_OBJECT_UNLOCK (ximagesink);
|
||||
|
||||
gst_object_unref (meta->sink);
|
||||
}
|
||||
|
||||
GstBuffer *
|
||||
|
|
|
@ -325,6 +325,8 @@ gst_meta_xvimage_free (GstMetaXvImage * meta, GstBuffer * buffer)
|
|||
|
||||
beach:
|
||||
GST_OBJECT_UNLOCK (xvimagesink);
|
||||
|
||||
gst_object_unref (meta->sink);
|
||||
}
|
||||
|
||||
GstBuffer *
|
||||
|
|
|
@ -314,8 +314,7 @@ gst_xvimagesink_xvimage_put (GstXvImageSink * xvimagesink, GstBuffer * xvimage)
|
|||
if (xvimagesink->xcontext->use_xshm) {
|
||||
GST_LOG_OBJECT (xvimagesink,
|
||||
"XvShmPutImage with image %dx%d and window %dx%d, from xvimage %"
|
||||
GST_PTR_FORMAT,
|
||||
meta->width, meta->height,
|
||||
GST_PTR_FORMAT, meta->width, meta->height,
|
||||
xvimagesink->render_rect.w, xvimagesink->render_rect.h, xvimage);
|
||||
|
||||
XvShmPutImage (xvimagesink->xcontext->disp,
|
||||
|
@ -2331,6 +2330,7 @@ gst_xvimagesink_expose (GstXOverlay * overlay)
|
|||
{
|
||||
GstXvImageSink *xvimagesink = GST_XVIMAGESINK (overlay);
|
||||
|
||||
GST_DEBUG ("doing expose");
|
||||
gst_xvimagesink_xwindow_update_geometry (xvimagesink);
|
||||
gst_xvimagesink_xvimage_put (xvimagesink, NULL);
|
||||
}
|
||||
|
|
|
@ -208,7 +208,6 @@ struct _GstXvImageSink
|
|||
|
||||
GstXContext *xcontext;
|
||||
GstXWindow *xwindow;
|
||||
GstBuffer *xvimage;
|
||||
GstBuffer *cur_image;
|
||||
|
||||
GThread *event_thread;
|
||||
|
|
Loading…
Reference in a new issue