gst/avi/gstavidemux.c: There was something wrong with the index massaging.

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_massage_index):
There was something wrong with the index massaging.
This commit is contained in:
Ronald S. Bultje 2004-10-04 17:29:27 +00:00
parent b90716dd18
commit 9712010d44
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-04 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/avi/gstavidemux.c: (gst_avi_demux_massage_index):
There was something wrong with the index massaging.
2004-10-04 Wim Taymans <wim@fluendo.com> 2004-10-04 Wim Taymans <wim@fluendo.com>
* ext/jpeg/gstjpeg.c: (smoke_type_find), (plugin_init): * ext/jpeg/gstjpeg.c: (smoke_type_find), (plugin_init):

View file

@ -1419,7 +1419,7 @@ gst_avi_demux_massage_index (GstAviDemux * avi,
entry2 = entry; entry2 = entry;
else { else {
entry2 = &entries[i - 1]; entry2 = &entries[i - 1];
list = g_list_insert_before (list, one, entry2); list = g_list_insert_before (list, one->next, entry2);
entry = one->data; entry = one->data;
one = one->next; one = one->next;
} }
@ -1455,7 +1455,7 @@ gst_avi_demux_massage_index (GstAviDemux * avi,
for (i = 0, one = list; one != NULL; one = one->next, i++) { for (i = 0, one = list; one != NULL; one = one->next, i++) {
entry = one->data; entry = one->data;
memcpy (&avi->index_entries[i], entry, sizeof (gst_avi_index_entry)); memcpy (&avi->index_entries[i], entry, sizeof (gst_avi_index_entry));
/*g_assert (i == entry->index_nr); */ avi->index_entries[i].index_nr = i;
} }
GST_LOG ("Freeing original index list"); GST_LOG ("Freeing original index list");