summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-01 02:26:34 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-01 02:43:47 +0300
commitcf9edda1d370d39bc8a3d020a9c2bc4090d2457e (patch)
tree1d1bbc529a4e8109fb6aa5cadf0dbbb7bd61013a /stream/tv.c
parent7af8417ae7beb409f54849956a7037bc66c4c334 (diff)
parent1c37a6427abef0827c608d328d37ca1b1a0a022d (diff)
downloadmpv-cf9edda1d370d39bc8a3d020a9c2bc4090d2457e.tar.bz2
mpv-cf9edda1d370d39bc8a3d020a9c2bc4090d2457e.tar.xz
Merge svn changes up to r29117
Diffstat (limited to 'stream/tv.c')
-rw-r--r--stream/tv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 641737a9f1..53d1adb2c5 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -439,6 +439,12 @@ static int open_tv(tvi_handle_t *tvh)
#endif
/* limits on w&h are norm-dependent -- JM */
+ if (tvh->tv_param->width != -1 && tvh->tv_param->height != -1) {
+ // first tell the driver both width and height, some drivers do not support setting them independently.
+ int dim[2];
+ dim[0] = tvh->tv_param->width; dim[1] = tvh->tv_param->height;
+ funcs->control(tvh->priv, TVI_CONTROL_VID_SET_WIDTH_HEIGHT, dim);
+ }
/* set width */
if (tvh->tv_param->width != -1)
{