From: Miguel F. <mig...@us...> - 2001-10-25 00:42:30
|
Update of /cvsroot/xine/xine-plugin/src In directory usw-pr-cvs1:/tmp/cvs-serv8917/src Modified Files: plugin.c Log Message: mimetype probing Index: plugin.c =================================================================== RCS file: /cvsroot/xine/xine-plugin/src/plugin.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- plugin.c 2001/10/24 13:32:09 1.3 +++ plugin.c 2001/10/25 00:42:27 1.4 @@ -64,7 +64,34 @@ char *NPP_GetMIMEDescription(void) { - return("video/mpeg: mpeg, mpg, mpe: MPEG animation;video/x-mpeg: mpeg, mpg, mpe: MPEG animation;audio/mpeg2: mp2: MPEG audio;audio/x-mpeg2: mp2: MPEG audio;audio/mpeg3: mp3: MPEG audio;audio/x-mpeg3: mp3: MPEG audio;audio/mpeg: mpa,abs,mpega: MPEG audio;audio/x-mpeg: mpa,abs,mpega: MPEG audio"); + char configfile[256]; + config_values_t*config; + char *identifiers; + char *mimetypes; + + snprintf (configfile, 255, "%s/.xinerc", getenv ("HOME")); + config = config_file_init (configfile); + + xine_list_demux_plugins (config, &identifiers, &mimetypes); + + if( strlen(mimetypes) ) + mimetypes[strlen(mimetypes)-1]=0; + + return mimetypes; + +/* return("video/mpeg: mpeg, mpg, mpe: MPEG animation;" + "video/x-mpeg: mpeg, mpg, mpe: MPEG animation;" + "audio/mpeg2: mp2: MPEG audio;" + "audio/x-mpeg2: mp2: MPEG audio;" + "audio/mpeg3: mp3: MPEG audio;" + "audio/x-mpeg3: mp3: MPEG audio;" + "audio/mpeg: mpa,abs,mpega: MPEG audio;" + "audio/x-mpeg: mpa,abs,mpega: MPEG audio;" + "video/quicktime: mov,qt: Quicktime animation;" + "video/x-quicktime: mov,qt: Quicktime animation;" + "video/msvideo: avi: AVI animation;" + "video/x-msvideo: avi: AVI animation" + );*/ } NPError NPP_GetValue(void *future, NPPVariable variable, void *value){ |