[vlc-commits] medialibrary: An audio media can be of subtype Unknown

Hugo Beauzée-Luyssen git at videolan.org
Tue Aug 21 12:35:29 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Aug 21 12:32:07 2018 +0200| [2131b80d6a9f8f4ba58ed251f64044f3f5074eae] | committer: Hugo Beauzée-Luyssen

medialibrary: An audio media can be of subtype Unknown

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2131b80d6a9f8f4ba58ed251f64044f3f5074eae
---

 modules/misc/medialibrary/entities.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/misc/medialibrary/entities.cpp b/modules/misc/medialibrary/entities.cpp
index f59cabcf04..1eed9f8583 100644
--- a/modules/misc/medialibrary/entities.cpp
+++ b/modules/misc/medialibrary/entities.cpp
@@ -145,6 +145,9 @@ bool Convert( const medialibrary::IMedia* input, vlc_ml_media_t& output )
                         return false;
                     break;
                 }
+                case medialibrary::IMedia::SubType::Unknown:
+                    output.i_subtype = VLC_ML_MEDIA_SUBTYPE_UNKNOWN;
+                    break;
                 default:
                     vlc_assert_unreachable();
             }



More information about the vlc-commits mailing list