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

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

My guess is that you are not using transcoding and displaying videos exactly as you upload them. Is that the case?

Lev’s picture

Yep. 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.

Jorrit’s picture

Assigned: Unassigned » Jorrit
Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

I'll fix this soon, your fix is the right one.

Jorrit’s picture

Status: Reviewed & tested by the community » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.