gst_message_new_duration -> gst_message_new_duration_changed
authorTim-Philipp Müller <tim@centricular.net>
Sun, 2 Sep 2012 00:31:53 +0000 (01:31 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 2 Sep 2012 00:31:53 +0000 (01:31 +0100)
ext/soup/gstsouphttpsrc.c
gst/matroska/matroska-demux.c

index 56ae3ca..a5702a5 100644 (file)
@@ -692,8 +692,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src)
       basesrc = GST_BASE_SRC_CAST (src);
       basesrc->segment.duration = src->content_size;
       gst_element_post_message (GST_ELEMENT (src),
-          gst_message_new_duration (GST_OBJECT (src), GST_FORMAT_BYTES,
-              src->content_size));
+          gst_message_new_duration_changed (GST_OBJECT (src)));
     }
   }
 
index 3664826..9476be5 100644 (file)
@@ -3674,8 +3674,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
           GST_OBJECT_UNLOCK (demux);
           if (!demux->invalid_duration) {
             gst_element_post_message (GST_ELEMENT_CAST (demux),
-                gst_message_new_duration (GST_OBJECT_CAST (demux),
-                    GST_FORMAT_TIME, GST_CLOCK_TIME_NONE));
+                gst_message_new_duration_changed (GST_OBJECT_CAST (demux)));
             demux->invalid_duration = TRUE;
           }
         } else {