summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 73b983cd..4c35d0e3 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c,v 1.64 2009-06-01 14:04:42 phintuka Exp $
+ * $Id: menu.c,v 1.65 2009-08-03 12:00:52 phintuka Exp $
*
*/
@@ -254,8 +254,18 @@ eOSState cMenuBrowseFiles::Open(bool ForceOpen, bool Parent, bool Queue)
cControl::Launch(new cXinelibDvdPlayerControl(f));
return osEnd;
}
- if(ForceOpen && GetCurrent()->IsDir() && !GetCurrent()->IsDvd()) {
- /* play all files */
+ if(!ForceOpen && GetCurrent()->IsBluRay()) {
+#if 0
+ /* play bd */
+ cString f = cString::sprintf("bd:%s/%s", m_CurrentDir, GetCurrent()->Name());
+ cControl::Shutdown();
+ cControl::Launch(new cXinelibBdPlayerControl(f));
+ return osEnd;
+#endif
+ }
+ if(ForceOpen && GetCurrent()->IsDir() &&
+ !GetCurrent()->IsDvd() && !GetCurrent()->IsBluRay()) {
+ /* play all files */
if(m_Mode != ShowImages) {
if(m_OnlyQueue && !Queue)
@@ -364,7 +374,8 @@ bool cMenuBrowseFiles::ScanDir(const char *DirName)
if(m_Mode == ShowImages || m_Mode == ShowMusic)
Add(new cFileListItem(e->d_name, true));
else
- Add(new cFileListItem(e->d_name, true, false, false, xc.IsDvdFolder(buffer)));
+ Add(new cFileListItem(e->d_name, true, false, false,
+ xc.IsDvdFolder(buffer), xc.IsBluRayFolder(buffer)));
// regular files
} else if(e->d_name[0] != '.') {