examples: video-play-fixate announce ParamBuffer after fixation

This lets the fixation finish. Can this be made unneeded?
This commit is contained in:
columbarius 2021-10-23 19:00:14 +02:00 committed by Wim Taymans
parent 9f34885174
commit 110aac8c6f

View file

@ -306,6 +306,11 @@ on_stream_param_changed(void *_data, uint32_t id, const struct spa_pod *param)
fprintf(stderr, "got format:\n"); fprintf(stderr, "got format:\n");
spa_debug_format(2, NULL, param); spa_debug_format(2, NULL, param);
if (!spa_pod_is_fixated(param)) {
fprintf(stderr, "not fixated\n");
return;
}
if (spa_format_parse(param, &data->format.media_type, &data->format.media_subtype) < 0) if (spa_format_parse(param, &data->format.media_type, &data->format.media_subtype) < 0)
return; return;