summaryrefslogtreecommitdiffstats
path: root/gst/flv/gstflvparse.c
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2008-11-24 11:17:19 +0000
committerJulien Moutte <julien@moutte.net>2008-11-24 11:17:19 +0000
commit25a21ecdef154073baa7a247126b72143f3fd44b (patch)
tree48b07e8820e1c98d3b01e238c30c52b016b3661f /gst/flv/gstflvparse.c
parent2082d618f99327f27a76a2296c2846923c1bddf2 (diff)
downloadgst-plugins-bad-25a21ecdef154073baa7a247126b72143f3fd44b.tar.gz
gst-plugins-bad-25a21ecdef154073baa7a247126b72143f3fd44b.tar.bz2
gst-plugins-bad-25a21ecdef154073baa7a247126b72143f3fd44b.zip
gst/flv/gstflvdemux.c: Fix non key unit seeking by always going to the previous keyframe. Mark the discont flag when ...
Original commit message from CVS: 2008-11-24 Julien Moutte <julien@fluendo.com> * gst/flv/gstflvdemux.c: (gst_flv_demux_find_offset), (gst_flv_demux_handle_seek_push), (gst_flv_demux_handle_seek_pull): Fix non key unit seeking by always going to the previous keyframe. Mark the discont flag when we've moved in the file. * gst/flv/gstflvparse.c: (gst_flv_parse_audio_negotiate): MP3 streams are parsed already, makes autoplugged pipelines shorter.
Diffstat (limited to 'gst/flv/gstflvparse.c')
-rw-r--r--gst/flv/gstflvparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index 067ba94f..c4a3cb94 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -393,7 +393,8 @@ gst_flv_parse_audio_negotiate (GstFLVDemux * demux, guint32 codec_tag,
case 2:
case 14:
caps = gst_caps_new_simple ("audio/mpeg",
- "mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 3, NULL);
+ "mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 3,
+ "parsed", G_TYPE_BOOLEAN, TRUE, NULL);
codec_name = "MPEG 1 Audio, Layer 3 (MP3)";
break;
case 0: