ducatih264enc: announce stream-format and align in template caps
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 12 Sep 2012 10:10:27 +0000 (10:10 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 12 Sep 2012 10:10:27 +0000 (10:10 +0000)
Since these are set to specific values when the source pad is
set up, they are not subject to negotiation, so it's best to
announce them in the template caps so linking can fail early.

src/gstducatih264enc.c

index 33504b90026bdfddd70788d9f6757757703ad78d..74b8e4ec7104d43615771a01c86e80066210bdf0 100644 (file)
@@ -74,7 +74,8 @@ static GstStaticPadTemplate gst_ducati_h264enc_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("video/x-h264")
+    GST_STATIC_CAPS
+    ("video/x-h264, align=(string)au, stream-format=(string)byte-stream")
     );
 
 GST_BOILERPLATE (GstDucatiH264Enc, gst_ducati_h264enc, GstDucatiVidEnc,