Ensure that when VID_GET_FORMAT ioctl is called,

video chain in graph is ready built.
Otherwise driver can return one format
while graph builder will negotiate another.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25095 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-11-18 11:36:57 +00:00
parent 8b33e65473
commit a516b405d8
1 changed files with 5 additions and 0 deletions

View File

@ -3131,6 +3131,11 @@ static int control(priv_t * priv, int cmd, void *arg)
{
if(!priv->pmtVideo)
return TVI_CONTROL_FALSE;
/*
Build video chain (for video format negotiation).
If this was done before, routine will do nothing.
*/
build_video_chain(priv);
DisplayMediaType("VID_GET_FORMAT", priv->pmtVideo);
if (priv->fcc) {
*(int *) arg = priv->fcc;