Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Check if the caps change is a real format change or if only irrelevant
- * parts of the caps have changed or nothing at all.
- */
- is_format_change |= port_def.format.video.nFrameWidth != info->width;
- is_format_change |= port_def.format.video.nFrameHeight != info->height;
- is_format_change |= (port_def.format.video.xFramerate == 0
- && info->fps_n != 0)
- || (port_def.format.video.xFramerate !=
- (info->fps_n << 16) / (info->fps_d));
- is_format_change |= (self->codec_data != state->codec_data);
- GST_DEBUG_OBJECT(self, "is_format_change: %s, port_def.format.video.xFramerate: %zu, "
- "info->fps_n: %zu, info->fps_n << 16: %zu, info->fps_d: %zu, (info->fps_n << 16) / (info->fps_d): %zu",
- is_format_change ? "true" : "false",
- (long unsigned int)(port_def.format.video.xFramerate),
- (long unsigned int)(info->fps_n),
- (long unsigned int)(info->fps_n << 16),
- (long unsigned int)(info->fps_d),
- (long unsigned int)((info->fps_n << 16) / (info->fps_d)) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement