Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Visual Studio projects to include latest changes.
- Loading branch information
Showing
33 changed files
with
1,046 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
#pragma once | ||
|
||
#include "compat.h" | ||
|
||
__inline unsigned int usleep( unsigned int us ) | ||
{ | ||
Sleep( (us + 999) / 1000 ); | ||
return 0; | ||
} | ||
|
||
__inline int close( int fd ) | ||
{ | ||
return _close( fd ); | ||
} | ||
|
||
__inline int write( int fd, const void *buffer, unsigned int count ) | ||
{ | ||
return _write( fd, buffer, count ); | ||
} | ||
|
||
// This doesn't belong here, but helps minimize changes to xine_demux_sputext.cpp | ||
|
||
#define strncasecmp _strnicmp | ||
#define strcasecmp _stricmp | ||
|
||
typedef __int64 off64_t; | ||
#pragma once | ||
|
||
#include "compat.h" | ||
#include "stdint.h" | ||
|
||
__inline unsigned int usleep( unsigned int us ) | ||
{ | ||
Sleep( (us + 999) / 1000 ); | ||
return 0; | ||
} | ||
|
||
__inline int close( int fd ) | ||
{ | ||
return _close( fd ); | ||
} | ||
|
||
__inline int write( int fd, const void *buffer, unsigned int count ) | ||
{ | ||
return _write( fd, buffer, count ); | ||
} | ||
|
||
// This doesn't belong here, but helps minimize changes to xine_demux_sputext.cpp | ||
|
||
#define strncasecmp _strnicmp | ||
#define strcasecmp _stricmp | ||
|
||
typedef __int64 off64_t; | ||
|
||
#ifndef MAX | ||
#define MAX( a, b ) ((a>b)?a:b) | ||
#endif | ||
|
||
#ifndef MIN | ||
#define MIN( a, b ) ((a<b)?a:b) | ||
#endif |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#include <QHash> | ||
|
||
#include "bluraymetadata.h" | ||
#include "mythdirs.h" | ||
|
||
BlurayMetadata::BlurayMetadata(const QString path) : | ||
m_bdnav(NULL), m_metadata(NULL), | ||
m_title(QString()), m_alttitle(QString()), | ||
m_language(QString()), m_discnumber(0), | ||
m_disctotal(0), m_path(path), | ||
m_images(QStringList()), m_topMenuSupported(false), | ||
m_firstPlaySupported(false), m_numHDMVTitles(0), | ||
m_numBDJTitles(0), m_numUnsupportedTitles(0), | ||
m_aacsDetected(false), m_libaacsDetected(false), | ||
m_aacsHandled(false), m_bdplusDetected(false), | ||
m_libbdplusDetected(false), m_bdplusHandled(false) | ||
{ | ||
} | ||
|
||
BlurayMetadata::~BlurayMetadata() | ||
{ | ||
} | ||
|
||
bool BlurayMetadata::OpenDisc(void) | ||
{ | ||
return false; | ||
} | ||
|
||
bool BlurayMetadata::ParseDisc(void) | ||
{ | ||
return false; | ||
} | ||
|
||
void BlurayMetadata::toMap(MetadataMap &metadataMap) | ||
{ | ||
metadataMap["title" ] = m_title; | ||
metadataMap["alttitle" ] = m_alttitle; | ||
metadataMap["language" ] = m_language; | ||
|
||
metadataMap["discnumber"] = QString::number(m_discnumber); | ||
metadataMap["disctotal" ] = QString::number(m_disctotal); | ||
metadataMap["discseries"] = QObject::tr("%1 of %2") | ||
.arg(m_discnumber) | ||
.arg(m_disctotal); | ||
|
||
metadataMap["numtitles" ] = m_titles.count(); | ||
metadataMap["numthumbs" ] = m_images.count(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.