Ticket #1448: wavplayback.patch

File wavplayback.patch, 1011 bytes (added by shrimp@…, 20 years ago)
Line 
1*** avfdecoder.cpp 2005-12-08 07:05:38.000000000 +0000
2--- ../../../../mythplugins-0.19/mythmusic/mythmusic/avfdecoder.cpp 2006-02-24 23:10:52.000000000 +0000
3***************
4*** 364,375 ****
5
6 bool avfDecoderFactory::supports(const QString &source) const
7 {
8! return (source.right(extension().length()).lower() == extension());
9 }
10
11 const QString &avfDecoderFactory::extension() const
12 {
13! static QString ext(".wma");
14 return ext;
15 }
16
17--- 364,387 ----
18
19 bool avfDecoderFactory::supports(const QString &source) const
20 {
21! bool res = false;
22! QStringList list = QStringList::split("|", extension());
23!
24! for (QStringList::Iterator it = list.begin(); it != list.end(); ++it)
25! {
26! if (*it == source.right((*it).length()).lower())
27! {
28! res = true;
29! break;
30! }
31! }
32!
33! return res;
34 }
35
36 const QString &avfDecoderFactory::extension() const
37 {
38! static QString ext(".wav|.wma");
39 return ext;
40 }
41