[vlmc-devel] Media: Consider the lack of a file representing a media a fatal error

Hugo Beauzée-Luyssen git at videolan.org
Fri Aug 19 02:41:39 CEST 2016


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 19 00:26:41 2016 +0200| [681c2ac4f431841a157e3fc2bb9e8970ab338472] | committer: Hugo Beauzée-Luyssen

Media: Consider the lack of a file representing a media a fatal error

> https://code.videolan.org/videolan/vlmc/commit/681c2ac4f431841a157e3fc2bb9e8970ab338472
---

 src/Media/Media.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index b07ebea..c6ad9eb 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -79,7 +79,7 @@ Media::Media( medialibrary::MediaPtr media )
         }
     }
     if ( m_mlFile == nullptr )
-        vlmcCritical() << "No file representing media", media->title(), "was found";
+        vlmcFatal( "No file representing media %s", media->title().c_str(), "was found" );
     m_input.reset( new Backend::MLT::MLTInput( m_mlFile->mrl().c_str() ) );
 }
 



More information about the Vlmc-devel mailing list