mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
I lied, I am the One True Buildmaster
Original commit message from CVS: I lied, I am the One True Buildmaster
This commit is contained in:
parent
48c0c3a450
commit
9898bfadb3
3 changed files with 26 additions and 11 deletions
|
@ -774,6 +774,15 @@ GST_CHECK_FEATURE(AUDIOFILE, [audiofile], afsink afsrc, [
|
|||
AC_CHECK_LIB(audiofile, af_virtual_file_new, , HAVE_AUDIOFILE="no")
|
||||
fi])
|
||||
|
||||
dnl *** cdaudio ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
|
||||
GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
|
||||
GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
|
||||
AC_SUBST(CDAUDIO_CFLAGS)
|
||||
AC_SUBST(CDAUDIO_LIBS)
|
||||
])
|
||||
|
||||
|
||||
dnl *** CDParanoia ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_CDPARANOIA, true)
|
||||
GST_CHECK_FEATURE(CDPARANOIA, [CDParanoia], cdparanoia, [
|
||||
|
|
|
@ -34,6 +34,12 @@ else
|
|||
AUDIOFILE_DIR=
|
||||
endif
|
||||
|
||||
if USE_CDAUDIO
|
||||
CDAUDIO_DIR=cdaudio
|
||||
else
|
||||
CDAUDIO_DIR=
|
||||
endif
|
||||
|
||||
if USE_CDPARANOIA
|
||||
CDPARANOIA_DIR=cdparanoia
|
||||
else
|
||||
|
@ -359,6 +365,7 @@ SUBDIRS=\
|
|||
$(ARTS_DIR) \
|
||||
$(ARTSC_DIR) \
|
||||
$(AUDIOFILE_DIR) \
|
||||
$(CDAUDIO_DIR) \
|
||||
$(CDPARANOIA_DIR) \
|
||||
$(DIRAC_DIR) \
|
||||
$(DIVX_DIR) \
|
||||
|
@ -418,6 +425,7 @@ DIST_SUBDIRS=\
|
|||
arts \
|
||||
artsd \
|
||||
audiofile \
|
||||
cdaudio \
|
||||
cdparanoia \
|
||||
dirac \
|
||||
divx \
|
||||
|
|
|
@ -284,19 +284,17 @@ gst_cdaudio_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
}
|
||||
|
||||
static void
|
||||
print_track_info (GstCDAudio * cdaudio)
|
||||
debug_track_info (GstCDAudio * cdaudio)
|
||||
{
|
||||
gint i;
|
||||
|
||||
/*
|
||||
for (i = 0; i < cdaudio->info.disc_total_tracks; i++) {
|
||||
g_print ("%d %d %d %d:%02d\n", i,
|
||||
cdaudio->info.disc_track[i].track_length.frames,
|
||||
cdaudio->info.disc_track[i].track_pos.frames,
|
||||
cdaudio->info.disc_track[i].track_length.minutes,
|
||||
cdaudio->info.disc_track[i].track_length.seconds);
|
||||
}
|
||||
*/
|
||||
for (i = 0; i < cdaudio->info.disc_total_tracks; i++) {
|
||||
GST_DEBUG_OBJECT (cdaudio, "%d %d %d %d:%02d", i,
|
||||
cdaudio->info.disc_track[i].track_length.frames,
|
||||
cdaudio->info.disc_track[i].track_pos.frames,
|
||||
cdaudio->info.disc_track[i].track_length.minutes,
|
||||
cdaudio->info.disc_track[i].track_length.seconds);
|
||||
}
|
||||
}
|
||||
|
||||
static GstElementStateReturn
|
||||
|
@ -321,7 +319,7 @@ gst_cdaudio_change_state (GstElement * element)
|
|||
if (cd_stat (cdaudio->cd_desc, &cdaudio->info) < 0)
|
||||
return GST_STATE_FAILURE;
|
||||
|
||||
print_track_info (cdaudio);
|
||||
debug_track_info (cdaudio);
|
||||
|
||||
cdaudio->discid = cddb_discid (cdaudio->cd_desc);
|
||||
g_object_notify (G_OBJECT (cdaudio), "discid");
|
||||
|
|
Loading…
Reference in a new issue