summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2019-12-04 01:03:49 +0000
committerTim-Philipp Müller <tim@centricular.com>2019-12-06 11:31:37 +0000
commiteea8d25a4325112d80d05a00957884dd95a34dc7 (patch)
tree212b3377251a8f3e7e42d039699bec505486d378
parenta0c6156a81d56c472a9eccd9797a0e77628067df (diff)
downloadgstreamer-plugins-good-eea8d25a4325112d80d05a00957884dd95a34dc7.tar.gz
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.c7
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);