examples/app/appsrc-stream.c: Use deep-notify until we can depend on a playbin2 with...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 6 Jun 2008 14:19:54 +0000 (14:19 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 6 Jun 2008 14:19:54 +0000 (14:19 +0000)
Original commit message from CVS:
* examples/app/appsrc-stream.c: (found_source), (main):
Use deep-notify until we can depend on a playbin2 with support for the
source property.

ChangeLog
examples/app/appsrc-stream.c

index acdaaed0ea1947fc3cbc1115b1a24b0f6b02bed4..c3c45e43cba11d1966bd8ee8c0be4b73177d03ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-06  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * examples/app/appsrc-stream.c: (found_source), (main):
+       Use deep-notify until we can depend on a playbin2 with support for the
+       source property.
+
 2008-06-06  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_init),
index 781adc3198814fc04fef9ad5253daf8c4ba08813..9a09e1b6d7fa86b29f1298ee3bd5560de8c9688d 100644 (file)
@@ -140,10 +140,10 @@ stop_feed (GstElement * playbin, App * app)
  * appsrc that we must handle. We set up some signals to start and stop pushing
  * data into appsrc */
 static void
-found_source (GObject * playbin, GParamSpec * pspec, App * app)
+found_source (GObject * object, GObject * orig, GParamSpec * pspec, App * app)
 {
   /* get a handle to the appsrc */
-  g_object_get (playbin, pspec->name, &app->appsrc, NULL);
+  g_object_get (orig, pspec->name, &app->appsrc, NULL);
 
   GST_DEBUG ("got appsrc %p", app->appsrc);
 
@@ -225,8 +225,8 @@ main (int argc, char *argv[])
 
   /* get notification when the source is created so that we get a handle to it
    * and can configure it */
-  g_signal_connect (app->playbin, "notify::source", (GCallback) found_source,
-      app);
+  g_signal_connect (app->playbin, "deep-notify::source",
+      (GCallback) found_source, app);
 
   /* go to playing and wait in a mainloop. */
   gst_element_set_state (app->playbin, GST_STATE_PLAYING);