ext/lame/gstlame.c: simplify

Original commit message from CVS:
* ext/lame/gstlame.c: (gst_lame_chain):
simplify
* ext/mad/gstmad.c: (gst_mad_handle_event):
fix event leak
* gst/typefind/gsttypefindfunctions.c: (mp3_type_find):
be able to detect mp3 files < 4096 bytes
This commit is contained in:
Benjamin Otte 2004-05-07 00:43:50 +00:00
parent bb396483ac
commit b581588127
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2004-05-05 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/lame/gstlame.c: (gst_lame_chain):
simplify
* ext/mad/gstmad.c: (gst_mad_handle_event):
fix event leak
* gst/typefind/gsttypefindfunctions.c: (mp3_type_find):
be able to detect mp3 files < 4096 bytes
2004-05-06 Wim Taymans <wim@fluendo.com>
* ext/theora/theoraenc.c: (gst_theora_enc_class_init),
@ -102,6 +111,7 @@
* ext/lame/gstlame.c:
correct defaults that lame_init puts out of range
>>>>>>> 1.601
2004-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/divx/gstdivxenc.c: (gst_divxenc_get_type),

View file

@ -327,10 +327,13 @@ mp3_type_find (GstTypeFind * tf, gpointer unused)
while (skipped < GST_MP3_TYPEFIND_TRY_SYNC) {
if (size <= 0) {
data = gst_type_find_peek (tf, skipped, GST_MP3_TYPEFIND_SYNC_SIZE);
size = GST_MP3_TYPEFIND_SYNC_SIZE * 2;
do {
size /= 2;
data = gst_type_find_peek (tf, skipped, size);
} while (size > 10 && !data);
if (!data)
break;
size = GST_MP3_TYPEFIND_SYNC_SIZE;
}
if (*data == 0xFF) {
guint8 *head_data = NULL;