[vlmc-devel] Cosmetics/pedanticism
Hugo Beauzée-Luyssen
git at videolan.org
Mon Feb 24 20:09:39 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 02:46:12 2014 +0200| [66d7ee7e7bc4daca7b03fe4421198176fd3b221b] | committer: Hugo Beauzée-Luyssen
Cosmetics/pedanticism
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=66d7ee7e7bc4daca7b03fe4421198176fd3b221b
---
src/Backend/VLC/EventWaiter.cpp | 3 ++-
src/Backend/VLC/VLCSource.cpp | 2 +-
src/Backend/VLC/VLCSourceRenderer.cpp | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Backend/VLC/EventWaiter.cpp b/src/Backend/VLC/EventWaiter.cpp
index 8b245ee..19165d9 100644
--- a/src/Backend/VLC/EventWaiter.cpp
+++ b/src/Backend/VLC/EventWaiter.cpp
@@ -38,7 +38,8 @@ EventWaiter::~EventWaiter()
m_mediaPlayer->unregisterEvents( &EventWaiter::eventsCallback, this );
}
-void EventWaiter::add(libvlc_event_type_t event)
+void
+EventWaiter::add(libvlc_event_type_t event)
{
m_events.push_back( event );
}
diff --git a/src/Backend/VLC/VLCSource.cpp b/src/Backend/VLC/VLCSource.cpp
index 713edd9..3bd377f 100644
--- a/src/Backend/VLC/VLCSource.cpp
+++ b/src/Backend/VLC/VLCSource.cpp
@@ -77,7 +77,7 @@ VLCSource::preparse()
m_nbAudioTracks = mediaPlayer->getNbAudioTrack();
//FIXME: handle images with something like m_length = 10000;
m_length = mediaPlayer->getLength();
- if ( hasVideo() > 0 )
+ if ( hasVideo() == true )
{
mediaPlayer->getSize( &m_width, &m_height );
m_fps = mediaPlayer->getFps();
diff --git a/src/Backend/VLC/VLCSourceRenderer.cpp b/src/Backend/VLC/VLCSourceRenderer.cpp
index 71e9866..553c747 100644
--- a/src/Backend/VLC/VLCSourceRenderer.cpp
+++ b/src/Backend/VLC/VLCSourceRenderer.cpp
@@ -81,7 +81,6 @@ VLCSourceRenderer::~VLCSourceRenderer()
{
m_mediaPlayer->unregisterEvents( &eventsCallback, this );
delete m_media;
- m_media = NULL;
stop();
}
More information about the Vlmc-devel
mailing list