openbsd-ports/www/gecko-mediaplayer/patches/patch-src_plugin_cpp
2012-01-09 12:12:44 +00:00

30 lines
1.4 KiB
Plaintext

$OpenBSD: patch-src_plugin_cpp,v 1.9 2012/01/09 12:12:44 dcoppa Exp $
Remove useless printf's (upstream svn revision r491)
--- src/plugin.cpp.orig Mon Jan 9 12:51:12 2012
+++ src/plugin.cpp Mon Jan 9 12:52:15 2012
@@ -970,13 +970,10 @@ int32 CPlugin::Write(NPStream * stream, int32 offset,
}
if (!item->opened) {
if ((item->localsize >= (cache_size * 1024)) && (percent >= 0.2)) {
- printf("Setting to play because %i > %i\n", item->localsize, cache_size * 1024);
ok_to_play = TRUE;
}
if (ok_to_play == FALSE && (item->localsize > (cache_size * 2 * 1024))
&& (cache_size >= 512)) {
- printf("Setting to play because %i > %i (double cache)\n", item->localsize,
- cache_size * 2 * 1024);
ok_to_play = TRUE;
}
if (ok_to_play == FALSE) {
@@ -987,8 +984,6 @@ int32 CPlugin::Write(NPStream * stream, int32 offset,
}
if (item->bitrate > 0) {
if (item->localsize / item->bitrate >= 10 && (percent >= 0.2)) {
- printf("Setting to play becuase %i >= 10\n",
- item->localsize / item->bitrate);
ok_to_play = TRUE;
if (post_dom_events && this->id != NULL) {
postDOMEvent(mInstance, this->id, "qt_canplay");