summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorArwed v. Merkatz <v.merkatz@gmx.net>2004-12-06 19:32:33 +0000
committerArwed v. Merkatz <v.merkatz@gmx.net>2004-12-06 19:32:33 +0000
commita9d5e7b74fd8ba9531a42bacdd90ee76c5ef8fdb (patch)
treea691b591eddc28ed40c87e50bca557b5e599f698 /gst
parentcffd87dc291871143c91a8658906bc898e7f4b97 (diff)
set correct buffer durations in mp3parse, set default_duration in matroskamux for mpeg1 audio
Original commit message from CVS: set correct buffer durations in mp3parse, set default_duration in matroskamux for mpeg1 audio
Diffstat (limited to 'gst')
-rw-r--r--gst/matroska/matroska-mux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 2aded266..0a9ff29c 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -526,12 +526,18 @@ gst_matroska_mux_audio_pad_link (GstPad * pad, const GstCaps * caps)
switch (layer) {
case 1:
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L1);
+ context->default_duration =
+ 384 * GST_SECOND / audiocontext->samplerate;
break;
case 2:
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L2);
+ context->default_duration =
+ 1152 * GST_SECOND / audiocontext->samplerate;
break;
case 3:
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L3);
+ context->default_duration =
+ 1152 * GST_SECOND / audiocontext->samplerate;
break;
}
break;