From: Thibaut M. <tma...@us...> - 2003-04-30 06:58:55
|
Update of /cvsroot/xine/xine-lib/src/post/visualizations In directory sc8-pr-cvs1:/tmp/cvs-serv30465/visualizations Modified Files: oscope.c fftscope.c fooviz.c Log Message: Don't forget to reset frame->bad_frame to 0 ! Fix strange problems with viz plugins. Index: oscope.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/post/visualizations/oscope.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- oscope.c 11 Mar 2003 17:40:32 -0000 1.6 +++ oscope.c 30 Apr 2003 06:58:51 -0000 1.7 @@ -293,6 +293,7 @@ XINE_VO_ASPECT_SQUARE, XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); frame->extra_info->invalid = 1; + frame->bad_frame = 0; frame->pts = vpts; vpts = 0; frame->duration = 90000 * this->samples_per_frame / this->sample_rate; @@ -395,7 +396,7 @@ static char *oscope_get_identifier(post_class_t *class_gen) { - return "Oscilliscope"; + return "Oscilloscope"; } static char *oscope_get_description(post_class_t *class_gen) Index: fftscope.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/post/visualizations/fftscope.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- fftscope.c 11 Mar 2003 17:40:31 -0000 1.12 +++ fftscope.c 30 Apr 2003 06:58:51 -0000 1.13 @@ -538,6 +538,7 @@ uint64_t vpts = buf->vpts; int i, c; + /* make a copy of buf data for private use */ if( this->buf.mem_size < buf->mem_size ) { this->buf.mem = realloc(this->buf.mem, buf->mem_size); @@ -594,8 +595,10 @@ XINE_VO_ASPECT_SQUARE, XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); frame->extra_info->invalid = 1; + frame->bad_frame = 0; frame->pts = vpts; vpts = 0; + frame->duration = 90000 * this->samples_per_frame / this->sample_rate; this->sample_counter -= this->samples_per_frame; Index: fooviz.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/post/visualizations/fooviz.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- fooviz.c 11 Mar 2003 17:40:31 -0000 1.5 +++ fooviz.c 30 Apr 2003 06:58:51 -0000 1.6 @@ -226,6 +226,7 @@ XINE_VO_ASPECT_SQUARE, XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); frame->extra_info->invalid = 1; + frame->bad_frame = 0; frame->pts = vpts; vpts = 0; frame->duration = 90000 * this->samples_per_frame / this->sample_rate; |