commit
599c898c0c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user