diff options
author | Dave Robillard <dave@drobilla.net> | 2009-08-15 17:26:39 -0400 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-08-15 17:26:39 -0400 |
commit | 9a9917e89144923a79acaf8745ba7b958feda2a4 (patch) | |
tree | 46b8383d03acd11adb6d085abd32b44e5913da63 /gst/asfmux | |
parent | e46ff7bda0f7996b456476dccb4a822688a690fb (diff) | |
parent | 2aa6fa29edf380a40c962a85aad3501950c71492 (diff) | |
download | gst-plugins-bad-9a9917e89144923a79acaf8745ba7b958feda2a4.tar.gz gst-plugins-bad-9a9917e89144923a79acaf8745ba7b958feda2a4.tar.bz2 gst-plugins-bad-9a9917e89144923a79acaf8745ba7b958feda2a4.zip |
Merge branch 'master' of git://anongit.freedesktop.org/gstreamer/gst-plugins-bad into fdo
Diffstat (limited to 'gst/asfmux')
-rw-r--r-- | gst/asfmux/gstasfmux.c | 6 | ||||
-rw-r--r-- | gst/asfmux/gstasfmux.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index 83f52701..7f17169f 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -1604,7 +1604,7 @@ gst_asf_mux_write_indexes (GstAsfMux * asfmux) /* write simple indexes for video medias */ ordered_pads = - g_slist_sort (asfmux->collect->data, + g_slist_sort (g_slist_copy (asfmux->collect->data), (GCompareFunc) stream_number_compare); for (walker = ordered_pads; walker; walker = g_slist_next (walker)) { GstAsfPad *pad = (GstAsfPad *) walker->data; @@ -1613,10 +1613,12 @@ gst_asf_mux_write_indexes (GstAsfMux * asfmux) if (ret != GST_FLOW_OK) { GST_ERROR_OBJECT (asfmux, "Failed to write simple index for stream %" G_GUINT16_FORMAT, (guint16) pad->stream_number); - return ret; + goto cleanup_and_return; } } } +cleanup_and_return: + g_slist_free (ordered_pads); return ret; } diff --git a/gst/asfmux/gstasfmux.h b/gst/asfmux/gstasfmux.h index 2b71fa36..4e13b36a 100644 --- a/gst/asfmux/gstasfmux.h +++ b/gst/asfmux/gstasfmux.h @@ -139,9 +139,6 @@ struct _GstAsfMux /* pads */ GstPad *srcpad; - /* sinkpads, video first */ - GSList *sinkpads; - GstCollectPads *collect; GstPadEventFunction collect_event; }; |