summaryrefslogtreecommitdiffstats
path: root/examples/app
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-06-06 14:19:54 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-06-06 14:19:54 +0000
commit23692b06a08510828905576f15c86ab7925e516a (patch)
treeea768e1d42c975059ee6cee853c84794ee85404e /examples/app
parent44d86581a6c47a0ded3b28f7b910b55a8c19497f (diff)
downloadgst-plugins-bad-23692b06a08510828905576f15c86ab7925e516a.tar.gz
gst-plugins-bad-23692b06a08510828905576f15c86ab7925e516a.tar.bz2
gst-plugins-bad-23692b06a08510828905576f15c86ab7925e516a.zip
examples/app/appsrc-stream.c: Use deep-notify until we can depend on a playbin2 with support for the source property.
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.
Diffstat (limited to 'examples/app')
-rw-r--r--examples/app/appsrc-stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/app/appsrc-stream.c b/examples/app/appsrc-stream.c
index 781adc31..9a09e1b6 100644
--- a/examples/app/appsrc-stream.c
+++ b/examples/app/appsrc-stream.c
@@ -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);