mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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).
This commit is contained in:
parent
06600b2cd9
commit
1df530eaa7
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue