From bc4d6536121a7db75c7592b33d35d0a0531c4b75 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 6 Mar 2003 00:51:39 +0000 Subject: - 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 CVS patchset: 4344 CVS date: 2003/03/06 00:51:39 --- src/post/goom/xine_goom.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 04838b788..2142c0537 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.25 2003/02/22 14:21:37 mroi Exp $ + * $Id: xine_goom.c,v 1.26 2003/03/06 00:51:39 hadess Exp $ * * GOOM post plugin. * @@ -151,6 +151,8 @@ static void width_changed_cb(void *data, xine_cfg_entry_t *cfg) { 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 @@ static void height_changed_cb(void *data, xine_cfg_entry_t *cfg) { 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; } } @@ -441,6 +445,9 @@ static int goom_port_open(xine_audio_port_t *port_gen, xine_stream_t *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 ); } -- cgit v1.2.3