gst/avi/gstavidemux.c: There was something wrong with the index massaging.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 4 Oct 2004 17:29:27 +0000 (17:29 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 4 Oct 2004 17:29:27 +0000 (17:29 +0000)
Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_massage_index):
There was something wrong with the index massaging.

ChangeLog
gst/avi/gstavidemux.c

index 0deee78c4c7b727bf4f85bc6565ca5456b4470e0..62fcd15bb536a856e6b785508805b38c1f7bb980 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * ext/jpeg/gstjpeg.c: (smoke_type_find), (plugin_init):
index 5daeb04c9d85e20a84777c33b60bd5fac925176e..84e5bace41efd92f830a817b4573090fede501cf 100644 (file)
@@ -1419,7 +1419,7 @@ gst_avi_demux_massage_index (GstAviDemux * avi,
           entry2 = entry;
         else {
           entry2 = &entries[i - 1];
-          list = g_list_insert_before (list, one, entry2);
+          list = g_list_insert_before (list, one->next, entry2);
           entry = one->data;
           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++) {
     entry = one->data;
     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");