oggdemux: fix somtimes pad

This commit is contained in:
Wim Taymans 2011-11-04 12:53:33 +01:00
parent cf8481b990
commit 75fea4f535

View file

@ -1697,7 +1697,7 @@ gst_ogg_chain_new_stream (GstOggChain * chain, guint32 serialno)
GST_DEBUG_OBJECT (chain->ogg, GST_DEBUG_OBJECT (chain->ogg,
"creating new stream %08x in chain %p", serialno, chain); "creating new stream %08x in chain %p", serialno, chain);
name = g_strdup_printf ("serial_%08x", serialno); name = g_strdup_printf ("src_%08x", serialno);
ret = g_object_new (GST_TYPE_OGG_PAD, "name", name, NULL); ret = g_object_new (GST_TYPE_OGG_PAD, "name", name, NULL);
g_free (name); g_free (name);
/* we own this one */ /* we own this one */
@ -1771,7 +1771,7 @@ enum
}; };
static GstStaticPadTemplate ogg_demux_src_template_factory = static GstStaticPadTemplate ogg_demux_src_template_factory =
GST_STATIC_PAD_TEMPLATE ("src_%d", GST_STATIC_PAD_TEMPLATE ("src_%08x",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_SOMETIMES, GST_PAD_SOMETIMES,
GST_STATIC_CAPS_ANY); GST_STATIC_CAPS_ANY);