[MPlayer-cvslog] r38168 - in trunk: Changelog libvo/vo_jpeg.c libvo/vo_md5sum.c libvo/vo_null.c libvo/vo_png.c libvo/vo_pnm.c libvo/vo_tga.c libvo/vo_yuv4mpeg.c

ib subversion at mplayerhq.hu
Sat Feb 1 02:53:02 EET 2020


Author: ib
Date: Sat Feb  1 02:53:02 2020
New Revision: 38168

Log:
Add VOCTRL_GUISUPPORT to video output drivers which write to files.

These drivers can be used within the GUI without any additional configuration.

Modified:
   trunk/Changelog
   trunk/libvo/vo_jpeg.c
   trunk/libvo/vo_md5sum.c
   trunk/libvo/vo_null.c
   trunk/libvo/vo_png.c
   trunk/libvo/vo_pnm.c
   trunk/libvo/vo_tga.c
   trunk/libvo/vo_yuv4mpeg.c

Modified: trunk/Changelog
==============================================================================
--- trunk/Changelog	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/Changelog	Sat Feb  1 02:53:02 2020	(r38168)
@@ -8,6 +8,7 @@ MPlayer
     * Fix wrongly sized video window after leaving fullscreen mode
     * Clear screen when switching to fullscreen mode using the x11
       video output driver
+    * Enable video output drivers which write to files
 
   1.4: "SubCounter" April 18, 2019
 

Modified: trunk/libvo/vo_jpeg.c
==============================================================================
--- trunk/libvo/vo_jpeg.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_jpeg.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -396,6 +396,8 @@ static int control(uint32_t request, voi
     switch (request) {
         case VOCTRL_QUERY_FORMAT:
             return query_format(*((uint32_t*)data));
+        case VOCTRL_GUISUPPORT:
+            return VO_TRUE;
     }
     return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_md5sum.c
==============================================================================
--- trunk/libvo/vo_md5sum.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_md5sum.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -255,6 +255,8 @@ static int control(uint32_t request, voi
             return query_format(*((uint32_t*)data));
         case VOCTRL_DRAW_IMAGE:
             return draw_image(data);
+        case VOCTRL_GUISUPPORT:
+            return VO_TRUE;
     }
     return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_null.c
==============================================================================
--- trunk/libvo/vo_null.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_null.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -100,6 +100,8 @@ static int control(uint32_t request, voi
   switch (request) {
   case VOCTRL_QUERY_FORMAT:
     return query_format(*((uint32_t*)data));
+  case VOCTRL_GUISUPPORT:
+    return VO_TRUE;
   }
   return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_png.c
==============================================================================
--- trunk/libvo/vo_png.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_png.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -262,6 +262,8 @@ static int control(uint32_t request, voi
     return draw_image(data);
   case VOCTRL_QUERY_FORMAT:
     return query_format(*((uint32_t*)data));
+  case VOCTRL_GUISUPPORT:
+      return VO_TRUE;
   }
   return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_pnm.c
==============================================================================
--- trunk/libvo/vo_pnm.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_pnm.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -532,6 +532,8 @@ static int control(uint32_t request, voi
             return query_format(*((uint32_t*)data));
         case VOCTRL_DRAW_IMAGE:
             return draw_image(data);
+        case VOCTRL_GUISUPPORT:
+            return VO_TRUE;
     }
     return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_tga.c
==============================================================================
--- trunk/libvo/vo_tga.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_tga.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -219,6 +219,9 @@ static int control(uint32_t request, voi
 
       case VOCTRL_QUERY_FORMAT:
           return query_format(*((uint32_t*)data));
+
+      case VOCTRL_GUISUPPORT:
+          return VO_TRUE;
   }
   return VO_NOTIMPL;
 }

Modified: trunk/libvo/vo_yuv4mpeg.c
==============================================================================
--- trunk/libvo/vo_yuv4mpeg.c	Sat Feb  1 02:39:26 2020	(r38167)
+++ trunk/libvo/vo_yuv4mpeg.c	Sat Feb  1 02:53:02 2020	(r38168)
@@ -301,6 +301,8 @@ static int control(uint32_t request, voi
     return query_format(*((uint32_t*)data));
   case VOCTRL_DUPLICATE_FRAME:
     return write_last_frame();
+  case VOCTRL_GUISUPPORT:
+      return VO_TRUE;
   }
   return VO_NOTIMPL;
 }


More information about the MPlayer-cvslog mailing list