mirror of https://github.com/mpv-player/mpv
-brightness && -vf scale fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10633 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3bccf5038f
commit
2bff57da7f
|
@ -277,6 +277,7 @@ static int control(struct vf_instance_s* vf, int request, void* data){
|
||||||
int brightness, contrast, saturation, srcRange, dstRange;
|
int brightness, contrast, saturation, srcRange, dstRange;
|
||||||
vf_equalizer_t *eq;
|
vf_equalizer_t *eq;
|
||||||
|
|
||||||
|
if(vf->priv->ctx)
|
||||||
switch(request){
|
switch(request){
|
||||||
case VFCTRL_GET_EQUALIZER:
|
case VFCTRL_GET_EQUALIZER:
|
||||||
r= sws_getColorspaceDetails(vf->priv->ctx, &inv_table, &srcRange, &table, &dstRange, &brightness, &contrast, &saturation);
|
r= sws_getColorspaceDetails(vf->priv->ctx, &inv_table, &srcRange, &table, &dstRange, &brightness, &contrast, &saturation);
|
||||||
|
|
Loading…
Reference in New Issue