Commit c464f5c
committed
Add class_exists check for FFmpeg VideoInfo class
Fix: Fatal error when FFmpeg addon is installed but class not loaded
- Check if FFmpeg addon is available (isAvailable)
- Check if VideoInfo class exists (class_exists)
- Prevents fatal error if addon is in wrong state
- Gracefully returns null if FFmpeg not ready
Error was: Class FriendsOfRedaxo\FFmpeg\VideoInfo not found1 parent 087b72f commit c464f5c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
73 | | - | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments