diff options
author | Robin Stocker <robin@nibor.org> | 2008-10-29 16:53:54 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-10-29 16:53:54 +0000 |
commit | 8fac56594ef682ed5b0a33fd0fa633ace60e0a30 (patch) | |
tree | 328cee76439e65a0744d2c7a23b397e5da96b6b6 /gst | |
parent | 80c3258a6ac2c796df247dd372e94e3a765a93c1 (diff) | |
download | gst-plugins-bad-8fac56594ef682ed5b0a33fd0fa633ace60e0a30.tar.gz gst-plugins-bad-8fac56594ef682ed5b0a33fd0fa633ace60e0a30.tar.bz2 gst-plugins-bad-8fac56594ef682ed5b0a33fd0fa633ace60e0a30.zip |
gst/real/gstrealvideodec.c: A RealVideo video inside a container (for example MKV) should use the
Original commit message from CVS:
Patch by: Robin Stocker <robin at nibor dot org>
* gst/real/gstrealvideodec.c: (gst_real_video_dec_setcaps):
A RealVideo video inside a container (for example MKV) should use the
PAR which is specified on the sinkpad caps. Fixes #558416.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/real/gstrealvideodec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/real/gstrealvideodec.c b/gst/real/gstrealvideodec.c index 5abe945e..74cb6f5a 100644 --- a/gst/real/gstrealvideodec.c +++ b/gst/real/gstrealvideodec.c @@ -380,6 +380,13 @@ gst_real_video_dec_setcaps (GstPad * pad, GstCaps * caps) "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'), "framerate", GST_TYPE_FRACTION, framerate_num, framerate_denom, "width", G_TYPE_INT, width, "height", G_TYPE_INT, height, NULL); + + /* set PAR if one was specified in the sink caps */ + if ((v = gst_structure_get_value (s, "pixel-aspect-ratio"))) { + gst_structure_set_value (gst_caps_get_structure (caps, 0), + "pixel-aspect-ratio", v); + } + bres = gst_pad_set_caps (GST_PAD (dec->src), caps); gst_caps_unref (caps); if (!bres) |