[gnome-subtitles] Temporary fix for #184 - Error when opening some videos at the same time as the subtitle file
- From: Pedro Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Temporary fix for #184 - Error when opening some videos at the same time as the subtitle file
- Date: Sat, 23 Oct 2021 20:49:24 +0000 (UTC)
commit 19e9dd3de7296be38461a4aed52a81eb5a0b799d
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sat Oct 23 21:49:01 2021 +0100
Temporary fix for #184 - Error when opening some videos at the same time as the subtitle file
src/GnomeSubtitles/Core/Base.cs | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/src/GnomeSubtitles/Core/Base.cs b/src/GnomeSubtitles/Core/Base.cs
index 039c094..5277bf8 100644
--- a/src/GnomeSubtitles/Core/Base.cs
+++ b/src/GnomeSubtitles/Core/Base.cs
@@ -224,7 +224,17 @@ public static class Base {
public static void Open (string path, Encoding encoding, Uri videoUri) {
OpenDocument(path, encoding);
- OpenVideo(videoUri);
+
+ //OpenVideo(videoUri); //FIXME
+ videoUriToOpenWithTimeout = videoUri; //FIXME
+ GLib.Timeout.Add(1000, OpenVideoWithTimeout); //FIXME
+ }
+
+ /* Nasty hack while there isn't a proper fix for #184 */
+ private static Uri videoUriToOpenWithTimeout = null;
+ private static bool OpenVideoWithTimeout() {
+ OpenVideo(videoUriToOpenWithTimeout);
+ return false;
}
public static void OpenTranslation (string path, Encoding encoding) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]