changeset 628:8e1c653cd605 trunk

[svn] - patch from Mark Glines to polish up https:// support.
author nenolod
date Sat, 10 Feb 2007 12:36:14 -0800
parents 8829833d37bc
children ee59ad236eb6
files ChangeLog src/alarm/alarm.c src/vorbis/fileinfo.c
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 10 12:06:11 2007 -0800
+++ b/ChangeLog	Sat Feb 10 12:36:14 2007 -0800
@@ -1,3 +1,10 @@
+2007-02-10 20:06:11 +0000  Tony Vroon <chainsaw@gentoo.org>
+  revision [1340]
+  Break out of the loop once we know the length. No using spinning around all day.
+  trunk/src/madplug/decoder.c |    4 ++--
+  1 file changed, 2 insertions(+), 2 deletions(-)
+
+
 2007-02-10 04:38:32 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1338]
   - error code must be initialized.
--- a/src/alarm/alarm.c	Sat Feb 10 12:06:11 2007 -0800
+++ b/src/alarm/alarm.c	Sat Feb 10 12:36:14 2007 -0800
@@ -858,7 +858,7 @@
        DEBUG("playlist is not blank, aparently\n");
        /* Is this a url? */
        /* Thanks Thomer */
-       if(!strncmp(playlist, "http://", 7))
+       if(!strncmp(playlist, "http://", 7) || !strncmp(playlist, "https://", 8))
        {
          /* Yes */
          DEBUG("This looks like a URL to me...\n");
--- a/src/vorbis/fileinfo.c	Sat Feb 10 12:06:11 2007 -0800
+++ b/src/vorbis/fileinfo.c	Sat Feb 10 12:36:14 2007 -0800
@@ -234,6 +234,8 @@
 
     if (!g_strncasecmp(vte.filename, "http://", 7))
         return;
+    if (!g_strncasecmp(vte.filename, "https://", 8))
+        return;
 
     state = vcedit_new_state();
 
@@ -312,6 +314,8 @@
 
     if (!g_strncasecmp(vte.filename, "http://", 7))
         return;
+    if (!g_strncasecmp(vte.filename, "https://", 8))
+        return;
 
     state = vcedit_new_state();
 
@@ -905,7 +909,8 @@
     else
         gtk_window_present(GTK_WINDOW(window));
 
-    if (!g_strncasecmp(vte.filename, "http://", 7))
+    if (!g_strncasecmp(vte.filename, "http://", 7)
+        || !g_strncasecmp(vte.filename, "https://", 8))
         gtk_widget_set_sensitive(tag_frame, FALSE);
     else
         gtk_widget_set_sensitive(tag_frame, TRUE);