diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/post/goom/xine_goom.c | 8 |
2 files changed, 7 insertions, 2 deletions
@@ -3,6 +3,7 @@ xine-lib (1.1) xine-lib (1.0.2) * fixed xxmc / xvmc mocomp / IDCT rendering errors caused by the big update. * support --enable-fpic with recent versions of gcc + * clip goom fps value to >= 1 [bug #1193783] xine-lib (1.0.1) * Big XvMC quality / correctness / cpu-usage fix. [bug #1114517] diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 42d017bb3..02cf1f372 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.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: xine_goom.c,v 1.56 2004/12/12 22:01:26 mroi Exp $ + * $Id: xine_goom.c,v 1.57 2005/05/03 01:31:13 dsalt Exp $ * * GOOM post plugin. * @@ -145,9 +145,13 @@ static void fps_changed_cb(void *data, xine_cfg_entry_t *cfg) { if(class->ip) { post_plugin_goom_t *this = class->ip; + + if (cfg->num_value < 1) + cfg->num_value = 1; + this->fps = cfg->num_value; - if(this->sample_rate && this->fps) + if(this->sample_rate) this->samples_per_frame = this->sample_rate / this->fps; } } |