mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-12 05:34:05 -04:00
examples: support REQUEST like video-src
This commit is contained in:
parent
8f22785cf0
commit
6a3ac7f7b0
1 changed files with 6 additions and 1 deletions
|
|
@ -192,7 +192,11 @@ static void on_stream_state_changed(void *_data, enum pw_stream_state old, enum
|
|||
interval.tv_sec = 0;
|
||||
interval.tv_nsec = 40 * SPA_NSEC_PER_MSEC;
|
||||
|
||||
if (pw_stream_is_driving(data->stream))
|
||||
printf("driving:%d lazy:%d\n",
|
||||
pw_stream_is_driving(data->stream),
|
||||
pw_stream_is_lazy(data->stream));
|
||||
|
||||
if (pw_stream_is_driving(data->stream) != pw_stream_is_lazy(data->stream))
|
||||
pw_loop_update_timer(pw_thread_loop_get_loop(data->loop),
|
||||
data->timer, &timeout, &interval, false);
|
||||
break;
|
||||
|
|
@ -390,6 +394,7 @@ int main(int argc, char *argv[])
|
|||
"video-src-alloc",
|
||||
pw_properties_new(
|
||||
PW_KEY_MEDIA_CLASS, "Video/Source",
|
||||
PW_KEY_NODE_SUPPORTS_REQUEST, "1",
|
||||
NULL),
|
||||
&stream_events,
|
||||
&data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue