diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-03-06 00:51:39 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-03-06 00:51:39 +0000 |
commit | bc4d6536121a7db75c7592b33d35d0a0531c4b75 (patch) | |
tree | 8d70cfd4655ab0952ccfc005dc098142ccad0ed2 | |
parent | d46b6348487f6a736184a3d1781f2164326000d3 (diff) | |
download | xine-lib-bc4d6536121a7db75c7592b33d35d0a0531c4b75.tar.gz xine-lib-bc4d6536121a7db75c7592b33d35d0a0531c4b75.tar.bz2 |
- 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
-rw-r--r-- | src/post/goom/xine_goom.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 ); } |