changeset 24298:068d5d4231e8

implemented STREAM_CTRL_GET_ASPECT_RATIO
author nicodvb
date Sat, 01 Sep 2007 15:51:41 +0000
parents a5ae2d4973b8
children 725638f690bb
files stream/stream_dvd.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Sat Sep 01 15:50:52 2007 +0000
+++ b/stream/stream_dvd.c	Sat Sep 01 15:51:41 2007 +0000
@@ -737,6 +737,11 @@
               return 1;
             break;
         }
+        case STREAM_CTRL_GET_ASPECT_RATIO:
+        {
+            *((double *)arg) = !d->vts_file->vtsi_mat->vts_video_attr.display_aspect_ratio ? 4.0/3.0 : 16.0/9.0;
+            return 1;
+        }
     }
     return STREAM_UNSUPPORTED;
 }