mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 08:33:34 +00:00
printf -> mp_msg
if something is not right, feel free to revert it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7739 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f388cfb9d
commit
1b3453f29f
@ -2,6 +2,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "mp_image.h"
|
||||
#include "../mp_msg.h"
|
||||
#include "vf.h"
|
||||
|
||||
#include "../libvo/fastmemcpy.h"
|
||||
@ -25,7 +26,7 @@ config(struct vf_instance_s* vf,
|
||||
vf->priv->y = (height - vf->priv->h) / 2;
|
||||
if (vf->priv->w + vf->priv->x > width
|
||||
|| vf->priv->h + vf->priv->y > height) {
|
||||
fprintf(stderr, "rectangle: bad position/width/height - rectangle area is out of the original!\n");
|
||||
mp_msg(MSGT_VFILTER,MSGL_WARN,"rectangle: bad position/width/height - rectangle area is out of the original!\n");
|
||||
return 0;
|
||||
}
|
||||
return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt);
|
||||
@ -55,7 +56,7 @@ control(struct vf_instance_s* vf, int request, void *data)
|
||||
return 1;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unknown param %d \n", tmp[0]);
|
||||
mp_msg(MSGT_VFILTER,MSGL_FATAL,"Unknown param %d \n", tmp[0]);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -77,7 +78,7 @@ put_image(struct vf_instance_s* vf, mp_image_t* mpi){
|
||||
|
||||
/* Draw the rectangle */
|
||||
|
||||
fprintf(stderr, "rectangle: -vop crop=%d:%d:%d:%d \n", vf->priv->w, vf->priv->h, vf->priv->x, vf->priv->y);
|
||||
mp_msg(MSGT_VFILTER,MSGL_DBG2, "rectangle: -vop crop=%d:%d:%d:%d \n", vf->priv->w, vf->priv->h, vf->priv->x, vf->priv->y);
|
||||
|
||||
if (vf->priv->x < 0)
|
||||
x = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user