[gecko-mediaplayer] r509 committed - Switch plugin to streaming mode with #EXTM3U is found in the file

23 views
Skip to first unread message

codesite...@google.com

unread,
Aug 4, 2012, 12:15:58 PM8/4/12
to gecko-mediap...@googlegroups.com
Revision: 509
Author: kdekorte
Date: Sat Aug 4 09:15:46 2012
Log: Switch plugin to streaming mode with #EXTM3U is found in the file
http://code.google.com/p/gecko-mediaplayer/source/detail?r=509

Modified:
/trunk/ChangeLog
/trunk/src/plugin.cpp

=======================================
--- /trunk/ChangeLog Sat Jul 7 05:39:06 2012
+++ /trunk/ChangeLog Sat Aug 4 09:15:46 2012
@@ -1,4 +1,5 @@
Development
+ Switch plugin to streaming mode with #EXTM3U is found in the file
Clean up some depreciated symbol warnings
Convert plugin_list to use gm_log
Convert the majority of the code to use gm_log instead of printf
=======================================
--- /trunk/src/plugin.cpp Sat Jul 7 05:39:06 2012
+++ /trunk/src/plugin.cpp Sat Aug 4 09:15:46 2012
@@ -350,10 +350,14 @@
store = gm_pref_store_new("gecko-mediaplayer");
if (store != NULL) {
debug_level = gm_pref_store_get_int(store, DEBUG_LEVEL);
+ gm_log(debug_level, G_LOG_LEVEL_INFO, "debug_level = %i",
debug_level);
player_backend = gm_pref_store_get_string(store, PLAYER_BACKEND);
gm_log(debug_level, G_LOG_LEVEL_INFO, "Using player backend
of '%s'\n",
(player_backend == NULL) ? "gnome-mplayer" :
player_backend);
gm_pref_store_free(store);
+ } else {
+ gm_log(TRUE, G_LOG_LEVEL_INFO, "Unable to find preference store,
setting debug_level to 1");
+ debug_level = 1;
}


@@ -907,7 +911,7 @@
if (strstr((char *) buffer, "ICY 200 OK") != NULL
|| strstr((char *) buffer, "Content-length:") != NULL
|| strstr((char *) buffer, "<HTML>") != NULL || item->streaming ==
TRUE
- || strstr(item->src, "file://") != NULL) {
+ || strstr(item->src, "file://") != NULL || strstr((char *)
buffer, "#EXTM3U") != NULL) {
// If item is a block of jpeg images, just stream it
// || stream->lastmodified == 0) { this is not valid for many
sites

Reply all
Reply to author
Forward
0 new messages