gst/gstpipeline.c: Add 'Since: 0.10.5' to gtk-doc blurb for added property.
authorTim-Philipp Müller <tim@centricular.net>
Tue, 14 Mar 2006 16:32:58 +0000 (16:32 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 14 Mar 2006 16:32:58 +0000 (16:32 +0000)
Original commit message from CVS:
* gst/gstpipeline.c: (gst_pipeline_class_init):
Add 'Since: 0.10.5' to gtk-doc blurb for added property.
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Don't try to typefind empty streams.

ChangeLog
gst/gstpipeline.c
plugins/elements/gsttypefindelement.c

index 4d6bd78..a254f54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-03-14  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstpipeline.c: (gst_pipeline_class_init):
+         Add 'Since: 0.10.5' to gtk-doc blurb for added property.
+
+       * plugins/elements/gsttypefindelement.c:
+       (gst_type_find_element_handle_event):
+         Don't try to typefind empty streams.
+
 2006-03-14  Wim Taymans  <wim@fluendo.com>
 
        * libs/gst/base/gstbasesink.c: (gst_base_sink_do_sync),
index 759854a..c733c34 100644 (file)
@@ -201,6 +201,8 @@ gst_pipeline_class_init (gpointer g_class, gpointer class_data)
    * The expected delay needed for elements to spin up to the
    * PLAYING state expressed in nanoseconds.
    * see gst_pipeline_set_delay() for more information on this option.
+   *
+   * Since: 0.10.5
    **/
   g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DELAY,
       g_param_spec_uint64 ("delay", "Delay",
index 2c1f0b6..efeec40 100644 (file)
@@ -470,8 +470,10 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
 
           /* we might not have started typefinding yet because there was not
            * enough data so far; just give it a shot now and see what we get */
-          caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind),
-              typefind->store, &prob);
+          if (typefind->store) {
+            caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind),
+                typefind->store, &prob);
+          }
 
           if (caps && prob >= typefind->min_probability) {
             g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],