Mercurial > mplayer.hg
changeset 25067:5abe2c29b7d8
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.
author | voroshil |
---|---|
date | Sun, 18 Nov 2007 11:36:57 +0000 |
parents | 89c42f6f6e89 |
children | 4b14d188ed34 |
files | stream/tvi_dshow.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tvi_dshow.c Sun Nov 18 11:15:14 2007 +0000 +++ b/stream/tvi_dshow.c Sun Nov 18 11:36:57 2007 +0000 @@ -3131,6 +3131,11 @@ { 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;