[longomatch] Don't overwrite the source file when remuxing
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't overwrite the source file when remuxing
- Date: Sun, 15 Sep 2013 10:43:21 +0000 (UTC)
commit cc9c847a6294516088b4147c4dadbd9bec8795b6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Sep 15 12:37:33 2013 +0200
Don't overwrite the source file when remuxing
LongoMatch.GUI.Multimedia/Gui/Utils/Remuxer.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/Utils/Remuxer.cs b/LongoMatch.GUI.Multimedia/Gui/Utils/Remuxer.cs
index 9040362..528c1ff 100644
--- a/LongoMatch.GUI.Multimedia/Gui/Utils/Remuxer.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/Utils/Remuxer.cs
@@ -55,6 +55,11 @@ namespace LongoMatch.Video.Utils
} else {
this.outputFilepath = Path.ChangeExtension(inputFile.FilePath,
GetExtension(muxer));
+ if (this.outputFilepath == inputFile.FilePath) {
+ this.outputFilepath = Path.ChangeExtension(inputFile.FilePath,
+ "1." +
GetExtension(muxer));
+ }
+
}
this.multimedia = new MultimediaFactory();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]