diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2019-12-04 01:03:49 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-12-06 11:31:37 +0000 |
commit | eea8d25a4325112d80d05a00957884dd95a34dc7 (patch) | |
tree | 212b3377251a8f3e7e42d039699bec505486d378 | |
parent | a0c6156a81d56c472a9eccd9797a0e77628067df (diff) |
rtpjpegdepay: outputs framed jpeg
Add parsed=true to output caps, as we always output
whole frames, timestamped and all. Means also that
the output can be decoded by avdec_mjpeg wihout
plugging an extra parser (which has no rank).
-rw-r--r-- | gst/rtp/gstrtpjpegdepay.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpjpegdepay.c b/gst/rtp/gstrtpjpegdepay.c index 59274f111..d424b64d9 100644 --- a/gst/rtp/gstrtpjpegdepay.c +++ b/gst/rtp/gstrtpjpegdepay.c @@ -627,9 +627,10 @@ gst_rtp_jpeg_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) GstCaps *outcaps; outcaps = - gst_caps_new_simple ("image/jpeg", "framerate", GST_TYPE_FRACTION, - rtpjpegdepay->frate_num, rtpjpegdepay->frate_denom, "width", - G_TYPE_INT, width, "height", G_TYPE_INT, height, NULL); + gst_caps_new_simple ("image/jpeg", "parsed", G_TYPE_BOOLEAN, TRUE, + "framerate", GST_TYPE_FRACTION, rtpjpegdepay->frate_num, + rtpjpegdepay->frate_denom, "width", G_TYPE_INT, width, + "height", G_TYPE_INT, height, NULL); gst_pad_set_caps (depayload->srcpad, outcaps); gst_caps_unref (outcaps); |