diff --git a/Version.txt b/Version.txt new file mode 100644 index 0000000..d4724bb --- /dev/null +++ b/Version.txt @@ -0,0 +1 @@ +!define Version "1.15" \ No newline at end of file diff --git a/decoderlibav.cpp b/decoderlibav.cpp index 3790706..aff1cb8 100755 --- a/decoderlibav.cpp +++ b/decoderlibav.cpp @@ -49,7 +49,7 @@ KeyFinder::AudioData* LibAvDecoder::decodeFile(const QString& filePath){ throw KeyFinder::Exception(ss.str()); } - if(av_find_stream_info(fCtx) < 0){ + if(avformat_find_stream_info(fCtx,NULL) < 0){ throw KeyFinder::Exception("Could not find stream information"); } int audioStream = -1; diff --git a/guibatch.cpp b/guibatch.cpp index 4c2dc15..d8dc8b8 100644 --- a/guibatch.cpp +++ b/guibatch.cpp @@ -302,7 +302,7 @@ void BatchWindow::addDroppedFiles(){ // check for symlink (.isSymLink doesn't seem to work on Lion) if(fileInfo.isSymLink() || fileInfo.symLinkTarget() != ""){ - droppedFiles.push_back(QUrl(fileInfo.symLinkTarget())); + droppedFiles.push_back(QUrl::fromLocalFile(fileInfo.symLinkTarget())); continue; } @@ -637,6 +637,7 @@ void BatchWindow::deleteSelectedRows(){ } } setGuiDefaults(); + this->setWindowTitle("KeyFinder - Batch Analysis - " + QString::number(ui->tableWidget->rowCount()) + " files"); } void BatchWindow::copySelectedFromTableWidget(){ diff --git a/keyfinder.nsi b/keyfinder.nsi new file mode 100644 index 0000000..baa727f --- /dev/null +++ b/keyfinder.nsi @@ -0,0 +1,116 @@ +!include "Version.txt" + +; keyfinder.nsi +; +; This script installs KeyFinder in Program Files, remembers the directory, +; has uninstall support and (optionally) installs start menu & desktop shortcuts. +; + +;-------------------------------- + +; The name of the installer +Name "KeyFinder ${VERSION}" + +; The file to write +OutFile "KeyFinder-${VERSION}.exe" + +; The default installation directory +InstallDir $PROGRAMFILES\KeyFinder + +; Registry key to check for directory (so if you install again, it will +; overwrite the old one automatically) +InstallDirRegKey HKLM "Software\KeyFinder" "Install_Dir" + +; Request application privileges for Windows Vista +RequestExecutionLevel admin + +;-------------------------------- + +; Pages + +Page components +Page directory +Page instfiles + +UninstPage uninstConfirm +UninstPage instfiles + +;-------------------------------- + +; The stuff to install +Section "KeyFinder (required)" + + SectionIn RO + + ; Set output path to the installation directory. + SetOutPath $INSTDIR + + ; Put file there + File "avcodec-53.dll" + File "avformat-53.dll" + File "avutil-51.dll" + File "COPYING.txt" + File "KeyFinder.exe" + File "keyfinder0.dll" + File "libfftw3-3.dll" + File "libgcc_s_dw2-1.dll" + File "libsamplerate-0.dll" + File "libtag.dll" + File "mingwm10.dll" + File "QtCore4.dll" + File "QtGui4.dll" + File "QtNetwork4.dll" + File "QtXmlPatterns4.dll" + File "vcredist_x86.exe" + + ExecWait '"$INSTDIR\vcredist_x86" /passive /norestart' + + ; Write the installation path into the registry + WriteRegStr HKLM SOFTWARE\KeyFinder "Install_Dir" "$INSTDIR" + + ; Write the uninstall keys for Windows + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\KeyFinder" "DisplayName" "KeyFinder" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\KeyFinder" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\KeyFinder" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\KeyFinder" "NoRepair" 1 + WriteUninstaller "uninstall.exe" + +SectionEnd + +; Optional section (can be disabled by the user) +Section "Start Menu Shortcuts" + + CreateDirectory "$SMPROGRAMS\KeyFinder" + CreateShortCut "$SMPROGRAMS\KeyFinder\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\KeyFinder\KeyFinder.lnk" "$INSTDIR\KeyFinder.exe" "" "$INSTDIR\KeyFinder.exe" 0 + +SectionEnd + +; Optional section (can be disabled by the user) +Section "Desktop Shortcut" + + CreateShortCut "$DESKTOP\KeyFinder.lnk" "$INSTDIR\KeyFinder.exe" "" "$INSTDIR\KeyFinder.exe" 0 + +SectionEnd +;-------------------------------- + +; Uninstaller + +Section "Uninstall" + + ; Remove registry keys + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\KeyFinder" + DeleteRegKey HKLM SOFTWARE\KeyFinder + + ; Remove files and uninstaller + Delete $INSTDIR\KeyFinder.exe + Delete $INSTDIR\uninstall.exe + + ; Remove shortcuts, if any + Delete "$SMPROGRAMS\KeyFinder\*.*" + + ; Remove directories used + RMDir "$SMPROGRAMS\KeyFinder" + RMDir "$INSTDIR" + +SectionEnd diff --git a/main.cpp b/main.cpp index 322e16e..0fb586c 100644 --- a/main.cpp +++ b/main.cpp @@ -101,7 +101,7 @@ int main(int argc, char* argv[]){ QCoreApplication::setApplicationName("KeyFinder"); // libav setup - avcodec_init(); // is disraeli necessary? +// avcodec_init(); // is disraeli necessary? av_register_all(); av_log_set_level(AV_LOG_ERROR);