Author: pebender
Date: Wed Jun 3 14:18:01 2009
New Revision: 4885
Added:
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/checksums
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/files/
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/files/MPlayer-mt-94985fa9745e2affd0cf3145fa35cb8ae87e7848.patch
Modified:
trunk/gar-minimyth/html/minimyth/document-changelog.txt
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/Makefile
Log:
- Patched MPlayer (SVN version) so that it has multi-threading support.
Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt Wed Jun 3
14:18:01 2009
@@ -113,6 +113,7 @@
Modified mediaplayers
- Modified mplayer-vld so that it uses the system liba52.
- Patched FFmpeg so that it has multi-threading support.
+ - Patched MPlayer (SVN version) so that it has multi-threading support.
Modified udev
- Modified udev scripts so that they use the new blkid rather than the
Modified: trunk/gar-minimyth/script/mediaplayers/mplayer-svn/Makefile
==============================================================================
--- trunk/gar-minimyth/script/mediaplayers/mplayer-svn/Makefile (original)
+++ trunk/gar-minimyth/script/mediaplayers/mplayer-svn/Makefile Wed Jun 3
14:18:01 2009
@@ -4,6 +4,7 @@
MASTER_SITES = svn://svn.mplayerhq.hu/mplayer/trunk/
SOURCEPKG = lib/ffmpeg lib/libdvdnav lib/libdvdread
DISTFILES = $(DISTNAME).tar.bz2
+PATCHFILES = $(GARNAME)-mt-94985fa9745e2affd0cf3145fa35cb8ae87e7848.patch
LICENSE = mplayer
mplayer_LICENSE_TEXT = $(WORKSRC)/Copyright
Added: trunk/gar-minimyth/script/mediaplayers/mplayer-svn/checksums
==============================================================================
--- (empty file)
+++ trunk/gar-minimyth/script/mediaplayers/mplayer-svn/checksums Wed Jun
3
14:18:01 2009
@@ -0,0 +1 @@
+9456829be83f292b05248e071803c88b
download/MPlayer-mt-94985fa9745e2affd0cf3145fa35cb8ae87e7848.patch
Added:
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/files/MPlayer-mt-94985fa9745e2affd0cf3145fa35cb8ae87e7848.patch
==============================================================================
--- (empty file)
+++
trunk/gar-minimyth/script/mediaplayers/mplayer-svn/files/MPlayer-mt-94985fa9745e2affd0cf3145fa35cb8ae87e7848.patch
Wed Jun 3 14:18:01 2009
@@ -0,0 +1,38 @@
+diff -Naur MPlayer-29333-old/libmpcodecs/vd_ffmpeg.c
MPlayer-29333-new/libmpcodecs/vd_ffmpeg.c
+--- MPlayer-29333-old/libmpcodecs/vd_ffmpeg.c 2009-05-31
18:00:11.000000000 -0700
++++ MPlayer-29333-new/libmpcodecs/vd_ffmpeg.c 2009-06-03
13:57:17.000000000 -0700
+@@ -145,7 +145,12 @@
+ avcodec_flush_buffers(avctx);
+ return CONTROL_TRUE;
+ case VDCTRL_QUERY_UNSEEN_FRAMES:
+- return avctx->has_b_frames + 10;
++ {
++ int thread_delay = 0;
++ if(avctx->active_thread_type&FF_THREAD_FRAME)
++ thread_delay = avctx->thread_count - 1;
++ return avctx->has_b_frames + thread_delay + 10;
++ }
+ }
+ return CONTROL_UNKNOWN;
+ }
+diff -Naur MPlayer-29333-old/libvo/vo_corevideo.m
MPlayer-29333-new/libvo/vo_corevideo.m
+--- MPlayer-29333-old/libvo/vo_corevideo.m 2009-05-31 18:00:26.000000000
-0700
++++ MPlayer-29333-new/libvo/vo_corevideo.m 2009-06-03 13:57:17.000000000
-0700
+@@ -466,6 +466,8 @@
+ NSRect frame;
+ CVReturn error = kCVReturnSuccess;
+
++ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
++
+ //config window
+ aspect((int *)&d_width, (int *)&d_height,A_NOZOOM);
+ frame = NSMakeRect(0, 0, d_width, d_height);
+@@ -508,6 +510,8 @@
+
+ if(vo_ontop)
+ [mpGLView ontop];
++
++ [pool release];
+ }
+
+ /*
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---