<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Wiadomość napisana przez yikei lu <<a href="mailto:luyikei.qmltu@gmail.com" class="">luyikei.qmltu@gmail.com</a>> w dniu 21.07.2016, o godz. 13:04:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">2016-07-21 20:01 GMT+09:00 Pawel Golinski <</span><a href="mailto:golpaw1@gmail.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">golpaw1@gmail.com</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">>:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">---<br class="">src/Backend/MLT/MLTBackend.cpp | 23 +++++++++++++++--------<br class="">1 file changed, 15 insertions(+), 8 deletions(-)<br class=""><br class="">diff --git a/src/Backend/MLT/MLTBackend.cpp b/src/Backend/MLT/MLTBackend.cpp<br class="">index 3d39930..44b9ba9 100644<br class="">--- a/src/Backend/MLT/MLTBackend.cpp<br class="">+++ b/src/Backend/MLT/MLTBackend.cpp<br class="">@@ -54,17 +54,24 @@ MLTBackend::MLTBackend()<br class=""> m_mltRepo = Mlt::Factory::init();<br class=""> m_profile.setFrameRate( 2997, 100 );<br class=""><br class="">- for ( int i = 0; i < m_mltRepo->filters()->count(); ++i )<br class="">+ if ( m_mltRepo )<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">m_mltRepo will never be nullptr.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>"m_mltRepo = Mlt::Factory::init();”</div><div>This line calls a function which returns a pointer allocated using „new”.</div><div><br class=""></div><div>„</div><div>Repository *Factory::init( const char *directory )</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return new Repository( mlt_factory_init( directory ) );</div><div>}</div><div>„</div><div><br class=""></div><div>So it can.</div><br class=""><blockquote type="cite" class=""><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> {<br class="">- auto pro = std::unique_ptr<Mlt::Properties>( m_mltRepo->metadata( filter_type, m_mltRepo->filters()->get_name( i ) ) );<br class="">- auto filterInfo = new MLTFilterInfo;<br class="">- filterInfo->setProperties( pro.get() );<br class="">- if ( filterInfo->identifier().empty() == true )<br class="">+ for ( int i = 0; i < m_mltRepo->filters()->count(); ++i )<br class=""> {<br class="">- delete filterInfo;<br class="">- continue;<br class="">+ auto pro = std::unique_ptr<Mlt::Properties>( m_mltRepo->metadata( filter_type, m_mltRepo->filters()->get_name( i ) ) );<br class="">+ auto filterInfo = new MLTFilterInfo;<br class="">+ filterInfo->setProperties( pro.get() );<br class="">+ if ( filterInfo->identifier().empty() == true )<br class="">+ {<br class="">+ delete filterInfo;<br class="">+ continue;<br class="">+ }<br class="">+ m_availableFilters[ filterInfo->identifier() ] = filterInfo;<br class=""> }<br class="">- m_availableFilters[ filterInfo->identifier() ] = filterInfo;<br class="">+ }<br class="">+ else<br class="">+ {<br class="">+ throw InvalidServiceException();<br class=""> }<br class="">}<br class=""><br class="">--<br class="">2.7.4 (Apple Git-66)<br class=""><br class="">_______________________________________________<br class="">Vlmc-devel mailing list<br class=""><a href="mailto:Vlmc-devel@videolan.org" class="">Vlmc-devel@videolan.org</a><br class=""><a href="https://mailman.videolan.org/listinfo/vlmc-devel" class="">https://mailman.videolan.org/listinfo/vlmc-devel</a><br class=""></blockquote><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Vlmc-devel mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Vlmc-devel@videolan.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Vlmc-devel@videolan.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://mailman.videolan.org/listinfo/vlmc-devel" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://mailman.videolan.org/listinfo/vlmc-devel</a></div></blockquote></div><br class=""></body></html>