jifmux: Set output pad caps

Set output pad caps to guarantee caps on the buffers being
pushed downstream.
This commit is contained in:
Thiago Santos 2010-08-21 17:01:29 -03:00
parent d49acb5588
commit f664fd9c04
2 changed files with 3 additions and 1 deletions

View file

@ -182,6 +182,7 @@ gst_jif_mux_finalize (GObject * object)
static gboolean
gst_jif_mux_sink_setcaps (GstPad * pad, GstCaps * caps)
{
GstJifMux *self = GST_JIF_MUX_CAST (GST_PAD_PARENT (pad));
GstStructure *s = gst_caps_get_structure (caps, 0);
const gchar *variant;
@ -191,7 +192,7 @@ gst_jif_mux_sink_setcaps (GstPad * pad, GstCaps * caps)
/* FIXME: do we want to switch it like this or use a gobject property ? */
}
return TRUE;
return gst_pad_set_caps (self->priv->srcpad, caps);
}
static gboolean

View file

@ -39,6 +39,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_JIF_MUX))
#define GST_IS_JIF_MUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_JIF_MUX))
#define GST_JIF_MUX_CAST(obj) ((GstJifMux *) (obj))
typedef struct _GstJifMux GstJifMux;
typedef struct _GstJifMuxPrivate GstJifMuxPrivate;