List Info

Thread: extragear/libs/kipi-plugins/mpegencoder




extragear/libs/kipi-plugins/mpegencoder
user name
2007-04-01 15:38:33
SVN commit 648990 by anaselli:

Added a test to avoid files not reachable are passed to
img2mpg script as reported by a Mandriva user:
"open gwenview from konqueror when it is using the
protocol 
system:/ so  the path is something like
/media/hdxx/user_home/file.jpg
instead of /home/user_home/file.jpg"

CCMAIL:kde-imagingkde.org

 M  +10 -2     kimg2mpg.cpp  


---
trunk/extragear/libs/kipi-plugins/mpegencoder/kimg2mpg.cpp
#648989:648990
 -681,13
+681,21 
   m_CommandLine = m_CommandLine + " -i ";
 
   for (uint i=0 ; i < m_ImagesFilesListBox->count() ;
++i)
-    {
+  {
     QString FileName="";
     ImageItem *pitem = static_cast<ImageItem*>(
m_ImagesFilesListBox->item(i) );
     FileName.append (pitem->path());                    
         // Input images files.
+    if (!QFile::exists(FileName))
+    {
+      KMessageBox::error(this,
+                         i18n("Can't access to file
%1, please check the path is right.").arg(FileName));
+      m_Abort = true;
+      reset();
+      return;
+    }
     *m_Proc << FileName;
     m_CommandLine = m_CommandLine + " "" +
FileName + "" ";
-    }
+  }
 
   connect(m_Proc, SIGNAL(processExited(KProcess *)),this,
           SLOT(EncodeDone(KProcess*)));
_______________________________________________
Kde-imaging mailing list
Kde-imagingkde.org
htt
ps://mail.kde.org/mailman/listinfo/kde-imaging

Re: extragear/libs/kipi-plugins/mpegencoder
country flaguser name
Italy
2007-04-01 15:45:09
Alle 22:38, domenica 1 aprile 2007, Angelo Naselli ha
scritto:
> SVN commit 648990 by anaselli:
> 
> Added a test to avoid files not reachable are passed to
img2mpg script as reported by a Mandriva user:
> "open gwenview from konqueror when it is using the
protocol 
> system:/ so  the path is something like
/media/hdxx/user_home/file.jpg
> instead of /home/user_home/file.jpg"
I had a new patch to use URL instead of path, but since it
is unmanaged as well,
I'd like to know if that problem is seen only by mandriva
users or not, since
mandriva leave mount points to /mnt and system:// managed
url as it is 
mounted in media.

TIA,
	Angelo

_______________________________________________
Kde-imaging mailing list
Kde-imagingkde.org
htt
ps://mail.kde.org/mailman/listinfo/kde-imaging

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )