Skip to content
Snippets Groups Projects
Commit e21729ee authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

VLCSource, VmemRenderer: Delete snapshot in VLCSource


It is used in VLCSource, which will be deleted after VmemRenderer

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 8bcd468c
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,12 @@ VLCSource::VLCSource( VLCBackend* backend, const QString& path )
m_media = ::VLC::Media( backend->vlcInstance(), path.toStdString(), ::VLC::Media::FromPath );
}
VLCSource::~VLCSource()
{
if ( m_snapshot )
delete[] m_snapshot;
}
::VLC::Media&
VLCSource::media()
{
......
......@@ -40,6 +40,7 @@ class VLCSource : public ISource
{
public:
VLCSource( VLCBackend* backend, const QString& path );
virtual ~VLCSource();
virtual ISourceRenderer* createRenderer( ISourceRendererEventCb* callback );
virtual bool preparse();
virtual bool isParsed() const;
......
......@@ -57,7 +57,6 @@ VmemRenderer::~VmemRenderer()
* destroyed in a potentially locked state, while the vmem tries to lock/unlock.
*/
stop();
delete[] m_snapshot;
}
::VLC::MediaPlayer&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment