[vlc-commits] mmal: codec: make unused mmal-opaque option obsolete

Steve Lhomme git at videolan.org
Thu Jan 23 14:39:59 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 22 16:21:16 2020 +0100| [38a5ea9db3e843a187f4e81f5115e7cd9a61e148] | committer: Steve Lhomme

mmal: codec: make unused mmal-opaque option obsolete

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38a5ea9db3e843a187f4e81f5115e7cd9a61e148
---

 modules/hw/mmal/codec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index bbb21e468e..f56b6fa2f8 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -55,10 +55,6 @@
 #define MMAL_ALIGN_W      32
 #define MMAL_ALIGN_H      16
 
-#define MMAL_OPAQUE_NAME "mmal-opaque"
-#define MMAL_OPAQUE_TEXT N_("Decode frames directly into RPI VideoCore instead of host memory.")
-#define MMAL_OPAQUE_LONGTEXT N_("Decode frames directly into RPI VideoCore instead of host memory. This option must only be used with the MMAL video output plugin.")
-
 #define MMAL_RESIZE_NAME "mmal-resize"
 #define MMAL_RESIZE_TEXT N_("Use mmal resizer rather than hvs.")
 #define MMAL_RESIZE_LONGTEXT N_("Use mmal resizer rather than isp. This uses less gpu memory than the ISP but is slower.")
@@ -75,7 +71,7 @@ vlc_module_begin()
     set_description(N_("MMAL-based decoder plugin for Raspberry Pi"))
     set_capability("video decoder", 90)
     add_shortcut("mmal_decoder")
-    add_bool(MMAL_OPAQUE_NAME, true, MMAL_OPAQUE_TEXT, MMAL_OPAQUE_LONGTEXT, false)
+    add_obsolete_bool("mmal-opaque")
     set_callbacks(OpenDecoder, CloseDecoder)
 
     add_submodule()



More information about the vlc-commits mailing list