gst/mpegstream/gstmpegparse.c: When we have received a new SCR right in the first buffer after we should handle the b...

Original commit message from CVS:
2004-01-06  Ronald Bultje  <rbultje@ronald.bitfreak.net>

* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_loop):
When we have received a new SCR right in the first buffer after
a seek (so in the same cycle that handles the discont), we should
handle the buffer instead of unreffing it, else we lose data.
This commit is contained in:
Ronald S. Bultje 2004-01-06 12:31:31 +00:00
parent c3c9ad003c
commit 7334e3b7d8
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2004-01-06 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_loop):
When we have received a new SCR right in the first buffer after
a seek (so in the same cycle that handles the discont), we should
handle the buffer instead of unreffing it, else we lose data.
2004-01-06 Iain <iain@prettypeople.org> 2004-01-06 Iain <iain@prettypeople.org>
* gst/intfloat/gstint2float.c (gst_int2float_link): Set the * gst/intfloat/gstint2float.c (gst_int2float_link): Set the

View file

@ -482,11 +482,10 @@ gst_mpeg_parse_loop (GstElement *element)
mpeg_parse->discont_pending = FALSE; mpeg_parse->discont_pending = FALSE;
} }
else { else {
GST_DEBUG ("waiting for SCR\n"); GST_DEBUG ("waiting for SCR");
}
gst_buffer_unref (GST_BUFFER (data)); gst_buffer_unref (GST_BUFFER (data));
return; return;
}
} }
size = GST_BUFFER_SIZE (data); size = GST_BUFFER_SIZE (data);