[gnac/devel] Used libgnac_gstu_bin_add instead of gst_bin_add
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Used libgnac_gstu_bin_add instead of gst_bin_add
- Date: Fri, 22 Mar 2013 08:25:49 +0000 (UTC)
commit ba152703b95bb480508c6b61991356695978578c
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Mon Mar 18 23:57:16 2013 +0100
Used libgnac_gstu_bin_add instead of gst_bin_add
libgnac/libgnac-gst-utils.c | 7 +------
libgnac/libgnac-gst.c | 4 ++--
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/libgnac/libgnac-gst-utils.c b/libgnac/libgnac-gst-utils.c
index 1c6508a..923838d 100644
--- a/libgnac/libgnac-gst-utils.c
+++ b/libgnac/libgnac-gst-utils.c
@@ -48,12 +48,7 @@ libgnac_gstu_make_pipeline_element(GstElement *bin,
return NULL;
}
- if (!gst_bin_add(GST_BIN(bin), elem)) {
- libgnac_debug("Failed to add %s element to the bin", element);
- g_set_error(error, LIBGNAC_ERROR, LIBGNAC_ERROR_PIPELINE_CREATION,
- _("Failed to add %s element"), element);
- return NULL;
- }
+ if (!libgnac_gstu_bin_add(bin, elem, error)) return NULL;
return elem;
}
diff --git a/libgnac/libgnac-gst.c b/libgnac/libgnac-gst.c
index 9373ac5..fd2e85f 100644
--- a/libgnac/libgnac-gst.c
+++ b/libgnac/libgnac-gst.c
@@ -129,7 +129,7 @@ libgnac_gst_get_audio_bin(LibgnacMediaItem *item,
gst_parse_context_free(context);
- g_return_val_if_fail(gst_bin_add(GST_BIN(bin), encoder), NULL);
+ g_return_val_if_fail(libgnac_gstu_bin_add(bin, encoder, error), NULL);
g_return_val_if_fail(
gst_element_link_many(converter, resample, rate, encoder, NULL),
NULL);
@@ -174,7 +174,7 @@ libgnac_gst_get_video_bin(LibgnacMediaItem *item,
gst_parse_context_free(context);
- g_return_val_if_fail(gst_bin_add(GST_BIN(bin), encoder), NULL);
+ g_return_val_if_fail(libgnac_gstu_bin_add(bin, encoder, error), NULL);
g_return_val_if_fail(
gst_element_link_many(converter, rate, encoder, NULL),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]