oggmux: free stream map caps when done
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 2 Feb 2011 17:30:15 +0000 (17:30 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 2 Feb 2011 17:34:42 +0000 (17:34 +0000)
ext/ogg/gstoggmux.c

index 6dfbf61..3329824 100644 (file)
@@ -283,6 +283,7 @@ gst_ogg_mux_ogg_pad_destroy_notify (GstCollectData * data)
   GstBuffer *buf;
 
   ogg_stream_clear (&oggpad->map.stream);
+  gst_caps_replace (&oggpad->map.caps, NULL);
 
   if (oggpad->pagebuffers) {
     while ((buf = g_queue_pop_head (oggpad->pagebuffers)) != NULL) {