Merge pull request #996 from MediaBrowser/master

Merge master changes
This commit is contained in:
Luke 2015-01-31 22:33:08 -05:00
commit 599c898c0c
4 changed files with 17 additions and 9 deletions

View file

@ -155,7 +155,7 @@ namespace MediaBrowser.Api.Playback
private byte[] GetBytes(int value)
{
byte[] bytes = BitConverter.GetBytes(value);
if (BitConverter.IsLittleEndian)
if (!BitConverter.IsLittleEndian)
Array.Reverse(bytes);
return bytes;
}

View file

@ -503,7 +503,21 @@ namespace MediaBrowser.MediaEncoding.Encoder
process.Start();
var ranToCompletion = process.WaitForExit(120000);
// Need to give ffmpeg enough time to make all the thumbnails, which could be a while,
// but we still need to detect if the process hangs.
// Making the assumption that as long as new jpegs are showing up, everything is good.
bool isResponsive = true;
int lastCount = 0;
while (isResponsive && !process.WaitForExit(120000))
{
int jpegCount = Directory.GetFiles(targetDirectory, "*.jpg").Count();
isResponsive = (jpegCount > lastCount);
lastCount = jpegCount;
}
bool ranToCompletion = process.HasExited;
if (!ranToCompletion)
{

View file

@ -735,12 +735,6 @@
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\images\mblogoicon.png">
<Link>Resources\dashboard-ui\css\images\mblogoicon.png</Link>
</BundleResource>
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\images\mblogotextblack.png">
<Link>Resources\dashboard-ui\css\images\mblogotextblack.png</Link>
</BundleResource>
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\images\mblogotextwhite.png">
<Link>Resources\dashboard-ui\css\images\mblogotextwhite.png</Link>
</BundleResource>
<BundleResource Include="..\MediaBrowser.WebDashboard\dashboard-ui\css\images\rightarrow.png">
<Link>Resources\dashboard-ui\css\images\rightarrow.png</Link>
</BundleResource>

View file

@ -67,7 +67,7 @@ namespace MediaBrowser.Server.Mac
return list;
}
public void AuthorizeServer(int udpPort, int httpServerPort, string tempDirectory)
public void AuthorizeServer(int udpPort, int httpServerPort, int httpsPort, string tempDirectory)
{
}