# HG changeset patch # User alex # Date 1081253980 0 # Node ID e34f9638aa51e4be8f80563efec9b1a5fdcf5d67 # Parent eb3ad04675e1922396f882255185df6c6178e62b correct typeconversion of fps, patches by several ppl diff -r eb3ad04675e1 -r e34f9638aa51 libmpdemux/tvi_bsdbt848.c --- a/libmpdemux/tvi_bsdbt848.c Tue Apr 06 11:52:31 2004 +0000 +++ b/libmpdemux/tvi_bsdbt848.c Tue Apr 06 12:19:40 2004 +0000 @@ -293,6 +293,7 @@ case TVI_CONTROL_TUN_SET_NORM: { int req_mode = (int)*(void **)arg; + u_short tmp_fps; priv->iformat = METEOR_FMT_AUTOMODE; @@ -357,7 +358,8 @@ return(0); } - if(ioctl(priv->btfd, METEORSFPS, &priv->fps) < 0) + tmp_fps = priv->fps; + if(ioctl(priv->btfd, METEORSFPS, &tmp_fps) < 0) { perror("fps:ioctl"); return(0); @@ -466,6 +468,7 @@ { int marg; int count; +u_short tmp_fps; G_private = priv; /* Oooh, sick */ @@ -510,8 +513,9 @@ perror("SINPUT:ioctl"); } +tmp_fps = priv->fps; if(priv->videoready == TRUE && - ioctl(priv->btfd, METEORSFPS, &priv->fps) < 0) + ioctl(priv->btfd, METEORSFPS, &tmp_fps) < 0) { perror("SFPS:ioctl"); }