mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
enabled csp-query support, but only for formats with 'query' flag set
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7263 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a9cce3d878
commit
fc0239c85b
@ -115,11 +115,13 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
|
|||||||
case VDCTRL_SET_PP_LEVEL:
|
case VDCTRL_SET_PP_LEVEL:
|
||||||
vfw_set_postproc(sh,10*(*((int*)arg)));
|
vfw_set_postproc(sh,10*(*((int*)arg)));
|
||||||
return CONTROL_OK;
|
return CONTROL_OK;
|
||||||
#if 0
|
#if 1
|
||||||
// FIXME: make this optional...
|
// FIXME: make this optional...
|
||||||
case VDCTRL_QUERY_FORMAT:
|
case VDCTRL_QUERY_FORMAT:
|
||||||
{
|
{
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
|
if(!(sh->codec->outflags[sh->outfmtidx]&CODECS_FLAG_QUERY))
|
||||||
|
return CONTROL_UNKNOWN; // do not query!
|
||||||
set_csp(priv->o_bih,*((int*)arg));
|
set_csp(priv->o_bih,*((int*)arg));
|
||||||
#ifdef BUILD_VFWEX
|
#ifdef BUILD_VFWEX
|
||||||
ret = ICDecompressQueryEx(priv->handle, sh->bih, priv->o_bih);
|
ret = ICDecompressQueryEx(priv->handle, sh->bih, priv->o_bih);
|
||||||
|
Loading…
Reference in New Issue
Block a user