Skip to content
Snippets Groups Projects
Lyndon Brown's avatar
Lyndon Brown authored
a handful of small mistakes were made in "simplifying" the iso-639
handling back in b8774b3c. this
corrects those mistakes, and in doing so brings this back into line
with all other use of the iso-639 lookup functions.

the mistakes:

 1. the english/native comments were added the wrong way around.

 2. the 2T fallback lookup was made unreachable.

    after searching with the 2B code, we either have a match, or the
    'unknown' record (which uses '?' characters). since every single entry
    in the table has a non-empty 2T code (ignoring the irrelevant end
    marker), and since the 'unknown' item also has a non-empty 2T code
    ("???"), the fallback path to search with 2T would never be triggered.

 3. the avoidance of storing language code on failed lookup was broken.

    the `*code` condition would always be true, since matching records
    always have a 2T code, and for no match "???" is always returned from
    the 'unknown' record. this means that for failed matches, "???" would
    be unintentionally written into the entry.

 4. the len==3 condition on iso-639-2 lookup was lost.

    the previous code conditionally only performed an iso-639-2 lookup if
    the string length is 3, just like all other cases of such lookups
    throughout the codebase. there was no specific reason for this to have
    been removed here. (this is going to get restored anyway momentarily
    when the code gets de-duplicated by a new function).

 5. an incorrect comment was given to the newly introduced function.

    the new `GetIso639_2LangCode()` helper function it introduced always
    returns len==3 strings, never len==0.
740d1347

VLC media player

VLC is a libre and open source media player and multimedia engine, focused on playing everything, and running everywhere.

VLC can play most multimedia files, discs, streams, devices and is also able to convert, encode, stream and manipulate streams into numerous formats.

VLC is used by many over the world, on numerous platforms, for very different use cases.

The engine of VLC can be embedded into 3rd party applications, and is called libVLC.

VLC is part of the VideoLAN project and is developed and supported by a community of volunteers.

The VideoLAN project was started at the university École Centrale Paris who relicensed VLC under the GPLv2 license in February 2001. Since then, VLC has been downloaded billions of times.

License

VLC is released under the GPLv2 (or later) license. On some platforms, it is de facto GPLv3, because of the licenses of dependencies.

libVLC, the engine is released under the LGPLv2 (or later) license.
This allows embedding the engine in 3rd party applications, while letting them to be licensed under other licenses.

Platforms

VLC is available for the following platforms:

  • Windows (from 7 and later, including UWP platforms and all versions of Windows 10)
  • macOS (10.10 and later)
  • GNU/Linux and affiliated
  • *BSD and affiliated
  • Android (4.2 and later), including Android TV and Android Auto
  • iOS (9 and later), including AppleTV and iPadOS
  • Haiku, OS/2 and a few others.

Not all platforms receive the same amount of care, due to our limited resources.

Nota Bene: The Android app and the iOS app are located in different repositories than the main one.

Contributing & Community

VLC is maintained by a community of people, and VideoLAN is not paying any of them.
The community is composed of developers, helpers, maintainers, designers and writers that want this open source project to thrive.

The main development of VLC is done in the C language, but this repository also contains plenty of C++, Obj-C, asm and Rust.

Other repositories linked to vlc are done in languages including Kotlin/Java (Android), Swift (iOS), and C# (libVLCSharp).

We need help with the following tasks:

  • coding
  • packaging for Windows, macOS and Linux distributions
  • technical writing for the documentation
  • design
  • support
  • community management and communication.

Please contribute :)

We are on IRC. You can find us on the #videolan channel on Libera.chat.

Contributions

Contributions are now done through Merge Requests on our GitLab repository.

CI and discussions should be resolved before a Merge Request can be merged.

libVLC

libVLC is an embeddable engine for 3rd party applications and frameworks.

It runs on the same platforms as VLC (and sometimes on more) and can provide playback, streaming and converting of multimedia files and streams.

libVLC has numerous bindings for other languages, like C++, Python and C#.

Support

Links

Some useful links that might help you:

Source Code sitemap

ABOUT-NLS          - Notes on the Free Translation Project.
AUTHORS            - VLC authors.
COPYING            - The GPL license.
COPYING.LIB        - The LGPL license.
INSTALL            - Installation and building instructions.
NEWS               - Important modifications between the releases.
README             - Project summary.
THANKS             - VLC contributors.

bin/               - VLC binaries.
bindings/          - libVLC bindings to other languages.
compat/            - compatibility library for operating systems missing
                     essential functionalities.
contrib/           - Facilities for retrieving external libraries and building
                     them for systems that don't have the right versions.
doc/               - Miscellaneous documentation.
extras/analyser    - Code analyser and editor specific files.
extras/buildsystem - Different build system specific files.
extras/misc        - Files that don't fit in the other extras/ categories.
extras/package     - VLC packaging specific files such as spec files.
extras/tools/      - Facilities for retrieving external building tools needed
                     for systems that don't have the right versions.
include/           - Header files.
lib/               - libVLC source code.
modules/           - VLC plugins and modules. Most of the code is here.
po/                - VLC translations.
share/             - Common resource files.
src/               - libvlccore source code.
test/              - Testing system.