GNOME Bugzilla – Bug 722276
vaapidecode: do not discard video info properties when the format is modified
Last modified: 2014-06-18 12:05:01 UTC
This patch makes vaapidecode set interlace mode for gstreamer >= 1.0.
Created attachment 266368 [details] [review] vaapidecode: set interlace-mode for gstreamer >= 1.2
Review of attachment 266368 [details] [review]: ::: gst/vaapi/gstvaapidecode.c @@ +184,3 @@ } state->caps = gst_video_info_to_caps(&vis); + gst_caps_set_interlaced(state->caps, vi); Hmmm, no, I don't think this is needed because normally gst_video_info_to_caps() supports all of them already. Or did this change recently?
Created attachment 272018 [details] [review] vaapidecode: do not discard video info properties when the format is modified Patch updated. The video info properties was re initialized by gst_video_info_set_format thus discarding interlace mode, framerate, flags and pixel aspect ratio. This patch takes care of copying those properties back to the video info structured after gst_video_info_set_format is called.
commit ead38a4d77d38bdc89c76e7856cb17bb73c698d2 Author: Matthieu Bouron <matthieu.bouron@collabora.com> Date: Wed Jan 15 16:36:29 2014 +0000 vaapidecode: do not discard video info props when the format changed. gst_video_info_set_format() does not preserve video info properties. In order to keep important information in the caps such as interlace mode, framerate, pixel aspect ratio, ... we need to manually copy back those properties after setting the new video format. https://bugzilla.gnome.org/show_bug.cgi?id=722276