summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_directfb.c10
-rw-r--r--src/video_out/video_out_vidix.c10
-rw-r--r--src/video_out/video_out_xcbxv.c6
-rw-r--r--src/video_out/video_out_xv.c6
-rw-r--r--src/video_out/video_out_xvmc.c6
-rw-r--r--src/video_out/video_out_xxmc.c6
6 files changed, 34 insertions, 10 deletions
diff --git a/src/video_out/video_out_directfb.c b/src/video_out/video_out_directfb.c
index 77f20a367..47ba056ae 100644
--- a/src/video_out/video_out_directfb.c
+++ b/src/video_out/video_out_directfb.c
@@ -701,9 +701,13 @@ static void directfb_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen
lprintf ("failed=0x%08x.\n", failed);
}
- if (this->sc.delivered_width != frame->width ||
- this->sc.delivered_height != frame->height ||
- this->sc.delivered_ratio != frame->ratio)
+ if ( (frame->width != this->sc.delivered_width)
+ || (frame->height != this->sc.delivered_height)
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
{
lprintf ("forcing redraw.\n");
this->sc.force_redraw = 1;
diff --git a/src/video_out/video_out_vidix.c b/src/video_out/video_out_vidix.c
index 618ce1023..8298d3ede 100644
--- a/src/video_out/video_out_vidix.c
+++ b/src/video_out/video_out_vidix.c
@@ -648,9 +648,13 @@ static void vidix_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) {
pthread_mutex_lock(&this->mutex);
if ( (frame->width != this->sc.delivered_width)
- || (frame->height != this->sc.delivered_height)
- || (frame->ratio != this->sc.delivered_ratio)
- || (frame->format != this->delivered_format ) ) {
+ || (frame->height != this->sc.delivered_height)
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->format != this->delivered_format )
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
lprintf("video_out_vidix: change frame format\n");
this->sc.delivered_width = frame->width;
diff --git a/src/video_out/video_out_xcbxv.c b/src/video_out/video_out_xcbxv.c
index e8797505b..f1ff843dc 100644
--- a/src/video_out/video_out_xcbxv.c
+++ b/src/video_out/video_out_xcbxv.c
@@ -710,7 +710,11 @@ static void xv_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) {
*/
if ( (frame->width != this->sc.delivered_width)
|| (frame->height != this->sc.delivered_height)
- || (frame->ratio != this->sc.delivered_ratio) ) {
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
lprintf("frame format changed\n");
this->sc.force_redraw = 1; /* trigger re-calc of output size */
}
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 73236ec0d..1404871d4 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.c
@@ -802,7 +802,11 @@ static void xv_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) {
*/
if ( (frame->width != this->sc.delivered_width)
|| (frame->height != this->sc.delivered_height)
- || (frame->ratio != this->sc.delivered_ratio) ) {
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
lprintf("frame format changed\n");
this->sc.force_redraw = 1; /* trigger re-calc of output size */
}
diff --git a/src/video_out/video_out_xvmc.c b/src/video_out/video_out_xvmc.c
index 34b925c8f..16d87c6b0 100644
--- a/src/video_out/video_out_xvmc.c
+++ b/src/video_out/video_out_xvmc.c
@@ -945,7 +945,11 @@ static void xvmc_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) {
if ( (frame->width != this->sc.delivered_width)
|| (frame->height != this->sc.delivered_height)
- || (frame->ratio != this->sc.delivered_ratio) ) {
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
lprintf("frame format changed\n");
/*
diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c
index 654cad7d9..6529d5832 100644
--- a/src/video_out/video_out_xxmc.c
+++ b/src/video_out/video_out_xxmc.c
@@ -1658,7 +1658,11 @@ static void xxmc_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen)
*/
if ( (frame->width != this->sc.delivered_width)
|| (frame->height != this->sc.delivered_height)
- || (frame->ratio != this->sc.delivered_ratio) ) {
+ || (frame->ratio != this->sc.delivered_ratio)
+ || (frame->vo_frame.crop_left != this->sc.crop_left)
+ || (frame->vo_frame.crop_right != this->sc.crop_right)
+ || (frame->vo_frame.crop_top != this->sc.crop_top)
+ || (frame->vo_frame.crop_bottom != this->sc.crop_bottom) ) {
lprintf("frame format changed\n");
this->sc.force_redraw = 1; /* trigger re-calc of output size */
}