Author: michiel
Date: 2009-07-06 23:11:11 +0200 (Mon, 06 Jul 2009)
New Revision: 36596

Modified:
   
mmbase/trunk/applications/streams/src/main/java/org/mmbase/streams/transcoders/FFMpegAnalyzer.java
Log:
of course if audio (or still undetermined), the node manager does not even have 
the field. So check for that

Modified: 
mmbase/trunk/applications/streams/src/main/java/org/mmbase/streams/transcoders/FFMpegAnalyzer.java
===================================================================
--- 
mmbase/trunk/applications/streams/src/main/java/org/mmbase/streams/transcoders/FFMpegAnalyzer.java
  2009-07-06 21:03:23 UTC (rev 36595)
+++ 
mmbase/trunk/applications/streams/src/main/java/org/mmbase/streams/transcoders/FFMpegAnalyzer.java
  2009-07-06 21:11:11 UTC (rev 36596)
@@ -54,7 +54,7 @@
         if (sourceNode.isNull("bitrate")) {
             log.info("This is an image");
             // have to think of up of something
-        } else if (sourceNode.isNull("width")) {
+        } else if (! sourceNode.getNodeManager().hasField("width")) {
             log.info("This is audio");
             util.toAudio(sourceNode, destNode);
         } else {

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to