[longomatch] Let the backend transform file paths into uris correctly



commit b12638f3749b810f0e8b9cd6b2fd59de69e5de88
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Nov 17 14:49:30 2014 +0100

    Let the backend transform file paths into uris correctly

 .../Converter/GstVideoConverter.cs                 |    3 ---
 LongoMatch.Multimedia/Editor/GstVideoSplitter.cs   |    2 --
 2 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Converter/GstVideoConverter.cs 
b/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
index c491e48..830a853 100644
--- a/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
+++ b/LongoMatch.Multimedia/Converter/GstVideoConverter.cs
@@ -231,9 +231,6 @@ namespace LongoMatch.Video.Converter {
                static extern bool gst_video_encoder_add_file (IntPtr raw, IntPtr filename, long duration);
                
                public void AddFile (string filename, long duration) {
-                       if (!filename.StartsWith(Uri.UriSchemeFile)) {
-                               filename = "file:///" + filename;
-                       }
                        IntPtr file = GLib.Marshaller.StringToPtrGStrdup(filename);
                        gst_video_encoder_add_file (Handle, file, duration);
                }
diff --git a/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs 
b/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
index d3ae8c2..17751fb 100644
--- a/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
+++ b/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
@@ -180,8 +180,6 @@ namespace LongoMatch.Video.Editor
 
                public void AddSegment (string filePath, long start, long duration, double rate, string 
title, bool hasAudio)
                {
-                       if (Environment.OSVersion.Platform == PlatformID.Win32NT)
-                               filePath = "file:///" + filePath;
                        gst_video_editor_add_segment (Handle, filePath, start, duration, rate, 
GLib.Marshaller.StringToPtrGStrdup (title), true);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]