summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-11-05 21:51:53 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-11-05 21:51:53 +0000
commit9d1d6d55a705e16ebdff1451caabea3b7e97bd27 (patch)
tree929cdc86cde1247b8f244e34868ed282c9b056f1
parentc7d3268a5b327a4a1a3ca14167f5bcd4e5f0b1d5 (diff)
downloadxine-lib-9d1d6d55a705e16ebdff1451caabea3b7e97bd27.tar.gz
xine-lib-9d1d6d55a705e16ebdff1451caabea3b7e97bd27.tar.bz2
XShm crashes with xinimin, when the callbacks return without initializing the
values, because "running" is set too late CVS patchset: 5696 CVS date: 2003/11/05 21:51:53
-rw-r--r--doc/hackersguide/library.sgml11
1 files changed, 1 insertions, 10 deletions
diff --git a/doc/hackersguide/library.sgml b/doc/hackersguide/library.sgml
index 6b68c877d..63e550e3d 100644
--- a/doc/hackersguide/library.sgml
+++ b/doc/hackersguide/library.sgml
@@ -104,16 +104,12 @@ static Window window[2];
static int xpos, ypos, width, height, fullscreen;
static double pixel_aspect;
-static int running = 0;
+static int running = 1;
/* this will be called by xine, if it wants to know the target size of a frame */
static void dest_size_cb(void *data, int video_width, int video_height, double video_pixel_aspect,
int *dest_width, int *dest_height, double *dest_pixel_aspect) {
-
- if(!running)
- return;
-
*dest_width = width;
*dest_height = height;
*dest_pixel_aspect = pixel_aspect;
@@ -124,9 +120,6 @@ static void frame_output_cb(void *data, int video_width, int video_height,
double video_pixel_aspect, int *dest_x, int *dest_y,
int *dest_width, int *dest_height,
double *dest_pixel_aspect, int *win_x, int *win_y) {
- if(!running)
- return;
-
*dest_x = 0;
*dest_y = 0;
*win_x = xpos;
@@ -262,8 +255,6 @@ int main(int argc, char **argv) {
return 1;
}
- running = 1;
-
while (running) {
XEvent xevent;