diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-16 22:09:45 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-16 22:09:45 +0000 |
commit | c10d0124d708382fcaf603a199b010062e9498bd (patch) | |
tree | 2385fbc1a84a9fe8e06cd975ffd788968f5f8e34 /examples/dynparams | |
parent | 1aac3cfd1aaf074b76cc7e37c7902bcac436fec0 (diff) | |
download | gst-plugins-bad-c10d0124d708382fcaf603a199b010062e9498bd.tar.gz gst-plugins-bad-c10d0124d708382fcaf603a199b010062e9498bd.tar.bz2 gst-plugins-bad-c10d0124d708382fcaf603a199b010062e9498bd.zip |
Fix example
Original commit message from CVS:
Fix example
Diffstat (limited to 'examples/dynparams')
-rw-r--r-- | examples/dynparams/filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dynparams/filter.c b/examples/dynparams/filter.c index 55b92de9..98623480 100644 --- a/examples/dynparams/filter.c +++ b/examples/dynparams/filter.c @@ -318,7 +318,7 @@ cb_parse_clicked (GtkButton *button, gpointer *user_data) ui_feedback_add (fd->ui, "Error : try setting an input pipe.\n"); return; } - if (fd->input) gst_bin_destroy (GST_BIN (fd->input)); + if (fd->input) gst_object_unref (GST_OBJECT (fd->input)); fd->input = GST_ELEMENT (gst_parse_launch (fd->input_pipe, &error)); if (error) { @@ -333,7 +333,7 @@ cb_parse_clicked (GtkButton *button, gpointer *user_data) ui_feedback_add (fd->ui, "Error : try setting an output pipe.\n"); return; } - if (fd->output) gst_bin_destroy (GST_BIN (fd->output)); + if (fd->output) gst_object_unref (GST_OBJECT (fd->output)); fd->output = GST_ELEMENT (gst_parse_launch (fd->output_pipe, &error)); if (error) { @@ -344,7 +344,7 @@ cb_parse_clicked (GtkButton *button, gpointer *user_data) } /* try to create filter */ - if (fd->filter) gst_element_destroy (GST_BIN (fd->filter)); + if (fd->filter) gst_object_unref (GST_OBJECT (fd->filter)); fd->filter = gst_element_factory_make (fd->filter_element, "filter"); if (fd->filter == NULL) { |