mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
jpeg/png: Call video_decoder_negotiate()
This commit is contained in:
parent
ac2a366a12
commit
fa5697ec08
2 changed files with 3 additions and 0 deletions
|
@ -1051,6 +1051,8 @@ gst_jpeg_dec_negotiate (GstJpegDec * dec, gint width, gint height, gint clrspc)
|
|||
|
||||
gst_video_codec_state_unref (outstate);
|
||||
|
||||
gst_video_decoder_negotiate (GST_VIDEO_DECODER (dec));
|
||||
|
||||
GST_DEBUG_OBJECT (dec, "max_v_samp_factor=%d", dec->cinfo.max_v_samp_factor);
|
||||
GST_DEBUG_OBJECT (dec, "max_h_samp_factor=%d", dec->cinfo.max_h_samp_factor);
|
||||
}
|
||||
|
|
|
@ -330,6 +330,7 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
|
|||
pngdec->output_state =
|
||||
gst_video_decoder_set_output_state (GST_VIDEO_DECODER (pngdec), format,
|
||||
width, height, pngdec->input_state);
|
||||
gst_video_decoder_negotiate (GST_VIDEO_DECODER (pngdec));
|
||||
GST_DEBUG ("Final %d %d", GST_VIDEO_INFO_WIDTH (&pngdec->output_state->info),
|
||||
GST_VIDEO_INFO_HEIGHT (&pngdec->output_state->info));
|
||||
|
||||
|
|
Loading…
Reference in a new issue