summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-03-24 21:47:15 +0100
committerThomas Reufer <thomas@reufer.ch>2014-03-24 21:47:15 +0100
commitb55b41753187a665740b216e39fd2bdf3ef21b95 (patch)
tree68f09da76889df565a73703d04e0d8a6c0fb0da6
parentbdb03849d1e553ea6bc14643f3a135c75079b2f3 (diff)
downloadvdr-plugin-rpihddevice-b55b41753187a665740b216e39fd2bdf3ef21b95.tar.gz
vdr-plugin-rpihddevice-b55b41753187a665740b216e39fd2bdf3ef21b95.tar.bz2
report valid VideoAspect if video is stopped (reported by Rolf Ahrenberg)
-rw-r--r--omxdevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omxdevice.c b/omxdevice.c
index 700f0ee..76aa89d 100644
--- a/omxdevice.c
+++ b/omxdevice.c
@@ -108,6 +108,8 @@ void cOmxDevice::GetVideoSize(int &Width, int &Height, double &VideoAspect)
if (Height)
VideoAspect = (double)Width / Height;
+ else
+ VideoAspect = 1.0;
}
void cOmxDevice::SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)