ximage: more fixes

This commit is contained in:
Wim Taymans 2011-04-06 17:54:28 +02:00
parent 4007076b55
commit 1ae67927cc
4 changed files with 6 additions and 3 deletions

View file

@ -291,6 +291,8 @@ gst_meta_ximage_free (GstMetaXImage * meta, GstBuffer * buffer)
beach:
GST_OBJECT_UNLOCK (ximagesink);
gst_object_unref (meta->sink);
}
GstBuffer *

View file

@ -325,6 +325,8 @@ gst_meta_xvimage_free (GstMetaXvImage * meta, GstBuffer * buffer)
beach:
GST_OBJECT_UNLOCK (xvimagesink);
gst_object_unref (meta->sink);
}
GstBuffer *

View file

@ -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);
}

View file

@ -208,7 +208,6 @@ struct _GstXvImageSink
GstXContext *xcontext;
GstXWindow *xwindow;
GstBuffer *xvimage;
GstBuffer *cur_image;
GThread *event_thread;