[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: problems with KTrader + audio/x-vorbis
From:       Rolf Magnus <ramagnus () t-online ! de>
Date:       2002-07-28 23:51:15
[Download RAW message or body]

On Monday 29 July 2002 00:08, Gioele Barabucci wrote:

> 
> But what I got is this [noatun playing a .ogg file]:
> 
> KFileMetaInfo: KFileMetaInfo( /musicCD/R.E.M./Green/01 - Pop Song 89.ogg,
> audio/x-vorbis, what )
> KFileMetaInfo: mimetype is audio/x-vorbis
> KFileMetaInfo: need to look for a plugin to load
> kio (KTrader): KServiceTypeProfile::offers( audio/x-vorbis,KFilePlugin )
> kio (KTrader): No profile, using KServiceType::offers, result: 3 offers
> kio (KTrader): No offers, or none allowed as default
> KFileMetaInfo: no valid service found
> KFileMetaInfo: No mimetype info for audio/x-vorbis
> 
> any suggestion before I fully refert this set of commits?

So you switched the mimetype for ogg/vorbis files. This output comes from the 
ogg/vorbis kfile-plugin in kdemultimedia/kfile-plugins/ogg (I guess that's 
the wrong name then - it extracts the vorbis comments, but I think it only 
works with ogg/vorbis). It will not be found if the mimetype changed. The 
following (rather simple) patch should fix it:

Index: kfile_ogg.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/kfile-plugins/ogg/kfile_ogg.cpp,v
retrieving revision 1.21
diff -u -3 -p -B -w -r1.21 kfile_ogg.cpp
--- kfile_ogg.cpp       2002/04/24 12:33:14     1.21
+++ kfile_ogg.cpp       2002/07/28 23:43:03
@@ -67,7 +67,7 @@ KOggPlugin::KOggPlugin( QObject *parent,
 {
     kdDebug(7034) << "ogg plugin\n";

-    KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-ogg" );
+    KFileMimeTypeInfo* info = addMimeTypeInfo( "audio/x-vorbis" );

     KFileMimeTypeInfo::GroupInfo* group = 0;

Index: kfile_ogg.desktop
===================================================================
RCS file: /home/kde/kdemultimedia/kfile-plugins/ogg/kfile_ogg.desktop,v
retrieving revision 1.36
diff -u -3 -p -B -w -r1.36 kfile_ogg.desktop
--- kfile_ogg.desktop   2002/07/27 11:27:57     1.36
+++ kfile_ogg.desktop   2002/07/28 23:43:03
@@ -35,6 +35,6 @@ Name[xx/messages/kdemultimedia/desktop_k
 Name[zu/messages/kdemultimedia/desktop_kdemultimedia.po]=Ulwazi lwe OGG
 ServiceTypes=KFilePlugin
 X-KDE-Library=kfile_ogg
-MimeType=application/x-ogg
+MimeType=audio/x-vorbis
 PreferredGroups=Comment,Technical
 
PreferredItems=Title,Artist,Album,Tracknumber,Genre,Bitrate,Length,Date,Description,Or \
ganization,Channels,UpperBitrate,LowerBitrate,NominalBitrate,Location,Copyright,Version



> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic