Change functions in PlaYUVerFrame and PropertiesSidebar

Add new contructor to PlaYUVerFrame to improve the copy of frames
Add support to stop histogram when frames are removed
This commit is contained in:
jfmcarreira committed 2014-05-13 04:01:34 +01:00
1 parent 945d0334c1
commit dc1827946f
6 files changed
+107 -130

No files matched your search

+1 -1
View File
@@ -402,7 +402,7 @@ void HistogramWidget::updateData( const PlaYUVerFrame *playuver_frame, const Pla
// Calc new histogram data
m_imageHistogram = new PlaYUVerFrameStatistics( playuver_frame, this );
if( playuver_selection->isValid() )
if( playuver_selection )
m_selectionHistogram = new PlaYUVerFrameStatistics( playuver_selection, this );
else
m_selectionHistogram = NULL;