[MPlayer-cvslog] r24318 - trunk/stream/stream_dvd.c

nicodvb subversion at mplayerhq.hu
Sat Sep 1 17:51:41 CEST 2007


Author: nicodvb
Date: Sat Sep  1 17:51:41 2007
New Revision: 24318

Log:
implemented STREAM_CTRL_GET_ASPECT_RATIO

Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sat Sep  1 17:51:41 2007
@@ -737,6 +737,11 @@ static int control(stream_t *stream,int 
               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;
 }



More information about the MPlayer-cvslog mailing list