[mythtv-commits] Ticket #8118: Mythweb looses filename for preview images

MythTV mythtv at cvs.mythtv.org
Tue Mar 16 19:48:37 UTC 2010


#8118: Mythweb looses filename for preview images
---------------------------------------------+------------------------------
 Reporter:  sven.witterstein@…               |       Owner:  kormoc  
     Type:  defect                           |      Status:  accepted
 Priority:  minor                            |   Milestone:  0.23    
Component:  MythTV - General                 |     Version:  head    
 Severity:  medium                           |     Mlocked:  0       
---------------------------------------------+------------------------------

Comment(by Sven Witterstein <sven@…>):

 Well - can somebody look with a debugger what happens to values such as

 {{{
 trunk/mythtv/programs/mythfrontend/playbackboxhelper.cpp   ¶
 r23522  r23599
 345                 QString filename = pginfo.GetPlaybackURL() + ".png";
         361         QString filename = pginfo.pathname + ".png";
 }}}

 and

 {{{
 trunk/mythtv/programs/mythbackend/mythxml.cpp   ¶
 r23113  r23599
 1129    1129            // Must generate Preview Image, Generate Image and
 save.
 1130    1130            //
 ------------------------------------------------------------------
 1131
 1132                    PreviewGenerator *previewgen = new
 PreviewGenerator(pInfo, PreviewGenerator::kLocal);
         1131            if (pInfo->pathname.left(1) != "/" &&
 sFileName.left(1) == "/")
         1132                pInfo->pathname = sFileName;
         1133            if (pInfo->pathname.left(1) != "/")
         1134            {
         1135                delete pInfo;
         1136                return;
         1137            }
         1138
         1139            PreviewGenerator *previewgen = new
 PreviewGenerator(
         1140                pInfo, PreviewGenerator::kLocal);
 1133    1141            previewgen->SetPreviewTimeAsSeconds(nSecsIn);
 1134    1142            previewgen->SetOutputFilename(sFileName + ".png");
 }}}

 I find it strange - but helpful in the context that .png is hardcoded
 here...
 Anyway, more into python these days, never got warm with cpp that much...

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8118#comment:8>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list