mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
examples: video-play-fixate announce ParamBuffer after fixation
This lets the fixation finish. Can this be made unneeded?
This commit is contained in:
parent
9f34885174
commit
110aac8c6f
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue