Author: andre Date: 2010-03-25 17:38:53 +0100 (Thu, 25 Mar 2010) New Revision: 41618
Modified: mmbase/branches/MMBase-1_9/applications/streams/src/main/java/org/mmbase/streams/transcoders/AnalyzerUtils.java Log: setting field audio codec Modified: mmbase/branches/MMBase-1_9/applications/streams/src/main/java/org/mmbase/streams/transcoders/AnalyzerUtils.java =================================================================== --- mmbase/branches/MMBase-1_9/applications/streams/src/main/java/org/mmbase/streams/transcoders/AnalyzerUtils.java 2010-03-25 15:52:02 UTC (rev 41617) +++ mmbase/branches/MMBase-1_9/applications/streams/src/main/java/org/mmbase/streams/transcoders/AnalyzerUtils.java 2010-03-25 16:38:53 UTC (rev 41618) @@ -389,15 +389,22 @@ if (source.getNodeManager().hasField("channels") && updateSource) { if (source.getIntValue("channels") < 0) source.setIntValue("channels", ch); - if (source.getIntValue("codec") < 0) { + + if (source.getNodeManager().hasField("acodec") && source.getIntValue("acodec") < 0) { + source.setIntValue("acodec", libtoCodec(m.group(1)).toInt() ); + } else if (source.getIntValue("codec") < 0) { source.setIntValue("codec", libtoCodec(m.group(1)).toInt() ); } } if (dest != null) { if (dest.getIntValue("channels") < 0) dest.setIntValue("channels", ch); - if (dest.getIntValue("codec") < 0) { + + if (dest.getNodeManager().hasField("acodec") && dest.getIntValue("acodec") < 0) { + dest.setIntValue("acodec", libtoCodec(m.group(1)).toInt() ); + } else if (source.getIntValue("codec") < 0) { dest.setIntValue("codec", libtoCodec(m.group(1)).toInt() ); } + } return true; _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs