Skip to content

Commit

Permalink
Log message if FFMPEG is missing; Copy video if FFMPEG missing
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ade committed Feb 28, 2017
1 parent 0ad8154 commit 55c097c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Content/Video.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ namespace XnaToFna {
public static partial class ContentHelper {

public static void UpdateVideo(string path, BinaryReader reader = null, BinaryWriter writer = null) {
if (!IsFFMPEGAvailable) return;
if (!IsFFMPEGAvailable) {
Log("[UpdateVideo] FFMPEG is missing - won't convert unsupported video files");
if (reader != null && writer != null)
reader.BaseStream.CopyTo(writer.BaseStream);
return;
}

// Rename the .xnb as it only causes conflicts.
string pathXnb = Path.ChangeExtension(path, "xnb");
Expand Down
1 change: 1 addition & 0 deletions src/Content/WaveBank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static class XWMAInfo {

public static void UpdateWaveBank(string path, BinaryReader reader, BinaryWriter writer) {
if (!IsFFMPEGAvailable) {
Log("[UpdateWaveBank] FFMPEG is missing - won't convert unsupported WaveBanks");
reader.BaseStream.CopyTo(writer.BaseStream);
return;
}
Expand Down

0 comments on commit 55c097c

Please sign in to comment.