From 88584e824dc4d0a4a250574f274d7f999d83d36d Mon Sep 17 00:00:00 2001 From: Harm van der Heijden Date: Sun, 16 Dec 2001 19:05:44 +0000 Subject: merged dxr3 and dxr3enc drivers. Will autmatically use hardware mpeg decoding if using the dxr3 decoder plugin, uses on-the-fly mpeg encoding otherwise (provided encoding support is compiled in). some remarks: - dxr3enc is no more. I've added some transition code in loadplugins.c (look for the IGNORE_DXR3ENC) to prevent loading a stale dxr3enc plugin from a previous install and to print a message if someone tries to run xine -V dxr3enc. - small updates to configure.in and _xine.m4. Mostly about the messages, no new checks or anything. - both dxr3_vo_standard.c and dxr3_vo_encoder.c are no more. The one and only dxr3 video out driver is aptly named dxr3_video_out.c CVS patchset: 1256 CVS date: 2001/12/16 19:05:44 --- src/xine-engine/load_plugins.c | 46 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/load_plugins.c') diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 61d00b732..b7b76e6ab 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -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: load_plugins.c,v 1.59 2001/11/30 00:53:51 f1rmb Exp $ + * $Id: load_plugins.c,v 1.60 2001/12/16 19:05:44 hrm Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -51,6 +51,15 @@ #define LOAD_LOG */ +/* transition code; between xine 0.9.7 and 0.9.8, the dxr3enc driver + * was integrated in the dxr3 driver and no longer exists as a seperate + * plugin. upgraded installs may have an old dxr3enc driver left in the + * plugins dir, which we do not want to load. this define activates + * some code to check for this and print warnings. + * should probably be removed for version 1.0 + * --- Harm van der Heijden */ +#define IGNORE_DXR3ENC 1 + extern int errno; static char *plugin_name; @@ -605,6 +614,16 @@ char **xine_list_video_output_plugins (int visual_type) { /*printf ("load_plugins: found a video output plugin: %s\n", dir_entry->d_name); */ +#if IGNORE_DXR3ENC + if (! strncasecmp(dir_entry->d_name, + XINE_VIDEO_OUT_PLUGIN_PREFIXNAME "dxr3enc", + XINE_VIDEO_OUT_PLUGIN_PREFIXNAME_LENGTH + 7)) + { + printf("(ignoring obsolete dxr3enc driver)"); + continue; + } +#endif + sprintf (str, "%s/%s", XINE_PLUGINDIR, dir_entry->d_name); plugin_name = str; @@ -683,7 +702,20 @@ vo_driver_t *xine_load_video_output_plugin(config_values_t *config, int visual_type, void *visual) { DIR *dir; vo_driver_t *vod; - + +#if IGNORE_DXR3ENC + if (! strcasecmp(id, "dxr3enc")) { + printf( /* big poo poo */ +"load_plugins: *************************************************************\n" +"load_plugins: WARNING: video out driver \"dxr3enc\" no longer exists.\n" +"load_plugins: the mpeg encoding output is now integrated in the \"dxr3\"\n" +"load_plugins: driver.\n" +"load_plugins: *************************************************************\n" + ); + return 0; + } +#endif + dir = opendir (XINE_PLUGINDIR); if (dir) { @@ -702,6 +734,16 @@ vo_driver_t *xine_load_video_output_plugin(config_values_t *config, && (dir_entry->d_name[nLen-2]=='s') && (dir_entry->d_name[nLen-1]=='o'))) { +#if IGNORE_DXR3ENC + if (! strncasecmp(dir_entry->d_name, + XINE_VIDEO_OUT_PLUGIN_PREFIXNAME "dxr3enc", + XINE_VIDEO_OUT_PLUGIN_PREFIXNAME_LENGTH + 7)) + { + printf("load_plugins: ignoring obsolete dxr3enc driver.\n"); + continue; + } +#endif + sprintf (str, "%s/%s", XINE_PLUGINDIR, dir_entry->d_name); if(!(plugin = dlopen (str, RTLD_LAZY))) { -- cgit v1.2.3