Closed (fixed)
Project:
Video
Version:
7.x-2.7
Component:
Video Players
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Aug 2012 at 14:37 UTC
Updated:
31 Aug 2012 at 12:31 UTC
Hi all,
After updating from 2.6 to 2.7 , I obtained the following error :
Notice: Undefined index: OGG in theme_video_formatter_player() (line 85 of bla:\bla\bla\video\video.theme.inc).
My videos were called like "something.OGG" and "otherthing.WebM"...not ".ogg" or ".webm"
I fixed the error modifying the line 83 in video/video.theme.inc :
$extension = video_utility::getExtension($item['playablefiles'][0]->filename);
TO :
$extension = strtolower(video_utility::getExtension($item['playablefiles'][0]->filename));
If someone can turn this into a patch, I'm not into the git flow yet...
Thx & enjoy
Comments
Comment #1
Jorrit commentedMy guess is that you are not using transcoding and displaying videos exactly as you upload them. Is that the case?
Comment #2
Lev commentedYep. I guess transcoders automatically return lowercase filename extensions, and don't cause any trouble.
Otherwise I wouldn't be the first one to complain...
Some "GUI-ed" batch encoders (eRightSoft's Super encoder, for instance) do spit some capitalised extensions.
Comment #3
Jorrit commentedI'll fix this soon, your fix is the right one.
Comment #4
Jorrit commentedI have fixed it in a slightly different way. Please try the next 7.x-2.x-dev release, which will be available within 12 hours.