openbsd-ports/x11/gnome-mplayer/patches/patch-src_main_c
dcoppa 368cfb12f6 Backport some bugfixes from upstream svn:
Bugfix: ATTRIBUTE_FORCE_CACHE not being processed
(upstream svn revision r2172)

Bugfix: correctly set/initialize the media_device attribute
(upstream svn revision r2165)

Fix handling of mouse, panel and controls visibility when
going to/returning from fullscreen (upstream svn r2167 - r2169)

Bugfix: 'f' not going to/returning from fullscreen
(upstream svn revision r2161)

Set CDDB media type as TYPE_CD
(upstream svn revision r2165)
2011-09-21 12:20:07 +00:00

28 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_main_c,v 1.12 2011/09/21 12:20:07 dcoppa Exp $
Raise event on incomplete QuickTime file, and mark it for retry
(fix apple.com/trailers) - upstream svn revision r2152
Set CDDB media type as TYPE_CD
(upstream svn revision r2165)
--- src/main.c.orig Mon Jun 27 16:59:45 2011
+++ src/main.c Wed Sep 21 13:31:40 2011
@@ -534,6 +534,7 @@ gint play_iter(GtkTreeIter * playiter, gint restart_se
idledata->width = width;
idledata->height = height;
+ idledata->retry_on_full_cache = FALSE;
idledata->cachepercent = -1.0;
g_strlcpy(idledata->info, uri, 1024);
set_media_info(idledata);
@@ -560,6 +561,8 @@ gint play_iter(GtkTreeIter * playiter, gint restart_se
} else if (g_str_has_prefix(uri, "dvd") || g_str_has_prefix(uri, "dvdnav")) {
gmtk_media_player_set_media_type(GMTK_MEDIA_PLAYER(media), TYPE_DVD);
} else if (g_str_has_prefix(uri, "cdda")) {
+ gmtk_media_player_set_media_type(GMTK_MEDIA_PLAYER(media), TYPE_CD);
+ } else if (g_str_has_prefix(uri, "cddb")) {
gmtk_media_player_set_media_type(GMTK_MEDIA_PLAYER(media), TYPE_CD);
} else if (g_str_has_prefix(uri, "vcd")) {
gmtk_media_player_set_media_type(GMTK_MEDIA_PLAYER(media), TYPE_VCD);