gst/asfdemux/gstasfdemux.c: Don't push incomplete packets.

Original commit message from CVS:
Reviewd by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* 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.
This commit is contained in:
Ronald S. Bultje 2004-10-25 09:01:43 +00:00
parent e40b490c57
commit 3c388022f7
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2004-10-25 James Morrison <ja2morri@csclub.uwaterloo.ca>
Reviewd by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* 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 <rbultje@ronald.bitfreak.net> 2004-10-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l/Makefile.am: * sys/v4l/Makefile.am:

View file

@ -1223,6 +1223,11 @@ gst_asf_demux_process_chunk (GstASFDemux * asf_demux,
if (stream->frag_offset < segment_info->segment_size) { if (stream->frag_offset < segment_info->segment_size) {
/* We don't have the whole packet yet */ /* 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 { } else {
/* We have the whole packet now so we should push the packet to /* 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 the src pad now. First though we should check if we need to do