[totem] Prefer the stream URI when copying the location



commit eea5406f087a9a5f0bdb03155e119fd8e7152f79
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Apr 11 17:44:12 2010 +0100

    Prefer the stream URI when copying the location

 browser-plugin/totem-plugin-viewer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index d9fddfd..331b40f 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1185,7 +1185,9 @@ on_copy_location1_activate (GtkButton *button, TotemEmbedded *emb)
 	GtkClipboard *clip;
 	const char *uri;
 
-	if (emb->href_uri != NULL) {
+	if (emb->stream_uri != NULL) {
+		uri = emb->stream_uri;
+	} else if (emb->href_uri != NULL) {
 		uri = emb->href_uri;
 	} else {
 		uri = emb->current_uri;



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