]> git.sesse.net Git - vlc/commitdiff
api: allow to change A/R on the fly.
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 28 Dec 2013 22:36:24 +0000 (23:36 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 30 Dec 2013 14:40:36 +0000 (15:40 +0100)
ASF allows specifying a new aspect ratio while playing back.
Triggering change using the "aspect-ratio" variable can't work
for unknown A/R as the variable is "Checked" type.

include/vlc_vout.h
src/libvlccore.sym
src/video_output/video_output.c

index 2d6c180bfc1dcdf2d57277a44508dcda5d8f17de..b39e49b564e8367df07a2a85ee8bddfac6b548c4 100644 (file)
@@ -145,6 +145,9 @@ VLC_API int vout_GetSnapshot( vout_thread_t *p_vout,
                               video_format_t *p_fmt,
                               const char *psz_format, mtime_t i_timeout );
 
+VLC_API void vout_ChangeAspectRatio( vout_thread_t *p_vout,
+                                     unsigned int i_num, unsigned int i_den );
+
 /* */
 VLC_API picture_t * vout_GetPicture( vout_thread_t * );
 VLC_API void vout_PutPicture( vout_thread_t *, picture_t * );
index 7943300d2c33689deeeb11ff7caabfead2174bd2..f9c36cb873020cc6b04d122fe5e9889722161e24 100644 (file)
@@ -593,6 +593,7 @@ vlm_MessageDelete
 vlm_MessageNew
 vlm_MessageSimpleNew
 vlm_New
+vout_ChangeAspectRatio
 vout_Close
 vout_GetPicture
 vout_PutPicture
index f9e52cdb377c9b3ca9c06accb068b2e27cc47199..6739d4cec1f1b6a5357fc30fb437a9d836aae9a7 100644 (file)
@@ -487,6 +487,12 @@ int vout_GetSnapshot(vout_thread_t *vout,
     return VLC_SUCCESS;
 }
 
+void vout_ChangeAspectRatio( vout_thread_t *p_vout,
+                             unsigned int i_num, unsigned int i_den )
+{
+    vout_ControlChangeSampleAspectRatio( p_vout, i_num, i_den );
+}
+
 /* vout_Control* are usable by anyone at anytime */
 void vout_ControlChangeFullscreen(vout_thread_t *vout, bool fullscreen)
 {