Mercurial > audlegacy-plugins
comparison src/vorbis/fileinfo.c @ 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 | 324a6d834f32 |
children | 6a656a7f40fa |
comparison
equal
deleted
inserted
replaced
627:8829833d37bc | 628:8e1c653cd605 |
---|---|
232 vcedit_state *state; | 232 vcedit_state *state; |
233 vorbis_comment *comment; | 233 vorbis_comment *comment; |
234 | 234 |
235 if (!g_strncasecmp(vte.filename, "http://", 7)) | 235 if (!g_strncasecmp(vte.filename, "http://", 7)) |
236 return; | 236 return; |
237 if (!g_strncasecmp(vte.filename, "https://", 8)) | |
238 return; | |
237 | 239 |
238 state = vcedit_new_state(); | 240 state = vcedit_new_state(); |
239 | 241 |
240 g_mutex_lock(vf_mutex); | 242 g_mutex_lock(vf_mutex); |
241 if (init_files(state) < 0) { | 243 if (init_files(state) < 0) { |
310 vcedit_state *state; | 312 vcedit_state *state; |
311 vorbis_comment *comment; | 313 vorbis_comment *comment; |
312 | 314 |
313 if (!g_strncasecmp(vte.filename, "http://", 7)) | 315 if (!g_strncasecmp(vte.filename, "http://", 7)) |
314 return; | 316 return; |
317 if (!g_strncasecmp(vte.filename, "https://", 8)) | |
318 return; | |
315 | 319 |
316 state = vcedit_new_state(); | 320 state = vcedit_new_state(); |
317 | 321 |
318 g_mutex_lock(vf_mutex); | 322 g_mutex_lock(vf_mutex); |
319 if (init_files(state) < 0) { | 323 if (init_files(state) < 0) { |
903 pango_attr_list_unref(attrs); | 907 pango_attr_list_unref(attrs); |
904 } | 908 } |
905 else | 909 else |
906 gtk_window_present(GTK_WINDOW(window)); | 910 gtk_window_present(GTK_WINDOW(window)); |
907 | 911 |
908 if (!g_strncasecmp(vte.filename, "http://", 7)) | 912 if (!g_strncasecmp(vte.filename, "http://", 7) |
913 || !g_strncasecmp(vte.filename, "https://", 8)) | |
909 gtk_widget_set_sensitive(tag_frame, FALSE); | 914 gtk_widget_set_sensitive(tag_frame, FALSE); |
910 else | 915 else |
911 gtk_widget_set_sensitive(tag_frame, TRUE); | 916 gtk_widget_set_sensitive(tag_frame, TRUE); |
912 | 917 |
913 gtk_label_set_text(GTK_LABEL(bitrate_label), _("Bit rate:")); | 918 gtk_label_set_text(GTK_LABEL(bitrate_label), _("Bit rate:")); |