On Wed Sep 18 06:49:54 2024 +0000, Ziqing Hui wrote:
But even if we return codec_format in wg_parser_stream_get_codec_format() for uncompressed, this is still not what the application expect. The application expect the result of wm_reader:stream_props_GetMediaType() to be the actual output format, so that it can create d3d texture later based on it. However, our codec_format is the output format of the first decodebin (see: wg_parser.c:pad_added_cb()), it is the format before handled by videoconverter. It is not the final output format.
I don't understand. We should be calling wg_parser_stream_enable() with that format, right?