internetradio2.0/dataprovidersrc/irhttpdataprovider.cpp
changeset 11 f683e24efca3
parent 3 ee64f059b8e1
child 12 608f67c22514
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
   738         //supported play formats
   738         //supported play formats
   739         const RMMFFormatImplInfoArray &pf=controllers[i]->PlayFormats();
   739         const RMMFFormatImplInfoArray &pf=controllers[i]->PlayFormats();
   740 		TInt pfCount = pf.Count();
   740 		TInt pfCount = pf.Count();
   741         for(ii=0;ii<pf.Count();ii++)
   741         for(ii=0;ii<pf.Count();ii++)
   742             {
   742             {
   743             TBuf<KSize> z;
   743             RBuf z;
   744             TBuf<KSize> z1;
   744             RBuf z1;
   745             TBool first;
   745             TBool first;
   746             //file extensions
   746             //file extensions
   747             const CDesC8Array &fe=pf[ii]->SupportedFileExtensions();
   747             const CDesC8Array &fe=pf[ii]->SupportedFileExtensions();
   748             first=TRUE;
   748             first=TRUE;
       
   749             z.CreateL(KSize);
       
   750             z.CleanupClosePushL();
       
   751             z1.CreateL(KSize);
       
   752             z1.CleanupClosePushL();
   749             z1.Zero();
   753             z1.Zero();
   750             for(j=0;j<fe.Count();j++)
   754             for(j=0;j<fe.Count();j++)
   751                 {
   755                 {
   752                 _LIT(KNone,", ");
   756                 _LIT(KNone,", ");
   753                 if(!first)z1.Append(KNone);
   757                 if(!first)z1.Append(KNone);
   785 	                	audioMIMEs.Append(KComma);
   789 	                	audioMIMEs.Append(KComma);
   786 	                	}
   790 	                	}
   787                 	tempD++;	                	
   791                 	tempD++;	                	
   788 	                }
   792 	                }
   789                 };
   793                 };
   790 
   794             CleanupStack::PopAndDestroy(2);
   791             };// for play formats
   795             };// for play formats
   792             }
   796             }
   793    
   797    
   794         };
   798         };
   795 	audioBuf.Close();
   799 	audioBuf.Close();