mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
Fix the way file uri is set in win32
This commit is contained in:
parent
fa8800ba56
commit
b689dd7e7b
1 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
// Authors
|
// Authors
|
||||||
// Copyright (C) 2008 Paul Burton <paulburton89@gmail.com>
|
// Copyright (C) 2008 Paul Burton <paulburton89@gmail.com>
|
||||||
|
// Copyright (C) 2010 Andoni Morales <ylatuya@gmail.com>
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
@ -162,7 +163,17 @@ public class MainWindow : Gtk.Window {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_playbin["uri"] = "file://" + dialog.Filename;
|
switch (System.Environment.OSVersion.Platform) {
|
||||||
|
case PlatformID.Unix:
|
||||||
|
_playbin["uri"] = "file://" + dialog.Filename;
|
||||||
|
break;
|
||||||
|
case PlatformID.Win32NT:
|
||||||
|
case PlatformID.Win32S:
|
||||||
|
case PlatformID.Win32Windows:
|
||||||
|
case PlatformID.WinCE:
|
||||||
|
_playbin["uri"] = "file:///" + dialog.Filename.Replace("\\","/");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
StateChangeReturn sret = _playbin.SetState (Gst.State.Playing);
|
StateChangeReturn sret = _playbin.SetState (Gst.State.Playing);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue