From e640bc6a4bdd8fae0d31edd6b4a3f21b348c33f2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Aug 2007 16:10:47 +0000 Subject: [PATCH] gst/rtp/gstrtpmpvdepay.c: Set the mpegversion in the caps so that autoplugging does not get confused. Original commit message from CVS: * gst/rtp/gstrtpmpvdepay.c: Set the mpegversion in the caps so that autoplugging does not get confused. --- ChangeLog | 6 ++++++ gst/rtp/gstrtpmpvdepay.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55b47e177e..383974d497 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-10 Wim Taymans + + * gst/rtp/gstrtpmpvdepay.c: + Set the mpegversion in the caps so that autoplugging does not get + confused. + 2007-08-09 Thomas Vander Stichele * po/hu.po: diff --git a/gst/rtp/gstrtpmpvdepay.c b/gst/rtp/gstrtpmpvdepay.c index 08d92a5d54..f1fe41cc6e 100644 --- a/gst/rtp/gstrtpmpvdepay.c +++ b/gst/rtp/gstrtpmpvdepay.c @@ -48,11 +48,14 @@ enum ARG_0, }; +/* FIXME, we set the mpeg version to 2, we should ideally be looking at contents + * of the stream to figure out the version */ static GstStaticPadTemplate gst_rtp_mpv_depay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/mpeg, systemstream = (boolean) FALSE") + GST_STATIC_CAPS + ("video/mpeg, mpegversion = (int) 2, systemstream = (boolean) FALSE") ); static GstStaticPadTemplate gst_rtp_mpv_depay_sink_template =