audiocdsrc: update for TOC API change
This commit is contained in:
parent
99d73c94e9
commit
ca31913c04
@ -1390,13 +1390,13 @@ gst_audio_cd_src_add_tags (GstAudioCdSrc * src)
|
|||||||
GST_DEBUG ("src->tags = %" GST_PTR_FORMAT, src->tags);
|
GST_DEBUG ("src->tags = %" GST_PTR_FORMAT, src->tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static GstToc *
|
||||||
gst_audio_cd_src_add_toc (GstAudioCdSrc * src)
|
gst_audio_cd_src_make_toc (GstAudioCdSrc * src, GstTocScope scope)
|
||||||
{
|
{
|
||||||
GstToc *toc;
|
GstToc *toc;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
toc = gst_toc_new ();
|
toc = gst_toc_new (scope);
|
||||||
|
|
||||||
for (i = 0; i < src->priv->num_tracks; ++i) {
|
for (i = 0; i < src->priv->num_tracks; ++i) {
|
||||||
GstAudioCdSrcTrack *track;
|
GstAudioCdSrcTrack *track;
|
||||||
@ -1424,6 +1424,19 @@ gst_audio_cd_src_add_toc (GstAudioCdSrc * src)
|
|||||||
g_free (uid);
|
g_free (uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return toc;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_audio_cd_src_add_toc (GstAudioCdSrc * src)
|
||||||
|
{
|
||||||
|
GstToc *toc;
|
||||||
|
|
||||||
|
/* FIXME: send two TOC events if needed, one global, one current */
|
||||||
|
toc = gst_audio_cd_src_make_toc (src, GST_TOC_SCOPE_GLOBAL);
|
||||||
|
|
||||||
|
src->priv->toc_event = gst_event_new_toc (toc, FALSE);
|
||||||
|
|
||||||
/* If we're in continuous mode (stream = whole disc), send a TOC event
|
/* If we're in continuous mode (stream = whole disc), send a TOC event
|
||||||
* downstream, so matroskamux etc. can write a TOC to indicate where the
|
* downstream, so matroskamux etc. can write a TOC to indicate where the
|
||||||
* various tracks are */
|
* various tracks are */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user