summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2003-05-04 10:09:34 +0000
committerEwald Snel <esnel@users.sourceforge.net>2003-05-04 10:09:34 +0000
commit5703eaae5bdcae0a70c4764ada2231a31e75a5a0 (patch)
tree8f70a4c6dfca0fb430c459a20f528d0cabe3b052
parent8e2df27969adca164df2ab27bcebe6e026e8ee52 (diff)
downloadxine-lib-5703eaae5bdcae0a70c4764ada2231a31e75a5a0.tar.gz
xine-lib-5703eaae5bdcae0a70c4764ada2231a31e75a5a0.tar.bz2
Fix annoying XVideo lockup (probably another bug in the X11 library)
CVS patchset: 4761 CVS date: 2003/05/04 10:09:34
-rw-r--r--src/video_out/video_out_xv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index c8f17424c..c6fe8a354 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_xv.c,v 1.165 2003/04/30 22:14:59 miguelfreitas Exp $
+ * $Id: video_out_xv.c,v 1.166 2003/05/04 10:09:34 esnel Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -794,13 +794,17 @@ static int xv_set_property (vo_driver_t *this_gen,
/* value is out of bound */
if((value < this->props[property].min) || (value > this->props[property].max))
value = (this->props[property].min + this->props[property].max) >> 1;
-
+
+ XLockDisplay (this->display);
+
XvSetPortAttribute (this->display, this->xv_port,
this->props[property].atom, value);
XvGetPortAttribute (this->display, this->xv_port,
this->props[property].atom,
&this->props[property].value);
+ XUnlockDisplay (this->display);
+
if (this->props[property].entry)
this->props[property].entry->num_value = this->props[property].value;