[totem] Change all calls to gst_element_get_pad() to gst_element_get_static_pad()
- From: Sebastian Dröge <sdroege src gnome org>
- To: svn-commits-list gnome org
- Subject: [totem] Change all calls to gst_element_get_pad() to gst_element_get_static_pad()
- Date: Tue, 7 Jul 2009 20:11:56 +0000 (UTC)
commit 469da6b67e71005726064e150a06994cd51e8677
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Tue Jul 7 22:07:16 2009 +0200
Change all calls to gst_element_get_pad() to gst_element_get_static_pad()
gst_element_get_pad() is deprecated for some reasons (see the docs)
and all places where it was used should use get_static_pad() anyway.
ChangeLog | 8 ++++++++
src/backend/bacon-video-widget-gst-0.10.c | 12 ++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 64e4f29..c7ebdfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-07-07 Sebastian Dröge <sebastian droege collabora co uk>
+
+ * src/backend/bacon-video-widget-gst-0.10.c:
+ Change all calls to gst_element_get_pad() to gst_element_get_static_pad()
+
+ gst_element_get_pad() is deprecated for some reasons (see the docs)
+ and all places where it was used should use get_static_pad() anyway.
+
2009-06-30 Bastien Nocera <hadess hadess net>
* src/backend/bacon-video-widget-gst-0.10.c
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 95a19e4..e44cf3e 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -2762,7 +2762,7 @@ set_audio_filter (BaconVideoWidget *bvw)
/* construct possible caps to filter down to our chosen caps */
/* Start with what the audio sink supports, but limit the allowed
* channel count to our speaker output configuration */
- pad = gst_element_get_pad (bvw->priv->audio_capsfilter, "src");
+ pad = gst_element_get_static_pad (bvw->priv->audio_capsfilter, "src");
caps = gst_pad_peer_get_caps (pad);
gst_object_unref (pad);
@@ -2784,7 +2784,7 @@ set_audio_filter (BaconVideoWidget *bvw)
}
/* reset */
- pad = gst_element_get_pad (bvw->priv->audio_capsfilter, "src");
+ pad = gst_element_get_static_pad (bvw->priv->audio_capsfilter, "src");
gst_pad_set_caps (pad, NULL);
gst_object_unref (pad);
}
@@ -4045,18 +4045,18 @@ setup_vis (BaconVideoWidget * bvw)
gst_bin_add_many (GST_BIN (vis_bin), vis_element, vis_capsfilter, NULL);
/* Sink ghostpad */
- pad = gst_element_get_pad (vis_element, "sink");
+ pad = gst_element_get_static_pad (vis_element, "sink");
gst_element_add_pad (vis_bin, gst_ghost_pad_new ("sink", pad));
gst_object_unref (pad);
/* Source ghostpad, link with vis_element */
- pad = gst_element_get_pad (vis_capsfilter, "src");
+ pad = gst_element_get_static_pad (vis_capsfilter, "src");
gst_element_add_pad (vis_bin, gst_ghost_pad_new ("src", pad));
gst_element_link_pads (vis_element, "src", vis_capsfilter, "sink");
gst_object_unref (pad);
/* Get allowed output caps from visualisation element */
- pad = gst_element_get_pad (vis_element, "src");
+ pad = gst_element_get_static_pad (vis_element, "src");
caps = gst_pad_get_allowed_caps (pad);
gst_object_unref (pad);
@@ -6250,7 +6250,7 @@ bacon_video_widget_new (int width, int height,
gst_element_link_pads (bvw->priv->audio_capsfilter, "src",
audio_sink, "sink");
- pad = gst_element_get_pad (bvw->priv->audio_capsfilter, "sink");
+ pad = gst_element_get_static_pad (bvw->priv->audio_capsfilter, "sink");
gst_element_add_pad (bin, gst_ghost_pad_new ("sink", pad));
gst_object_unref (pad);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]