diff --git a/ChangeLog b/ChangeLog index e4b05776b2..3df6c333c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-10-25 James Morrison + + Reviewd by: Ronald S. Bultje + + * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_chunk): + Don't push incomplete packets. + * gst/typefind/gsttypefindfunctions.c: (m4a_type_find): + Fix MPEG-4 audio typefinding. + 2004-10-25 Ronald S. Bultje * sys/v4l/Makefile.am: diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 425c7b0fe5..e698b79bd4 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -1223,6 +1223,11 @@ gst_asf_demux_process_chunk (GstASFDemux * asf_demux, if (stream->frag_offset < segment_info->segment_size) { /* We don't have the whole packet yet */ + } else if (got_bytes < segment_info->chunk_size) { + /* We didn't get the entire chunk, so don't push it down the pipeline. */ + gst_buffer_unref (stream->payload); + stream->payload = NULL; + stream->frag_offset = 0; } else { /* We have the whole packet now so we should push the packet to the src pad now. First though we should check if we need to do