summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_macosx.m
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-06-08 20:44:27 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-06-08 20:44:27 +0000
commit169715ef3e057ba83db5307c799e5b8543cc5d46 (patch)
tree212fd570b67cb050011f311a8faa9cd8ebcbdb37 /src/video_out/video_out_macosx.m
parent8afb108e2d6beab74685b610ba5295b56fa77d23 (diff)
downloadxine-lib-169715ef3e057ba83db5307c799e5b8543cc5d46.tar.gz
xine-lib-169715ef3e057ba83db5307c799e5b8543cc5d46.tar.bz2
a better approach to the module unload prevention
(when this works in OSX, we can remove the PLUGIN_NO_UNLOAD flag from video_out_macosx.m, but the support for this in the plugin loader seems to be a good idea anyway) CVS patchset: 6661 CVS date: 2004/06/08 20:44:27
Diffstat (limited to 'src/video_out/video_out_macosx.m')
-rw-r--r--src/video_out/video_out_macosx.m15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/video_out/video_out_macosx.m b/src/video_out/video_out_macosx.m
index 68a9de836..cb3dcc386 100644
--- a/src/video_out/video_out_macosx.m
+++ b/src/video_out/video_out_macosx.m
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_macosx.m,v 1.1 2004/06/05 16:06:13 jcdutton Exp $
+ * $Id: video_out_macosx.m,v 1.2 2004/06/08 20:44:27 mroi Exp $
*
* This output driver makes use of xine's objective-c video_output
* classes located in the macosx folder.
@@ -342,14 +342,9 @@ static vo_info_t vo_info_macosx = {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_VIDEO_OUT, 19, "macosx", XINE_VERSION_CODE, &vo_info_macosx, init_class },
+ /* work around the problem that dlclose() is not allowed to
+ * get rid of an image module which contains objective C code and simply
+ * crashes with a Trace/BPT trap when we try to do so */
+ { PLUGIN_VIDEO_OUT | PLUGIN_NO_UNLOAD, 19, "macosx", XINE_VERSION_CODE, &vo_info_macosx, init_class },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};
-
-/* Dirty hack to get around the problem that dlclose() is not allowed to
- * get rid of an image module which contains objective C code and simply
- * crashes with a Trace/BPT trap when we try to do so.
- * If this symbol if found in the library, dlclose() will be omitted.
- */
-int plugin_contains_objc_code = 1;
-