diff options
author | David Schleef <ds@schleef.org> | 2004-01-02 07:09:23 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-01-02 07:09:23 +0000 |
commit | 6c1b114eed9ec1bf3ffea9a63294e927e29cc2b8 (patch) | |
tree | 3c29572d6b4db945275248591c33c116864eeca5 /ext/esd/esdmon.c | |
parent | 39a338d51c31e3e77a4f00cbcf415c5822762ed0 (diff) |
Convert elements to use gst_pad_use_explicit_caps() where appropriate.
Original commit message from CVS:
Convert elements to use gst_pad_use_explicit_caps() where appropriate.
Diffstat (limited to 'ext/esd/esdmon.c')
-rw-r--r-- | ext/esd/esdmon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index e2a91ed4..394220e4 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -200,6 +200,7 @@ gst_esdmon_init(GTypeInstance *instance, gpointer g_class) gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (esdmon), "src"), "src"); gst_pad_set_get_function(esdmon->srcpad, gst_esdmon_get); + gst_pad_use_explicit_caps (esdmon->srcpad); gst_element_add_pad(GST_ELEMENT(esdmon), esdmon->srcpad); esdmon->fd = -1; @@ -256,8 +257,7 @@ gst_esdmon_get (GstPad *pad) if (!GST_PAD_CAPS (pad)) { gint sign = (esdmon->depth == 8 ? FALSE : TRUE); /* set caps on src pad */ - /* FIXME: do this dynamically */ - if (gst_pad_try_set_caps (esdmon->srcpad, + if (gst_pad_set_explicit_caps (esdmon->srcpad, gst_caps_new_simple ("audio/x-raw-int", "endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, sign, |