diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-10 13:12:20 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-10 13:12:20 +0000 |
commit | 519cd1f3de64e2992d3d7c2509f6c6e6ba575849 (patch) | |
tree | 320cef5ab43b180fa0a67326dfaab714f065a17f /src/xine-engine/video_out.c | |
parent | a83ab4380f72385d0c5022a17985513f6c86c537 (diff) | |
download | xine-lib-519cd1f3de64e2992d3d7c2509f6c6e6ba575849.tar.gz xine-lib-519cd1f3de64e2992d3d7c2509f6c6e6ba575849.tar.bz2 |
add width/height to vo_status
CVS patchset: 3853
CVS date: 2003/01/10 13:12:20
Diffstat (limited to 'src/xine-engine/video_out.c')
-rw-r--r-- | src/xine-engine/video_out.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 51b18a4cc..1336a6315 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.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: video_out.c,v 1.130 2003/01/08 21:21:12 miguelfreitas Exp $ + * $Id: video_out.c,v 1.131 2003/01/10 13:12:20 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -81,6 +81,8 @@ typedef struct { int overlay_enabled; extra_info_t *extra_info_base; /* used to free mem chunk */ + + int current_width, current_height; } vos_t; /* @@ -298,6 +300,8 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { img->stream = stream; extra_info_merge( img->extra_info, stream->video_decoder_extra_info ); + this->current_width = img->width; + this->current_height = img->height; stream->metronom->got_video_frame (stream->metronom, img); @@ -943,7 +947,8 @@ static void vo_close (xine_video_port_t *this_gen, xine_stream_t *stream) { pthread_mutex_unlock(&this->streams_lock); } -static int vo_status (xine_video_port_t *this_gen, xine_stream_t *stream) { +static int vo_status (xine_video_port_t *this_gen, xine_stream_t *stream, + int *width, int *height) { vos_t *this = (vos_t *) this_gen; xine_stream_t *cur; @@ -953,6 +958,8 @@ static int vo_status (xine_video_port_t *this_gen, xine_stream_t *stream) { for (cur = xine_list_first_content(this->streams); cur; cur = xine_list_next_content(this->streams)) if (cur == stream) { + *width = this->current_width; + *height = this->current_height; ret = 1; break; } |