pbutils: update discoverer for GstToc API changes
authorTim-Philipp Müller <tim@centricular.net>
Sun, 24 Jun 2012 21:47:05 +0000 (22:47 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 24 Jun 2012 21:47:05 +0000 (22:47 +0100)
gst-libs/gst/pbutils/gstdiscoverer-types.c
gst-libs/gst/pbutils/gstdiscoverer.c

index 098899f..0746ea8 100644 (file)
@@ -68,7 +68,7 @@ gst_discoverer_stream_info_finalize (GObject * object)
     gst_tag_list_free (info->tags);
 
   if (info->toc)
-    gst_toc_free (info->toc);
+    gst_toc_unref (info->toc);
 
   if (info->misc)
     gst_structure_free (info->misc);
@@ -130,7 +130,7 @@ gst_discoverer_info_copy_int (GstDiscovererStreamInfo * info,
     ret->tags = gst_tag_list_copy (info->tags);
 
   if (info->toc)
-    ret->toc = gst_toc_copy (info->toc);
+    ret->toc = gst_toc_ref (info->toc);
 
   if (info->misc)
     ret->misc = gst_structure_copy (info->misc);
@@ -369,7 +369,7 @@ gst_discoverer_info_finalize (GObject * object)
     gst_tag_list_free (info->tags);
 
   if (info->toc)
-    gst_toc_free (info->toc);
+    gst_toc_unref (info->toc);
 }
 
 static GstDiscovererInfo *
@@ -422,7 +422,7 @@ gst_discoverer_info_copy (GstDiscovererInfo * ptr)
     ret->tags = gst_tag_list_copy (ptr->tags);
 
   if (ptr->toc)
-    ret->toc = gst_toc_copy (ptr->toc);
+    ret->toc = gst_toc_ref (ptr->toc);
 
   g_hash_table_destroy (stream_map);
   return ret;
index 16e8089..89e7932 100644 (file)
@@ -634,7 +634,7 @@ uridecodebin_pad_removed_cb (GstElement * uridecodebin, GstPad * pad,
     gst_tag_list_free (ps->tags);
   }
   if (ps->toc) {
-    gst_toc_free (ps->toc);
+    gst_toc_unref (ps->toc);
   }
 
   g_slice_free (PrivateStream, ps);