mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
The 16-bit language code can be either a packed ISO-639-2T code or a 'Macintosh language code'. Handle the latter type of language codes as well, and map to the matching ISO code. Lastly, fix language code posting for language #0, which is valid and stands for 'English'. Fixes #614001.
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/* GStreamer Quicktime/ISO demuxer language utility functions
|
|
* Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GST_QTDEMUX_LANG_H__
|
|
#define __GST_QTDEMUX_LANG_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#include <glib.h>
|
|
|
|
void qtdemux_lang_map_qt_code_to_iso (gchar id[4], guint16 qt_lang_code);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_QTDEMUX_LANG_H__ */
|