Make sure we call the app resolved before passing the final id/string to the index...
authorWim Taymans <wim.taymans@gmail.com>
Sat, 4 Jan 2003 16:57:31 +0000 (16:57 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sat, 4 Jan 2003 16:57:31 +0000 (16:57 +0000)
Original commit message from CVS:
Make sure we call the app resolved before passing the final id/string
to the index implemention.

gst/gstindex.c

index 04c09dbc7ed3c184d08f890f853adf4ea4757c77..26c97676ddf127174108abbce3fdcf284967deae 100644 (file)
@@ -420,14 +420,14 @@ gst_index_get_writer_id (GstIndex *index, GstObject *writer, gint *id)
 
   iclass = GST_INDEX_GET_CLASS (index);
 
-  if (iclass->resolve_writer) {
-    success = iclass->resolve_writer (index, writer, id, &writer_string);
-  }
-
   if (index->resolver) {
     success = index->resolver (index, writer, id, &writer_string, index->resolver_user_data);
   }
 
+  if (iclass->resolve_writer) {
+    success = iclass->resolve_writer (index, writer, id, &writer_string);
+  }
+
   return success;
 }