r59151 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59150‎ | r59151 | r59152 >
Date:22:31, 16 November 2009
Author:dale
Status:ok
Tags:
Comment:
* more specific profile info for fffmpeg2theora call
* added "shared" repo custom attributes to video tag
Modified paths:
  • /trunk/extensions/OggHandler/OggHandler_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OggHandler/OggHandler_body.php
@@ -705,6 +705,10 @@
706706 'startOffset' => $offset,
707707 'linkback' => $linkAttribs['href']
708708 );
 709+ if( $this->file->getRepoName() == 'shared' ){
 710+ $videoAttr['sharedWiki'] = true;
 711+ }
 712+
709713 if( $wgEnableTemporalOggUrls )
710714 $videoAttr['URLTimeEncoding'] = 'true';
711715
@@ -852,9 +856,9 @@
853857 return false;
854858 }
855859 $cmd = wfEscapeShellArg( $wgffmpeg2theoraPath ) . ' ' . wfEscapeShellArg ( $path ). ' --info';
856 - wfProfileIn( 'ffmpeg2theora' );
 860+ wfProfileIn( __METHOD__ . '/ffmpeg2theora' );
857861 $json_meta_str = wfShellExec( $cmd );
858 - wfProfileOut( 'ffmpeg2theora' );
 862+ wfProfileOut( __METHOD__ . '/ffmpeg2theora' );
859863 $objMeta = FormatJson::decode( $json_meta_str );
860864
861865 return $objMeta;

Status & tagging log