Allow media handlers to mark files as expensive
[lhc/web/wiklou.git] / includes / media / MediaHandler.php
index f131af4..b9a8ab7 100644 (file)
@@ -812,4 +812,13 @@ abstract class MediaHandler {
        public function getLength( $file ) {
                return 0.0;
        }
+
+       /**
+        * True if creating thumbnails from the file is large or otherwise resource-intensive.
+        * @param File $file
+        * @return bool
+        */
+       public function isExpensiveToThumbnail( $file ) {
+               return false;
+       }
 }