javauis/mmapi_qt/baseline/javasrc.emc/com/nokia/microedition/media/ManagerImpl.java
equal
deleted
inserted
replaced
513 if (aSource == null) |
513 if (aSource == null) |
514 { |
514 { |
515 throw new IllegalArgumentException("DataSource is null."); |
515 throw new IllegalArgumentException("DataSource is null."); |
516 } |
516 } |
517 aSource.connect(); // Ensure that external source is connected. |
517 aSource.connect(); // Ensure that external source is connected. |
|
518 Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"ManagerImpl createInternalPlayer after connect "); |
518 if (aSource.getStreams() == null || |
519 if (aSource.getStreams() == null || |
519 aSource.getStreams().length == 0) |
520 aSource.getStreams().length == 0) |
520 { |
521 { |
521 // There must be atleast one stream in the DataSource |
522 // There must be atleast one stream in the DataSource |
522 throw new MediaException( |
523 throw new MediaException( |
534 } |
535 } |
535 |
536 |
536 InternalPlayer player = null; |
537 InternalPlayer player = null; |
537 Enumeration plugins = iPlugIns.elements(); |
538 Enumeration plugins = iPlugIns.elements(); |
538 // Loop through all plugins, stop if player was created |
539 // Loop through all plugins, stop if player was created |
|
540 Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"ManagerImpl - createinternalplayer - plugins has"+iPlugIns.size()); |
539 while (plugins.hasMoreElements() && |
541 while (plugins.hasMoreElements() && |
540 (player == null)) |
542 (player == null)) |
541 { |
543 { |
542 PlugIn tmp = (PlugIn)plugins.nextElement(); |
544 PlugIn tmp = (PlugIn)plugins.nextElement(); |
|
545 |
543 player = tmp.createPlayer(bdc); |
546 player = tmp.createPlayer(bdc); |
544 } |
547 } |
545 |
548 |
546 if (player == null) |
549 if (player == null) |
547 { |
550 { |