diff options
author | James Meyer <james.meyer@operamail.com> | 2013-02-19 21:10:18 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-02-19 21:10:18 (GMT) |
commit | 2648e999d277eac5c3d331a3609bcc73fafbea71 (patch) | |
tree | 40951fb8e7fdbe28a0baa324ae615055203f1e2e /abs/core/projectm-complete/error-handling.patch | |
parent | c759b5e0c4aa6fc37412b4dee2cf9ad993fd376d (diff) | |
parent | 7e6f7ca174e1af67178dc5293a312a4a733eb095 (diff) | |
download | linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.zip linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.tar.gz linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.tar.bz2 |
Merge branch 'testing'
# By James Meyer (1091) and others
# Via James Meyer (5) and others
* testing: (1148 commits)
LinHES-config: during install don't kill off lirc. This keeps the remote active all the way to the finish
Change version numbers to 8.0 to match the release number. LinHES-conifg LinHES-system mythdb-initial runit-scripts supplemental-web
LinHES-conifig: mv_install.py for the last partition don't go all the way to the end. Gotta leave room for gpt tables.
xf86-video-ati: xorg ati driver.
LinHES-config: timezip.py add syncing up of parental lvl passwords and starting level with MBE.
LinHES-system: correct the logic for breaking out of the wmctrl loop. As written it would break out of the inner loop..but not the 60 iteration loop.
e16_theme_settings: remove slide-in prop for new windows. For whatever reason this was preventing mplayer from being positioned correctly for appletrailers.
LinHES-config, mythinstall: change case of hd_pvr and serial to all lower refs #902
zilog-firmware: firmware for TX support of the hdpvr and pvr-150 In general I can't recommend anybody using these transmitters but including the firmware just in case someone really wants to
linhes-udev-rules: added hdprv_lirc rule. All of these lirc rules are limited to exactly one device. If more then one device is present then only the last device in init will get the symlink
runit-scripts: fix logging for igdeamon, add support to remote init script so that the blaster is always the first device in the chain. added support specificly for hd_pvr
LinHES-system: add lh_system_restore and lh_system_backup. These scripts are called from the mythmenu. refs #900
iguanair: rebuild with python 2.7
LinHES-system: msg_daemon.py fix init and nasty bug related to timeout. In a nutshell timeout wouldn't work unless a msg without a timeout was called first.
linhes-udev-rules: add rules for mce,streamzap,serial lirc devices.
mythinstall: recompile for matching libs
mythtv: latest .25-fixes and change mythbackup/restore call lh_system_$op to replace mythbackup/mythrestore. mythbackup no longer works correctly with the new windowmanager
linhes-scripts: myth2mp3, myth2x264, myth2xvid: use mythutil to get cutlist
LinHES-config, supplimental-web: Fix proxy numbering for Ceton infiniTV
linhes-system: add additional stuff to the system backup and also introduced an exclude file. The exclude/include files are locate in /home/mythtv/backup_config/
...
Diffstat (limited to 'abs/core/projectm-complete/error-handling.patch')
-rw-r--r-- | abs/core/projectm-complete/error-handling.patch | 308 |
1 files changed, 0 insertions, 308 deletions
diff --git a/abs/core/projectm-complete/error-handling.patch b/abs/core/projectm-complete/error-handling.patch deleted file mode 100644 index 4154884..0000000 --- a/abs/core/projectm-complete/error-handling.patch +++ /dev/null @@ -1,308 +0,0 @@ -Description: Error handling - * Guard against reinitializing the builtin milkdrop functions. - Hides a deeper issue where something is double loading the preset factories, most - likely. - * Playlist file / directory error handling fixes, resize playlist refresh fix - -Forwarded: yes -Author: Carmelo Piccione <carmelo.piccione@gmail.com> -Last-Update: 2010-07-29 ---- a/src/libprojectM/MilkdropPresetFactory/BuiltinFuncs.cpp -+++ b/src/libprojectM/MilkdropPresetFactory/BuiltinFuncs.cpp -@@ -29,7 +29,7 @@ - /* Create new function */ - func = new Func(name, func_ptr, num_args); - -- if (func == NULL) -+ if (func == 0) - return PROJECTM_OUTOFMEM_ERROR; - - retval = insert_func( func ); -@@ -115,12 +115,18 @@ - return PROJECTM_SUCCESS; - } - -+volatile bool BuiltinFuncs::initialized = false; - - /* Initialize the builtin function database. - Should only be necessary once */ - int BuiltinFuncs::init_builtin_func_db() { - int retval; - -+ if (initialized) { -+ return 0; -+ } else -+ initialized = true; -+ - retval = load_all_builtin_func(); - return retval; - } -@@ -134,7 +140,7 @@ - traverse<TraverseFunctors::Delete<Func> >(builtin_func_tree); - - builtin_func_tree.clear(); -- -+initialized = false; - return PROJECTM_SUCCESS; - } - -@@ -142,13 +148,24 @@ - int BuiltinFuncs::insert_func( Func *func ) { - - assert(func); -- std::pair<std::map<std::string, Func*>::iterator, bool> inserteePair = -- builtin_func_tree.insert(std::make_pair(std::string(func->getName()), func)); - -+ if (func == 0) { -+ std::cerr << "Received a null function object, ignoring...." << std::endl; -+ return PROJECTM_ERROR; -+ } -+ -+// //std::cout << "inserting function " << func->getName() << std::endl; -+ -+ const std::pair<std::string, Func*> pair = std::make_pair(std::string(func->getName()), func); -+ -+ assert(pair.second); -+ -+ const std::pair<std::map<std::string, Func*>::iterator, bool> inserteePair = -+ builtin_func_tree.insert(pair); -+ - if (!inserteePair.second) { - std::cerr << "Failed to insert builtin function \"" << func->getName() << "\" into collection! Bailing..." << std::endl; - abort(); -- - } - - return PROJECTM_SUCCESS; ---- a/src/libprojectM/MilkdropPresetFactory/BuiltinFuncs.hpp -+++ b/src/libprojectM/MilkdropPresetFactory/BuiltinFuncs.hpp -@@ -229,6 +229,7 @@ - static Func *find_func( const std::string & name ); - private: - static std::map<std::string, Func*> builtin_func_tree; -+ static volatile bool initialized; - }; - - #endif ---- a/src/libprojectM/MilkdropPresetFactory/MilkdropPresetFactory.cpp -+++ b/src/libprojectM/MilkdropPresetFactory/MilkdropPresetFactory.cpp -@@ -26,7 +26,7 @@ - Eval::init_infix_ops(); - - _presetOutputs = createPresetOutputs(gx,gy); -- _presetOutputs2 = createPresetOutputs(gx, gy); -+ _presetOutputs2 = createPresetOutputs(gx, gy); - } - - MilkdropPresetFactory::~MilkdropPresetFactory() { -@@ -37,13 +37,13 @@ - BuiltinFuncs::destroy_builtin_func_db(); - std::cerr << "[~MilkdropPresetFactory] delete preset out puts" << std::endl; - delete(_presetOutputs); -- delete(_presetOutputs2); -+ delete(_presetOutputs2); - std::cerr << "[~MilkdropPresetFactory] done" << std::endl; - - } - - /* Reinitializes the engine variables to a default (conservative and sane) value */ --void resetPresetOutputs(PresetOutputs *presetOutputs) -+void resetPresetOutputs(PresetOutputs * presetOutputs) - { - - presetOutputs->zoom=1.0; ---- a/src/libprojectM/PresetFactoryManager.cpp -+++ b/src/libprojectM/PresetFactoryManager.cpp -@@ -20,7 +20,7 @@ - #endif - - #include <sstream> --PresetFactoryManager::PresetFactoryManager() : _gx(0), _gy(0) {} -+PresetFactoryManager::PresetFactoryManager() : _gx(0), _gy(0), initialized(false) {} - - PresetFactoryManager::~PresetFactoryManager() { - for (std::vector<PresetFactory *>::iterator pos = _factoryList.begin(); -@@ -29,11 +29,20 @@ - delete(*pos); - } - -- -+ initialized = false; - } -+ - void PresetFactoryManager::initialize(int gx, int gy) { - _gx = gx; - _gy = gy; -+ -+ if (!initialized) { -+ initialized = true; -+ } else { -+ std::cout << "already initialized " << std::endl; -+ return; -+ } -+ - PresetFactory * factory; - - #ifndef DISABLE_MILKDROP_PRESETS ---- a/src/libprojectM/PresetFactoryManager.hpp -+++ b/src/libprojectM/PresetFactoryManager.hpp -@@ -21,7 +21,7 @@ - virtual ~PresetFactoryException() throw() {} - const std::string & message() const { return _message; } - -- private: -+ private: - std::string _message; - }; - -@@ -54,6 +54,6 @@ - mutable std::map<std::string, PresetFactory *> _factoryMap; - mutable std::vector<PresetFactory *> _factoryList; - void registerFactory(const std::string & extension, PresetFactory * factory); -- -+ volatile bool initialized; - }; - #endif ---- a/src/libprojectM/projectM.cpp -+++ b/src/libprojectM/projectM.cpp -@@ -222,7 +222,6 @@ - projectM_init ( _settings.meshX, _settings.meshY, _settings.fps, - _settings.textureSize, _settings.windowWidth,_settings.windowHeight); - -- - _settings.beatSensitivity = beatDetect->beat_sensitivity = config.read<float> ( "Hard Cut Sensitivity", 10.0 ); - - if ( config.read ( "Aspect Correction", true ) ) ---- a/src/projectM-pulseaudio/QPulseAudioThread.cpp -+++ b/src/projectM-pulseaudio/QPulseAudioThread.cpp -@@ -296,9 +296,7 @@ - { - assert ( mainloop_api ); - mainloop_api->quit ( mainloop_api, ret ); -- if (*s_qprojectM_MainWindowPtr) -- delete(*s_qprojectM_MainWindowPtr); -- *s_qprojectM_MainWindowPtr = 0; -+ - } - - -@@ -315,7 +313,8 @@ - { - fprintf ( stderr, "pa_stream_peek() failed: %s\n", pa_strerror ( pa_context_errno ( context ) ) ); - pulseQuit ( 1 ); -- return; -+ return -+; - } - - if ((!s_qprojectM_MainWindowPtr) || (!*s_qprojectM_MainWindowPtr)) -@@ -352,16 +351,16 @@ - switch ( pa_stream_get_state ( s ) ) - { - case PA_STREAM_UNCONNECTED: --// qDebug() << "UNCONNECTED"; -+ qDebug() << "UNCONNECTED"; - break; - case PA_STREAM_CREATING: --// qDebug() << "CREATED"; -+ qDebug() << "CREATED"; - break; - case PA_STREAM_TERMINATED: --// qDebug() << "TERMINATED"; -+ qDebug() << "TERMINATED"; - break; - case PA_STREAM_READY: --// qDebug() << "READY"; -+ qDebug() << "READY"; - if ( verbose ) - { - const pa_buffer_attr *a; ---- a/src/projectM-qt/qplaylisttableview.hpp -+++ b/src/projectM-qt/qplaylisttableview.hpp -@@ -93,14 +93,14 @@ - } - - inline void resizeEvent(QResizeEvent * event) { -- -+ QTableView::resizeEvent(event); - emit(resized(event)); - } - - inline void mousePressEvent(QMouseEvent * event) { - QAbstractItemView::mousePressEvent(event); - if (event->button() == Qt::RightButton) { -- emit(mousePressed(event, selectedIndexes())); -+ emit(mousePressed(event, selectedIndexes())); - } - else - ; ---- a/src/projectM-qt/qprojectm_mainwindow.cpp -+++ b/src/projectM-qt/qprojectm_mainwindow.cpp -@@ -98,7 +98,8 @@ - - connect(ui->tableView, SIGNAL(resized(QResizeEvent *)), this, SLOT(refreshHeaders(QResizeEvent*))); - -- connect(ui->tableView, SIGNAL(mousePressed(QMouseEvent*, const QModelIndexList &)), this, SLOT(popupPlaylistContextMenu(QMouseEvent*, const QModelIndexList &))); -+ connect(ui->tableView, SIGNAL(mousePressed(QMouseEvent*, const QModelIndexList &)), this, -+ SLOT(popupPlaylistContextMenu(QMouseEvent*, const QModelIndexList &))); - - connect ( m_QProjectMWidget, SIGNAL ( projectM_Initialized(QProjectM*) ), - this, SLOT ( postProjectM_Initialize() ) ); -@@ -662,7 +663,7 @@ - // Add 1 to skip the Name column - hHeader->setResizeMode (i+1, QHeaderView::ResizeToContents); - sizeTotal += hHeader->sectionSize(i+1); -- } -+ } - hHeader->resizeSection(0, ui->tableView->size().width()-20-sizeTotal); - - -@@ -883,11 +884,13 @@ - QString url = m_QPlaylistFileDialog->selectedFiles() [0]; - - -- if ( !playlistModel->readPlaylist ( url ) ) { -+ const bool loadedOk = playlistModel->readPlaylist ( url ); -+ -+ if (!loadedOk) { - qDebug() << "could not open playlist"; - url = QString(); -- -- } -+ } -+ - qDebug() << "url: " << url; - updatePlaylistUrl(url); - ---- a/src/projectM-qt/qprojectmwidget.hpp -+++ b/src/projectM-qt/qprojectmwidget.hpp -@@ -22,6 +22,7 @@ - #ifndef QPROJECTM_WIDGET_HPP - #define QPROJECTM_WIDGET_HPP - -+#include <iostream> - #include "qprojectm.hpp" - #include <QGLWidget> - #include <QMutex> -@@ -111,7 +112,7 @@ - - void resetProjectM() - { -- -+ std::cout << "reseting" << std::endl; - qDebug() << "reset start"; - - emit ( projectM_BeforeDestroy() ); -@@ -246,8 +247,10 @@ - void initializeGL() - { - -- this->m_projectM = new QProjectM ( m_config_file ); -- projectM_Initialized ( m_projectM ); -+ if (m_projectM == 0) { -+ this->m_projectM = new QProjectM ( m_config_file ); -+ projectM_Initialized ( m_projectM ); -+ } - } - - inline void paintGL() |