diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2001-03-12 21:02:12 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2001-03-12 21:02:12 +0000 |
commit | 3ec275832ac76431cd2efb853dc80d970568d6f6 (patch) | |
tree | f864030741f8c4680684883d1abbabcb4f148a7e /editor | |
parent | db744107392dd3428f9b61a706db7a8782daf86b (diff) |
Merged the CAPSNEGO1 branch..
Original commit message from CVS:
Merged the CAPSNEGO1 branch..
Diffstat (limited to 'editor')
-rw-r--r-- | editor/gsteditorproperty.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/editor/gsteditorproperty.c b/editor/gsteditorproperty.c index 2e5e05ad2..ca77aeda5 100644 --- a/editor/gsteditorproperty.c +++ b/editor/gsteditorproperty.c @@ -329,14 +329,14 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element) while (pads) { GstPad *pad = (GstPad *)pads->data; - GList *caps = gst_pad_get_caps_list (pad); + GstCaps *caps = gst_pad_get_caps (pad); gchar *mime; gchar *data[2]; GtkCTreeNode *padnode; if (caps) { GstType *type; - type = gst_type_find_by_id (((GstCaps *)caps->data)->id); + type = gst_type_find_by_id (caps->id); mime = type->mime; } else { @@ -348,13 +348,8 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element) padnode = gtk_ctree_insert_node (GTK_CTREE (tree), NULL, NULL, data, 0, NULL, NULL, NULL, NULL, FALSE, TRUE); - while (caps) { - GstCaps *cap = (GstCaps *)caps->data; - gst_editor_add_caps_to_tree (cap, tree, padnode); - - caps = g_list_next (caps); - } + gst_editor_add_caps_to_tree (caps, tree, padnode); pads = g_list_next (pads); } |