[vlma-devel] commit: PodcastController: Only announce programs which have been assigned a player. (Adrien Grand )
git version control
git at videolan.org
Fri Jul 4 16:17:49 CEST 2008
vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Fri Jul 4 15:52:55 2008 +0200| [231d9941c6b4488ec04e4debcc5648046fc4c081]
PodcastController: Only announce programs which have been assigned a player.
> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=231d9941c6b4488ec04e4debcc5648046fc4c081
---
.../vlma/web/service/PodcastController.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/vlma-webapp/src/main/java/org/videolan/vlma/web/service/PodcastController.java b/vlma-webapp/src/main/java/org/videolan/vlma/web/service/PodcastController.java
index 0c20cec..471dfc8 100644
--- a/vlma-webapp/src/main/java/org/videolan/vlma/web/service/PodcastController.java
+++ b/vlma-webapp/src/main/java/org/videolan/vlma/web/service/PodcastController.java
@@ -55,7 +55,9 @@ public class PodcastController implements Controller {
ModelAndView mav = new ModelAndView();
Map<Media, String> medias = new HashMap<Media, String>();
for (Media media : data.getMedias()) {
- if (media.getProgram() != null && media.getProgram().getStreamingStrategy().isEnabled(StreamingStrategy.Announcement.PODCAST)) {
+ if (media.getProgram() != null
+ && media.getProgram().getPlayer() != null
+ && media.getProgram().getStreamingStrategy().isEnabled(StreamingStrategy.Announcement.PODCAST)) {
medias.put(media, data.getUrlOfProgram(media.getProgram()));
}
}
More information about the vlma-devel
mailing list