[totem/gnome-3-6] browser-plugin: Fix MOV streams with hidden video



commit 110130e8fbb36128af21087f9b41839d06f3c1d7
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 10 18:01:15 2012 +0200

    browser-plugin: Fix MOV streams with hidden video
    
    We would treat MOV streams with no set height as "audio-only" because
    the undefined height (-1) is smaller than the smallest our controls bar
    can be. This code has apparently been broken since 2008, and nobody
    noticed?
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680714

 browser-plugin/totemPlugin.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index f820656..9d97e36 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -2151,7 +2151,7 @@ totemPlugin::Init (NPMIMEType mimetype,
 	}
 #endif /* TOTEM_GMP_PLUGIN */
 #if defined(TOTEM_NARROWSPACE_PLUGIN)
-	if (height <= 16 && !mControllerHidden) {
+	if (height > 0 && height <= 16 && !mControllerHidden) {
 		mAudioOnly = true;
 	}
 #endif /* TOTEM_NARROWSPACE_PLUGIN */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]