diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2011-07-26 02:22:57 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-11 20:28:35 -0300 |
commit | 9ed708b3ca71c9117c79f941cef9ede5c0c1892d (patch) | |
tree | ed3b6fb5d7e29d1d9268fc6dd3d3cfe2ba48848c /multimedia | |
parent | 75f2f02ae86a6a8462343013a3190718d9dbf453 (diff) |
multimedia/gecko-mediaplayer: Included some patches for Apple Trailers
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia')
3 files changed, 127 insertions, 2 deletions
diff --git a/multimedia/gecko-mediaplayer/gecko-mediaplayer-fixes.diff b/multimedia/gecko-mediaplayer/gecko-mediaplayer-fixes.diff new file mode 100644 index 0000000000000..2fa8a0ca8a7ff --- /dev/null +++ b/multimedia/gecko-mediaplayer/gecko-mediaplayer-fixes.diff @@ -0,0 +1,122 @@ +diff -ru gecko-mediaplayer-1.0.4-orig/ChangeLog gecko-mediaplayer-1.0.4/ChangeLog +--- gecko-mediaplayer-1.0.4-orig/ChangeLog 2011-07-01 12:40:50.000000000 -0400 ++++ gecko-mediaplayer-1.0.4/ChangeLog 2011-07-09 20:58:47.000000000 -0400 +@@ -1,3 +1,6 @@ ++Development ++ Improvements to the apple.com/trailers fix, caching now works properly ++ Fix regression at apple.com/trailers, side effect of fully caching the file for now + 1.0.4 + Fix problem where file is downloaded before gnome-mplayer is started (locally cached) + Added Portuguese translation +diff -ru gecko-mediaplayer-1.0.4-orig/src/memmem_compat.cpp gecko-mediaplayer-1.0.4/src/memmem_compat.cpp +--- gecko-mediaplayer-1.0.4-orig/src/memmem_compat.cpp 2011-06-06 17:47:44.000000000 -0400 ++++ gecko-mediaplayer-1.0.4/src/memmem_compat.cpp 2011-07-09 20:58:24.000000000 -0400 +@@ -14,7 +14,7 @@ + + You should have received a copy of the GNU General Public License + along with this file; if not, write to the Free Software +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, ++ Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, + USA. */ + + +diff -ru gecko-mediaplayer-1.0.4-orig/src/plugin.cpp gecko-mediaplayer-1.0.4/src/plugin.cpp +--- gecko-mediaplayer-1.0.4-orig/src/plugin.cpp 2011-06-20 11:00:33.000000000 -0400 ++++ gecko-mediaplayer-1.0.4/src/plugin.cpp 2011-07-09 20:57:50.000000000 -0400 +@@ -1320,7 +1320,7 @@ + ListItem *item = (ListItem *) clientp; + gdouble percent, rate; + gchar *text; +- gboolean ok_to_play; ++ gboolean ok_to_play = FALSE; + gint id; + gboolean ready; + gboolean newwindow; +@@ -1364,8 +1364,11 @@ + rate); + } + send_signal_with_string(plugin, item, "SetProgressText", text); +- if (!item->opened) +- send_signal_with_string(plugin, item, "SetURL", item->src); ++ if (!item->opened) { ++ //open_location (plugin, item, TRUE); ++ //item->opened = TRUE; ++ //send_signal_with_string(plugin, item, "SetURL", item->src); ++ } + if (plugin->post_dom_events && plugin->id != NULL) { + postDOMEvent(plugin->mInstance, plugin->id, "qt_progress"); + postDOMEvent(plugin->mInstance, plugin->id, "qt_durationchange"); +@@ -1376,6 +1379,7 @@ + item->lastsize = item->localsize; + } + } ++ + if (!item->opened) { + if ((item->localsize >= (plugin->cache_size * 1024)) && (percent >= 0.2)) { + printf("Setting to play because %i > %i\n", item->localsize, +@@ -1391,7 +1395,7 @@ + if (ok_to_play == FALSE) { + if (item->bitrate == 0 && item->bitrate_requests < 5 + && ((gint) (percent * 100) > item->bitrate_requests)) { +- item->bitrate = request_bitrate(plugin, item, item->local); ++ //item->bitrate = request_bitrate(plugin, item, item->local); + item->bitrate_requests++; + } + if (item->bitrate > 0) { +@@ -1407,6 +1411,7 @@ + } + + } ++ + // if not opened, over cache level and not an href target then try and open it + if ((!item->opened) && ok_to_play == TRUE) { + id = item->controlid; +@@ -1418,6 +1423,7 @@ + if (!item->streaming) { + printf("in progress_callback\n"); + plugin->playlist = list_parse_qt(plugin->playlist, item); ++ plugin->playlist = list_parse_qt2(plugin->playlist, item); + plugin->playlist = list_parse_asx(plugin->playlist, item); + plugin->playlist = list_parse_qml(plugin->playlist, item); + plugin->playlist = list_parse_ram(plugin->playlist, item); +@@ -1456,6 +1462,7 @@ + } + g_free(path); + } ++ + + } + +@@ -1493,13 +1500,14 @@ + + } + fclose(local); +- printf("fetched %s to %s\n", item->src, item->local); ++ printf("fetched %s to %s opened = %i\n", item->src, item->local, item->opened); ++ send_signal_with_double(plugin, item, "SetCachePercent", 1.0); + send_signal_with_double(plugin, item, "SetCachePercent", 0.0); + item->retrieved = TRUE; + } + + +- if ((!item->opened)) { ++ if (!item->opened) { + id = item->controlid; + path = g_strdup(item->path); + ready = item->playerready; +@@ -1509,13 +1517,14 @@ + if (!item->streaming) { + printf("in CURLGetURLNotify\n"); + plugin->playlist = list_parse_qt(plugin->playlist, item); ++ plugin->playlist = list_parse_qt2(plugin->playlist, item); + plugin->playlist = list_parse_asx(plugin->playlist, item); + plugin->playlist = list_parse_qml(plugin->playlist, item); + plugin->playlist = list_parse_ram(plugin->playlist, item); + } + // printf("item->play = %i\n", item->play); + // printf("item->src = %i\n", item->src); +- // printf("calling open_location from Write\n"); ++ // printf("calling open_location from CURLGetURLNotify\n"); + if (item->play) { + send_signal_with_integer(plugin, item, "SetGUIState", PLAYING); + open_location(plugin, item, TRUE); diff --git a/multimedia/gecko-mediaplayer/gecko-mediaplayer.SlackBuild b/multimedia/gecko-mediaplayer/gecko-mediaplayer.SlackBuild index 9723468f17936..f73ad7ce446eb 100644 --- a/multimedia/gecko-mediaplayer/gecko-mediaplayer.SlackBuild +++ b/multimedia/gecko-mediaplayer/gecko-mediaplayer.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=gecko-mediaplayer VERSION=${VERSION:-1.0.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -53,6 +53,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ -o -perm 400 \) -exec chmod 644 {} \; +# Misc fixes that did not make it into 1.0.4 +patch -p1 < $CWD/gecko-mediaplayer-fixes.diff + # If GCONF=YES above, then enable gconf; otherwise, disable it. if [ "$GCONF" = "YES" ]; then do_gconf="with" diff --git a/multimedia/gecko-mediaplayer/gecko-mediaplayer.info b/multimedia/gecko-mediaplayer/gecko-mediaplayer.info index 2d9fa77de6d83..c7ce64ceedb94 100644 --- a/multimedia/gecko-mediaplayer/gecko-mediaplayer.info +++ b/multimedia/gecko-mediaplayer/gecko-mediaplayer.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Phillip Warner" EMAIL="pc_warner@yahoo.com" -APPROVED="dsomero" +APPROVED="rworkman" |