[totem] Don't set a subtitle when none is passed in browser



commit fbe3f57ca149afc3572399e1ee0f693f960fc174
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 27 11:51:12 2009 +0000

    Don't set a subtitle when none is passed in browser
    
    Avoids errors trying to use webpages as subtitles.

 browser-plugin/totem-plugin-viewer.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 32e45ad..05aa0c7 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -637,7 +637,10 @@ totem_embedded_set_uri (TotemEmbedded *emb,
 	if (base_uri)
 		base_gfile = g_file_new_for_uri (base_uri);
 	emb->current_uri = totem_pl_parser_resolve_uri (base_gfile, uri);
-	emb->current_subtitle_uri = totem_pl_parser_resolve_uri (base_gfile, subtitle);
+	if (subtitle != NULL)
+		emb->current_subtitle_uri = totem_pl_parser_resolve_uri (base_gfile, subtitle);
+	else
+		emb->current_subtitle_uri = NULL;
 	if (base_gfile)
 		g_object_unref (base_gfile);
 	emb->is_browser_stream = (is_browser_stream != FALSE);



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