diff options
author | Andy Wingo <wingo@pobox.com> | 2005-07-19 16:08:18 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-07-19 16:08:18 +0000 |
commit | 14a7cbe19edbd660e6e816d199e8229cbe54971b (patch) | |
tree | 66ba61274422544618bcae7dff793e5642dffbda /ext/dv/gstdvdec.c | |
parent | ee992ce60d7defb22caf0ffed4ef6f014cf008b8 (diff) |
ext/dv/gstdvdec.c (gst_dvdec_decode_video): Set the proper framerate on the outbound buffer.
Original commit message from CVS:
2005-07-19 Andy Wingo <wingo@pobox.com>
* ext/dv/gstdvdec.c (gst_dvdec_decode_video): Set the proper
framerate on the outbound buffer.
Diffstat (limited to 'ext/dv/gstdvdec.c')
-rw-r--r-- | ext/dv/gstdvdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 5da1787c..2f639917 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -1108,6 +1108,7 @@ gst_dvdec_decode_video (GstDVDec * dvdec, const guint8 * data) if ((dvdec->framerate != framerate) || (dvdec->height != height) || dvdec->wide != wide) { GstCaps *caps; + gboolean setcaps_ret; gint par_x, par_y; dvdec->framerate = framerate; @@ -1138,10 +1139,11 @@ gst_dvdec_decode_video (GstDVDec * dvdec, const guint8 * data) "format", GST_TYPE_FOURCC, GST_STR_FOURCC ("YUY2"), "width", G_TYPE_INT, 720, "height", G_TYPE_INT, height, - "framerate", G_TYPE_DOUBLE, framerate, + "framerate", G_TYPE_DOUBLE, framerate / dvdec->drop_factor, "pixel-aspect-ratio", GST_TYPE_FRACTION, par_x, par_y, NULL); - gst_pad_set_caps (dvdec->videosrcpad, caps); + setcaps_ret = gst_pad_set_caps (dvdec->videosrcpad, caps); gst_caps_unref (caps); + g_return_val_if_fail (setcaps_ret == TRUE, GST_FLOW_UNEXPECTED); } |