diff options
author | phintuka <phintuka> | 2010-01-19 00:09:52 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-01-19 00:09:52 +0000 |
commit | 3d877b672aa0b4944ffa53e275200523291b08e3 (patch) | |
tree | 45816d695e14cbe6881e5ced6699f2314c447f28 | |
parent | e1f25ffd82d8c5ca9ebc8753553b5570e7086195 (diff) | |
download | xineliboutput-3d877b672aa0b4944ffa53e275200523291b08e3.tar.gz xineliboutput-3d877b672aa0b4944ffa53e275200523291b08e3.tar.bz2 |
Do not move overlay if video_out has independent video and OSD resolutions
-rw-r--r-- | xine_post_autocrop.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xine_post_autocrop.c b/xine_post_autocrop.c index 161f0513..3ad1f4db 100644 --- a/xine_post_autocrop.c +++ b/xine_post_autocrop.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_post_autocrop.c,v 1.36 2010-01-03 19:29:50 phintuka Exp $ + * $Id: xine_post_autocrop.c,v 1.37 2010-01-19 00:09:52 phintuka Exp $ * */ @@ -1454,6 +1454,11 @@ static int32_t autocrop_overlay_add_event(video_overlay_manager_t *this_gen, voi pthread_mutex_unlock(&this->crop_lock); if(cropping_active && crop_total>10) { +#ifdef VO_CAP_CUSTOM_EXTENT_OVERLAY + /* Do not move overlay if video_out has independent video and OSD resolutions */ + if (event->object.overlay->extent_width <= 0 || + event->object.overlay->extent_height <= 0) +#endif if (event->event_type == OVERLAY_EVENT_SHOW) { switch (event->object.object_type) { case 0: |