matroska: update for GstToc API changes
authorTim-Philipp Müller <tim@centricular.net>
Sun, 24 Jun 2012 21:51:16 +0000 (22:51 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 24 Jun 2012 21:51:16 +0000 (22:51 +0100)
gst/matroska/matroska-demux.c
gst/matroska/matroska-mux.c
gst/matroska/matroska-read-common.c

index 84fb8dbcf9a40790d14e358a2f397bdbd1cff9ae..bfdbbb458807763da1c96cddc4fcc07f4ebd9be4 100644 (file)
@@ -481,7 +481,7 @@ gst_matroska_demux_reset (GstElement * element)
 
   /* free chapters TOC if any */
   if (demux->common.toc) {
-    gst_toc_free (demux->common.toc);
+    gst_toc_unref (demux->common.toc);
     demux->common.toc = NULL;
   }
 
@@ -1443,7 +1443,7 @@ gst_matroska_demux_query (GstMatroskaDemux * demux, GstPad * pad,
       gst_query_set_toc (query, toc, 0);
       res = TRUE;
       if (!demux->common.toc)
-        gst_toc_free (toc);
+        gst_toc_unref (toc);
       GST_OBJECT_UNLOCK (demux);
       break;
     }
index 91d1a1cffefeeda7e3bfafb873ea3be629ec0878..64362068129e0bb30f8c55dd61b0a8be04ab07fa 100644 (file)
@@ -813,7 +813,7 @@ gst_matroska_mux_handle_sink_event (GstCollectPads * pads,
         }
 
         gst_toc_setter_set_toc (GST_TOC_SETTER (mux), toc);
-        gst_toc_free (toc);
+        gst_toc_unref (toc);
       }
 
       gst_event_unref (event);
@@ -2676,7 +2676,7 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
     if (toc_entry != NULL) {
       g_list_free (toc_entry->subentries);
       toc_entry->subentries = NULL;
-      gst_toc_entry_free (toc_entry);
+      gst_toc_entry_unref (toc_entry);
       g_list_free (to_write);
     }
   }
index 3a2c8f82ac595d6e353edd7a2a14155b00f75ced..afe9fb7f6c6fa0861ca20be76d611e9926afee6a 100644 (file)
@@ -1008,7 +1008,7 @@ gst_matroska_read_common_parse_chapter_element (GstMatroskaReadCommon * common,
 
     toc_entry->subentries = g_list_append (toc_entry->subentries, chapter_info);
   } else
-    gst_toc_entry_free (chapter_info);
+    gst_toc_entry_unref (chapter_info);
 
   gst_tag_list_free (titles);
   return ret;
@@ -1076,7 +1076,7 @@ gst_matroska_read_common_parse_chapter_edition (GstMatroskaReadCommon * common,
   else {
     GST_DEBUG_OBJECT (common,
         "Skipping empty or hidden edition in the chapters TOC");
-    gst_toc_entry_free (edition_info);
+    gst_toc_entry_unref (edition_info);
   }
 
   return ret;
@@ -1123,7 +1123,7 @@ gst_matroska_read_common_parse_chapters (GstMatroskaReadCommon * common,
 
     common->toc = toc;
   } else
-    gst_toc_free (toc);
+    gst_toc_unref (toc);
 
   common->chapters_parsed = TRUE;