summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-12 01:33:23 +0200
committerwm4 <wm4@nowhere>2013-09-12 01:34:42 +0200
commit3a9c5ef687d982f3a3e97bb93f6fa84876a1876c (patch)
tree7ee661ac0b3716726e3ed8d7d33c7966763a50c4 /video
parent75e63ebb24f8866607996cb40ea56f6c3121b9c9 (diff)
downloadmpv-3a9c5ef687d982f3a3e97bb93f6fa84876a1876c.tar.bz2
mpv-3a9c5ef687d982f3a3e97bb93f6fa84876a1876c.tar.xz
aspect: mp_msg conversion
Diffstat (limited to 'video')
-rw-r--r--video/out/aspect.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/video/out/aspect.c b/video/out/aspect.c
index a5a1f09786..3a45367afb 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -37,7 +37,7 @@ void aspect_save_videores(struct vo *vo, int w, int h, int d_w, int d_h)
void aspect_save_screenres(struct vo *vo, int scrw, int scrh)
{
- mp_msg(MSGT_VO, MSGL_DBG2, "aspect_save_screenres %dx%d\n", scrw, scrh);
+ MP_DBG(vo, "aspect_save_screenres %dx%d\n", scrw, scrh);
struct mp_vo_opts *opts = vo->opts;
if (scrw <= 0 && scrh <= 0)
scrw = 1024;
@@ -70,11 +70,11 @@ static void aspect_calc(struct vo *vo, int *srcw, int *srch)
int fitw = FFMAX(1, vo->dwidth);
int fith = FFMAX(1, vo->dheight);
- mp_msg(MSGT_VO, MSGL_DBG2, "aspect(0) fitin: %dx%d monitor_par: %.2f\n",
+ MP_DBG(vo, "aspect(0) fitin: %dx%d monitor_par: %.2f\n",
fitw, fith, aspdat->monitor_par);
*srcw = fitw;
*srch = (float)fitw / aspdat->prew * aspdat->preh / pixelaspect;
- mp_msg(MSGT_VO, MSGL_DBG2, "aspect(1) wh: %dx%d (org: %dx%d)\n",
+ MP_DBG(vo, "aspect(1) wh: %dx%d (org: %dx%d)\n",
*srcw, *srch, aspdat->prew, aspdat->preh);
if (*srch > fith || *srch < aspdat->orgh) {
int tmpw = (float)fith / aspdat->preh * aspdat->prew * pixelaspect;
@@ -82,11 +82,10 @@ static void aspect_calc(struct vo *vo, int *srcw, int *srch)
*srch = fith;
*srcw = tmpw;
} else if (*srch > fith) {
- mp_tmsg(MSGT_VO, MSGL_WARN,
- "[ASPECT] Warning: No suitable new res found!\n");
+ MP_WARN(vo, "No suitable new aspect found!\n");
}
}
- mp_msg(MSGT_VO, MSGL_DBG2, "aspect(2) wh: %dx%d (org: %dx%d)\n",
+ MP_DBG(vo, "aspect(2) wh: %dx%d (org: %dx%d)\n",
*srcw, *srch, aspdat->prew, aspdat->preh);
}