mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Half-baked port to 0.10. Needs some love in the seeking department, but at least it does something.
Original commit message from CVS: * configure.ac: * ext/Makefile.am: * ext/dvdread/Makefile.am: * ext/dvdread/dvdreadsrc.c: * ext/dvdread/dvdreadsrc.h: Half-baked port to 0.10. Needs some love in the seeking department, but at least it does something. * ext/dvdread/stream_labels.c: * ext/dvdread/stream_labels.h: Remove these (we use ISO-639 language codes internally; applications that want to translate those into language names for display to the user should rely on the iso-codes package for that).
This commit is contained in:
parent
b34a106764
commit
50501c07be
8 changed files with 1107 additions and 1321 deletions
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
|||
2006-02-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* configure.ac:
|
||||
* ext/Makefile.am:
|
||||
* ext/dvdread/Makefile.am:
|
||||
* ext/dvdread/dvdreadsrc.c:
|
||||
* ext/dvdread/dvdreadsrc.h:
|
||||
Half-baked port to 0.10. Needs some love
|
||||
in the seeking department, but at least
|
||||
it does something.
|
||||
|
||||
* ext/dvdread/stream_labels.c:
|
||||
* ext/dvdread/stream_labels.h:
|
||||
Remove these (we use ISO-639 language codes internally; applications
|
||||
that want to translate those into language names for display to the
|
||||
user should rely on the iso-codes package for that).
|
||||
|
||||
2006-02-06 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/amrnb/amrnbdec.c: (gst_amrnbdec_init),
|
||||
|
|
|
@ -260,6 +260,12 @@ GST_CHECK_FEATURE(AMRNB, [AMR-NB], amrnbdec amrnbenc, [
|
|||
AC_SUBST(AMRNB_LIBS))
|
||||
])
|
||||
|
||||
dnl *** dvdread ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
|
||||
GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdreadsrc, [
|
||||
GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
|
||||
AC_SUBST(DVDREAD_LIBS)
|
||||
])
|
||||
|
||||
dnl *** lame ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
|
||||
|
@ -392,6 +398,7 @@ gst/realmedia/Makefile
|
|||
ext/Makefile
|
||||
ext/a52dec/Makefile
|
||||
ext/amrnb/Makefile
|
||||
ext/dvdread/Makefile
|
||||
ext/lame/Makefile
|
||||
ext/mad/Makefile
|
||||
ext/mpeg2dec/Makefile
|
||||
|
|
|
@ -10,11 +10,11 @@ else
|
|||
AMRNB_DIR =
|
||||
endif
|
||||
|
||||
# if USE_DVDREAD
|
||||
# DVDREAD_DIR = dvdread
|
||||
# else
|
||||
DVDREAD_DIR =
|
||||
# endif
|
||||
if USE_DVDREAD
|
||||
DVDREAD_DIR = dvdread
|
||||
else
|
||||
DVDREAD_DIR =
|
||||
endif
|
||||
|
||||
# if USE_DVDNAV
|
||||
# DVDNAV_DIR = dvdnav
|
||||
|
@ -49,6 +49,7 @@ endif
|
|||
SUBDIRS = \
|
||||
$(A52DEC_DIR) \
|
||||
$(AMRNB_DIR) \
|
||||
$(DVDREAD_DIR) \
|
||||
$(DVDNAV_DIR) \
|
||||
$(LAME_DIR) \
|
||||
$(MAD_DIR) \
|
||||
|
@ -58,6 +59,7 @@ SUBDIRS = \
|
|||
DIST_SUBDIRS = \
|
||||
a52dec \
|
||||
amrnb \
|
||||
dvdread \
|
||||
lame \
|
||||
mad \
|
||||
mpeg2dec \
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
|
||||
plugin_LTLIBRARIES = libgstdvdreadsrc.la
|
||||
plugin_LTLIBRARIES = libgstdvdread.la
|
||||
|
||||
## FIXME: the extra option, what do we do with it ?
|
||||
## AM_CFLAGS = -D_LARGEFILE64_SOURCE $(LIBDVDREADCFLAGS)
|
||||
libgstdvdread_la_SOURCES = dvdreadsrc.c
|
||||
libgstdvdread_la_CFLAGS = \
|
||||
$(GST_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) \
|
||||
$(DVDREAD_CFLAGS)
|
||||
libgstdvdread_la_LIBADD = \
|
||||
$(GST_BASE_LIBS) \
|
||||
$(DVDREAD_LIBS)
|
||||
libgstdvdread_la_LDFLAGS = \
|
||||
$(GST_PLUGIN_LDFLAGS)
|
||||
|
||||
libgstdvdreadsrc_la_SOURCES = dvdreadsrc.c stream_labels.c
|
||||
libgstdvdreadsrc_la_CFLAGS = $(GST_CFLAGS)
|
||||
libgstdvdreadsrc_la_LIBADD = $(DVDREAD_LIBS)
|
||||
libgstdvdreadsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
noinst_HEADERS = dvdreadsrc.h
|
||||
|
||||
noinst_HEADERS = dvdreadsrc.h stream_labels.h
|
||||
|
||||
EXTRA_DIST = \
|
||||
README \
|
||||
demo-play
|
||||
EXTRA_DIST = README demo-play
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -17,48 +17,75 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __DVDREADSRC_H__
|
||||
#define __DVDREADSRC_H__
|
||||
#ifndef __GST_DVD_READ_SRC_H__
|
||||
#define __GST_DVD_READ_SRC_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/base/gstpushsrc.h>
|
||||
|
||||
#include <dvdread/dvd_reader.h>
|
||||
#include <dvdread/ifo_types.h>
|
||||
#include <dvdread/ifo_read.h>
|
||||
#include <dvdread/nav_read.h>
|
||||
#include <dvdread/nav_print.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GstElementDetails dvdreadsrc_details;
|
||||
#define GST_TYPE_DVD_READ_SRC (gst_dvd_read_src_get_type())
|
||||
#define GST_DVD_READ_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVD_READ_SRC,GstDvdReadSrc))
|
||||
#define GST_DVD_READ_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVD_READ_SRC,GstDvdReadSrcClass))
|
||||
#define GST_IS_DVD_READ_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVD_READ_SRC))
|
||||
#define GST_IS_DVD_READ_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVD_READ_SRC))
|
||||
|
||||
#define GST_TYPE_DVDREADSRC \
|
||||
(dvdreadsrc_get_type())
|
||||
#define DVDREADSRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVDREADSRC,DVDReadSrc))
|
||||
#define DVDREADSRC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVDREADSRC,DVDReadSrcClass))
|
||||
#define GST_IS_DVDREADSRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVDREADSRC))
|
||||
#define GST_IS_DVDREADSRC_CLASS(obj) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDREADSRC))
|
||||
typedef struct _GstDvdReadSrc GstDvdReadSrc;
|
||||
typedef struct _GstDvdReadSrcClass GstDvdReadSrcClass;
|
||||
|
||||
/* NOTE: per-element flags start with 16 for now */
|
||||
typedef enum {
|
||||
DVDREADSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0),
|
||||
struct _GstDvdReadSrc {
|
||||
GstPushSrc pushsrc;
|
||||
|
||||
DVDREADSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2)
|
||||
} DVDReadSrcFlags;
|
||||
/* location */
|
||||
gchar *location;
|
||||
gchar *last_uri;
|
||||
|
||||
typedef struct _DVDReadSrc DVDReadSrc;
|
||||
typedef struct _DVDReadSrcPrivate DVDReadSrcPrivate;
|
||||
typedef struct _DVDReadSrcClass DVDReadSrcClass;
|
||||
gboolean new_seek;
|
||||
gboolean change_cell;
|
||||
|
||||
struct _DVDReadSrc {
|
||||
GstElement element;
|
||||
DVDReadSrcPrivate *priv;
|
||||
gboolean new_cell;
|
||||
|
||||
gint title, chapter, angle;
|
||||
gint start_cell, last_cell, cur_cell;
|
||||
gint cur_pack;
|
||||
gint next_cell;
|
||||
dvd_reader_t *dvd;
|
||||
ifo_handle_t *vmg_file;
|
||||
|
||||
/* title stuff */
|
||||
gint ttn;
|
||||
tt_srpt_t *tt_srpt;
|
||||
ifo_handle_t *vts_file;
|
||||
vts_ptt_srpt_t *vts_ptt_srpt;
|
||||
dvd_file_t *dvd_title;
|
||||
gint num_chapters;
|
||||
|
||||
/* which program chain to watch (based on title and chapter number) */
|
||||
pgc_t *cur_pgc;
|
||||
gint pgc_id;
|
||||
gint pgn;
|
||||
|
||||
gboolean seek_pend;
|
||||
gboolean flush_pend;
|
||||
GstFormat seek_pend_fmt;
|
||||
GstEvent *title_lang_event_pending;
|
||||
GstEvent *pending_clut_event;
|
||||
};
|
||||
|
||||
struct _DVDReadSrcClass {
|
||||
GstElementClass parent_class;
|
||||
struct _GstDvdReadSrcClass {
|
||||
GstPushSrcClass parent_class;
|
||||
};
|
||||
|
||||
GType dvdreadsrc_get_type (void);
|
||||
GType gst_dvd_read_src_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __DVDREADSRC_H__ */
|
||||
#endif /* __GST_DVD_READ_SRC_H__ */
|
||||
|
||||
|
|
|
@ -1,238 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <2005> Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "dvdreadsrc.h"
|
||||
#include "stream_labels.h"
|
||||
#include <gst/gst-i18n-plugin.h>
|
||||
|
||||
GHashTable *
|
||||
dvdreadsrc_init_languagelist (void)
|
||||
{
|
||||
GHashTable *languagelist = NULL;
|
||||
|
||||
languagelist = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
|
||||
g_hash_table_insert (languagelist, "aa", _("Afar"));
|
||||
g_hash_table_insert (languagelist, "ab", _("Abkhazian"));
|
||||
g_hash_table_insert (languagelist, "af", _("Afrikaans"));
|
||||
g_hash_table_insert (languagelist, "am", _("Amharic"));
|
||||
g_hash_table_insert (languagelist, "ar", _("Arabic"));
|
||||
g_hash_table_insert (languagelist, "as", _("Assamese"));
|
||||
g_hash_table_insert (languagelist, "ax", _("Aymara"));
|
||||
g_hash_table_insert (languagelist, "az", _("Azerbaijani"));
|
||||
g_hash_table_insert (languagelist, "ba", _("Bashkir"));
|
||||
g_hash_table_insert (languagelist, "be", _("Byelorussian"));
|
||||
g_hash_table_insert (languagelist, "bg", _("Bulgarian"));
|
||||
g_hash_table_insert (languagelist, "bh", _("Bislama"));
|
||||
g_hash_table_insert (languagelist, "bn", _("Bengali"));
|
||||
g_hash_table_insert (languagelist, "bo", _("Tibetan"));
|
||||
g_hash_table_insert (languagelist, "br", _("Breton"));
|
||||
g_hash_table_insert (languagelist, "ca", _("Catalan"));
|
||||
g_hash_table_insert (languagelist, "co", _("Corsican"));
|
||||
g_hash_table_insert (languagelist, "cs", _("Czech"));
|
||||
g_hash_table_insert (languagelist, "cy", _("Welsh"));
|
||||
g_hash_table_insert (languagelist, "da", _("Danish"));
|
||||
g_hash_table_insert (languagelist, "de", _("German"));
|
||||
g_hash_table_insert (languagelist, "dz", _("Bhutani"));
|
||||
g_hash_table_insert (languagelist, "el", _("Greek"));
|
||||
g_hash_table_insert (languagelist, "en", _("English"));
|
||||
g_hash_table_insert (languagelist, "eo", _("Esperanto"));
|
||||
g_hash_table_insert (languagelist, "es", _("Spanish"));
|
||||
g_hash_table_insert (languagelist, "et", _("Estonian"));
|
||||
g_hash_table_insert (languagelist, "eu", _("Basque"));
|
||||
g_hash_table_insert (languagelist, "fa", _("Persian"));
|
||||
g_hash_table_insert (languagelist, "fi", _("Finnish"));
|
||||
g_hash_table_insert (languagelist, "fj", _("Fiji"));
|
||||
g_hash_table_insert (languagelist, "fo", _("Faeroese"));
|
||||
g_hash_table_insert (languagelist, "fr", _("French"));
|
||||
g_hash_table_insert (languagelist, "fy", _("Frisian"));
|
||||
g_hash_table_insert (languagelist, "ga", _("Irish"));
|
||||
g_hash_table_insert (languagelist, "gd", _("Scots/Gaelic"));
|
||||
g_hash_table_insert (languagelist, "gl", _("Galician"));
|
||||
g_hash_table_insert (languagelist, "gn", _("Guarani"));
|
||||
g_hash_table_insert (languagelist, "gu", _("Gujarati"));
|
||||
g_hash_table_insert (languagelist, "ha", _("Hausa"));
|
||||
g_hash_table_insert (languagelist, "hi", _("Hindi"));
|
||||
g_hash_table_insert (languagelist, "hr", _("Croatian"));
|
||||
g_hash_table_insert (languagelist, "hu", _("Hungarian"));
|
||||
g_hash_table_insert (languagelist, "hy", _("Armenian"));
|
||||
g_hash_table_insert (languagelist, "ia", _("Interlingua"));
|
||||
g_hash_table_insert (languagelist, "in", _("Indonesian"));
|
||||
g_hash_table_insert (languagelist, "is", _("Icelandic"));
|
||||
g_hash_table_insert (languagelist, "it", _("Italian"));
|
||||
g_hash_table_insert (languagelist, "iw", _("Hebrew"));
|
||||
g_hash_table_insert (languagelist, "ja", _("Japanese"));
|
||||
g_hash_table_insert (languagelist, "ji", _("Yiddish"));
|
||||
g_hash_table_insert (languagelist, "jw", _("Javanese"));
|
||||
g_hash_table_insert (languagelist, "ka", _("Georgian"));
|
||||
g_hash_table_insert (languagelist, "kk", _("Kazakh"));
|
||||
g_hash_table_insert (languagelist, "kl", _("Greenlandic"));
|
||||
g_hash_table_insert (languagelist, "km", _("Cambodian"));
|
||||
g_hash_table_insert (languagelist, "kn", _("Kannada"));
|
||||
g_hash_table_insert (languagelist, "ko", _("Korean"));
|
||||
g_hash_table_insert (languagelist, "ks", _("Kashmiri"));
|
||||
g_hash_table_insert (languagelist, "ku", _("Kurdish"));
|
||||
g_hash_table_insert (languagelist, "ky", _("Kirghiz"));
|
||||
g_hash_table_insert (languagelist, "la", _("Latin"));
|
||||
g_hash_table_insert (languagelist, "ln", _("Lingala"));
|
||||
g_hash_table_insert (languagelist, "lo", _("Laothian"));
|
||||
g_hash_table_insert (languagelist, "lt", _("Lithuanian"));
|
||||
g_hash_table_insert (languagelist, "lv", _("Latvian/Lettish"));
|
||||
g_hash_table_insert (languagelist, "mg", _("Malagasy"));
|
||||
g_hash_table_insert (languagelist, "mi", _("Maori"));
|
||||
g_hash_table_insert (languagelist, "mk", _("Macedonian"));
|
||||
g_hash_table_insert (languagelist, "ml", _("Malayalam"));
|
||||
g_hash_table_insert (languagelist, "mn", _("Mongolian"));
|
||||
g_hash_table_insert (languagelist, "mo", _("Moldavian"));
|
||||
g_hash_table_insert (languagelist, "mr", _("Marathi"));
|
||||
g_hash_table_insert (languagelist, "ms", _("Malay"));
|
||||
g_hash_table_insert (languagelist, "mt", _("Maltese"));
|
||||
g_hash_table_insert (languagelist, "my", _("Burmese"));
|
||||
g_hash_table_insert (languagelist, "na", _("Nauru"));
|
||||
g_hash_table_insert (languagelist, "ne", _("Nepali"));
|
||||
g_hash_table_insert (languagelist, "nl", _("Dutch"));
|
||||
g_hash_table_insert (languagelist, "no", _("Norwegian"));
|
||||
g_hash_table_insert (languagelist, "or", _("Oriya"));
|
||||
g_hash_table_insert (languagelist, "pa", _("Punjabi"));
|
||||
g_hash_table_insert (languagelist, "pl", _("Polish"));
|
||||
g_hash_table_insert (languagelist, "ps", _("Pashto/Pushto"));
|
||||
g_hash_table_insert (languagelist, "pt", _("Portuguese"));
|
||||
g_hash_table_insert (languagelist, "qu", _("Quechua"));
|
||||
g_hash_table_insert (languagelist, "rm", _("Rhaeto-Romance"));
|
||||
g_hash_table_insert (languagelist, "ro", _("Romanian"));
|
||||
g_hash_table_insert (languagelist, "ru", _("Russian"));
|
||||
g_hash_table_insert (languagelist, "sa", _("Kinyarwanda"));
|
||||
g_hash_table_insert (languagelist, "sd", _("Sanskrit"));
|
||||
g_hash_table_insert (languagelist, "sh", _("Serbo-Croatian"));
|
||||
g_hash_table_insert (languagelist, "si", _("Singhalese"));
|
||||
g_hash_table_insert (languagelist, "sk", _("Slovak"));
|
||||
g_hash_table_insert (languagelist, "sl", _("Slovenian"));
|
||||
g_hash_table_insert (languagelist, "sm", _("Samoan"));
|
||||
g_hash_table_insert (languagelist, "sn", _("Shona"));
|
||||
g_hash_table_insert (languagelist, "so", _("Somali"));
|
||||
g_hash_table_insert (languagelist, "sq", _("Albanian"));
|
||||
g_hash_table_insert (languagelist, "sr", _("Serbian"));
|
||||
g_hash_table_insert (languagelist, "su", _("Sundanese"));
|
||||
g_hash_table_insert (languagelist, "sv", _("Swedish"));
|
||||
g_hash_table_insert (languagelist, "sw", _("Swahili"));
|
||||
g_hash_table_insert (languagelist, "ta", _("Tamil"));
|
||||
g_hash_table_insert (languagelist, "te", _("Tegulu"));
|
||||
g_hash_table_insert (languagelist, "tg", _("Tajik"));
|
||||
g_hash_table_insert (languagelist, "th", _("Thai"));
|
||||
g_hash_table_insert (languagelist, "ti", _("Tigrinya"));
|
||||
g_hash_table_insert (languagelist, "tk", _("Turkmen"));
|
||||
g_hash_table_insert (languagelist, "tl", _("Tagalog"));
|
||||
g_hash_table_insert (languagelist, "to", _("Tonga"));
|
||||
g_hash_table_insert (languagelist, "tr", _("Turkish"));
|
||||
g_hash_table_insert (languagelist, "tt", _("Tatar"));
|
||||
g_hash_table_insert (languagelist, "tw", _("Twi"));
|
||||
g_hash_table_insert (languagelist, "uk", _("Ukrainian"));
|
||||
g_hash_table_insert (languagelist, "ur", _("Urdu"));
|
||||
g_hash_table_insert (languagelist, "uz", _("Uzbek"));
|
||||
g_hash_table_insert (languagelist, "vi", _("Vietnamese"));
|
||||
g_hash_table_insert (languagelist, "vo", _("Volapuk"));
|
||||
g_hash_table_insert (languagelist, "wo", _("Wolof"));
|
||||
g_hash_table_insert (languagelist, "xh", _("Xhosa"));
|
||||
g_hash_table_insert (languagelist, "yo", _("Yoruba"));
|
||||
g_hash_table_insert (languagelist, "zh", _("Chinese"));
|
||||
g_hash_table_insert (languagelist, "zu", _("Zulu"));
|
||||
|
||||
return languagelist;
|
||||
}
|
||||
|
||||
void
|
||||
dvdreadsrc_get_audio_stream_labels (ifo_handle_t * vts_file,
|
||||
GHashTable * languagelist)
|
||||
{
|
||||
GList *audio_stream_label = NULL;
|
||||
|
||||
if (vts_file->vts_pgcit) {
|
||||
int i;
|
||||
|
||||
/* 8 audio streams maximum */
|
||||
for (i = 0; i < 8; i++) {
|
||||
const gchar *format, *channel_nb, *language = NULL;
|
||||
guchar language_code[3] = "??";
|
||||
gchar *streamlabel;
|
||||
|
||||
if (vts_file->vts_pgcit->pgci_srp[0].pgc->audio_control[i] & 0x8000) {
|
||||
audio_attr_t *audio = &vts_file->vtsi_mat->vts_audio_attr[i];
|
||||
|
||||
if (audio->lang_type == 1) {
|
||||
language_code[0] = (audio->lang_code >> 8);
|
||||
language_code[1] = (audio->lang_code & 0xFF);
|
||||
language = g_hash_table_lookup (languagelist, language_code);
|
||||
}
|
||||
|
||||
if (!language) {
|
||||
language = "?";
|
||||
}
|
||||
|
||||
switch (audio->audio_format) {
|
||||
case 0:
|
||||
format = _("Dolby AC-3");
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
format = _("MPEG layer I, II or III");
|
||||
break;
|
||||
case 4:
|
||||
format = _("LPCM");
|
||||
break;
|
||||
case 6:
|
||||
format = _("Digital Theatre System");
|
||||
break;
|
||||
default:
|
||||
format = "?";
|
||||
}
|
||||
|
||||
switch (audio->channels) {
|
||||
case 1:
|
||||
channel_nb = _("Stereo");
|
||||
break;
|
||||
case 5:
|
||||
channel_nb = _("5.1");
|
||||
break;
|
||||
default:
|
||||
channel_nb = "?";
|
||||
}
|
||||
|
||||
streamlabel = g_strdup_printf ("%u : %s, %s %s", i + 1, language,
|
||||
format, channel_nb);
|
||||
audio_stream_label = g_list_append (audio_stream_label, streamlabel); /* "French, Dolby AC-3 Stereo" */
|
||||
|
||||
printf ("%u : %s, %s %s\n", i + 1, language, format, channel_nb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
g_list_foreach (audio_stream_label, (GFunc) g_free, NULL);
|
||||
g_list_free (audio_stream_label);
|
||||
}
|
||||
|
||||
void
|
||||
dvdreadsrc_get_subtitle_stream_labels (ifo_handle_t * vts_file,
|
||||
GHashTable * languagelist)
|
||||
{
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <2005> Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <dvdread/ifo_types.h>
|
||||
|
||||
#include "dvdreadsrc.h"
|
||||
|
||||
GHashTable * dvdreadsrc_init_languagelist (void);
|
||||
void dvdreadsrc_get_audio_stream_labels (ifo_handle_t *vts_file, GHashTable * languagelist);
|
||||
void dvdreadsrc_get_subtitle_stream_labels (ifo_handle_t *vts_file, GHashTable * languagelist);
|
Loading…
Reference in a new issue