[totem/gnome-2-28] Add hack to allow playback of Apple trailers in the movie player



commit 010fda02df1cd3718996f0e3ff4e4a2f4dccec34
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 3 18:13:22 2009 +0000

    Add hack to allow playback of Apple trailers in the movie player

 src/totem-object.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index da4e79e..f1e22a4 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1712,6 +1712,12 @@ totem_action_set_mrl_with_warning (Totem *totem,
 		if (subtitle == NULL && totem->autoload_subs != FALSE)
 			autoload_sub = totem_uri_get_subtitle_uri (mrl);
 
+		/* HACK: Bad bad Apple */
+		if (g_str_has_prefix (mrl, "http://movies.apple.com";) != FALSE)
+			bacon_video_widget_set_user_agent (totem->bvw, "Quicktime/7.2.0");
+		else
+			bacon_video_widget_set_user_agent (totem->bvw, NULL);
+
 		totem_gdk_window_set_waiting_cursor (totem->win->window);
 		totem_try_restore_position (totem, mrl);
 		retval = bacon_video_widget_open (totem->bvw, mrl, subtitle ? subtitle : autoload_sub, &err);



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