Video Embed & Thumbnail Generator - Version 2.0.2

Version Description

  • February 21, 2012 =
  • Fixed check for FFMPEG again, to work with Windows.
Download this release

Release Info

Developer kylegilman
Plugin Icon 128x128 Video Embed & Thumbnail Generator
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
4
  Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 2.0.1
8
 
9
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
 
@@ -101,6 +101,9 @@ Because I can't figure out how to do it. Windows works a little differently from
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 2.0.1 - February 21, 2012 =
105
  * Fixed check for FFMPEG again. Should be more universal.
106
 
4
  Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 2.0.2
8
 
9
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 2.0.2 - February 21, 2012 =
105
+ * Fixed check for FFMPEG again, to work with Windows.
106
+
107
  = 2.0.1 - February 21, 2012 =
108
  * Fixed check for FFMPEG again. Should be more universal.
109
 
video-embed-thumbnail-generator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
- Version: 2.0.1
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
@@ -116,7 +116,9 @@ function kg_check_ffmpeg_exists() {
116
 
117
  if(function_exists('exec')) { $exec_enabled = true; }
118
 
119
- if ( $exec_enabled == true && is_file(get_option('wp_FMP_ffmpeg').'/ffmpeg') ) { //if FFMPEG exists
 
 
120
  update_option('wp_FMP_ffmpeg_exists', "true");
121
  $ffmpeg_exists = true;
122
  }
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
+ Version: 2.0.2
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
116
 
117
  if(function_exists('exec')) { $exec_enabled = true; }
118
 
119
+ $ffmpeg_path = get_option('wp_FMP_ffmpeg');
120
+
121
+ if ( $exec_enabled == true && ( file_exists($ffmpeg_path.'/ffmpeg') || file_exists($ffmpeg_path.'/ffmpeg.exe') ) ) { //if FFMPEG exists
122
  update_option('wp_FMP_ffmpeg_exists', "true");
123
  $ffmpeg_exists = true;
124
  }