From: Bastien N. <ha...@us...> - 2003-03-06 00:51:44
|
Update of /cvsroot/xine/xine-lib/src/post/goom In directory sc8-pr-cvs1:/tmp/cvs-serv13721 Modified Files: xine_goom.c Log Message: - following the screenshot discussion, inform the height and width of the stream if it exists so we can take screenshots of goom, the other post plugins need to be adapted as well Index: xine_goom.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/post/goom/xine_goom.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- xine_goom.c 22 Feb 2003 14:21:37 -0000 1.25 +++ xine_goom.c 6 Mar 2003 00:51:39 -0000 1.26 @@ -151,6 +151,8 @@ if(class->ip) { post_plugin_goom_t *this = class->ip; this->width = cfg->num_value; + if (this->stream) + this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->width; } } @@ -160,6 +162,8 @@ if(class->ip) { post_plugin_goom_t *this = class->ip; this->height = cfg->num_value; + if (this->stream) + this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = this->height; } } @@ -440,6 +444,9 @@ this->stream = stream; this->data_idx = 0; init_yuv_planes(&this->yuv, this->width, this->height); + + this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = this->height; + this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->width; return port->original_port->open(port->original_port, stream, bits, rate, mode ); } |