mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01:00
d/uvc: Don't try to push a null sink
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2750>
This commit is contained in:
1 parent
cf0a6d5a86
commit
2a8ba96282
1 file changed
+3
-1
@@ -260,7 +260,9 @@ process_payload(struct uvc_fs *stream, unsigned char *payload, size_t len)
|
||||
|
||||
if (stream->frame_collected == stream->frame_size || is_eof) {
|
||||
stream->cur_frame->size = stream->frame_collected;
|
||||
xrt_sink_push_frame(stream->sink, stream->cur_frame);
|
||||
if (stream->sink) {
|
||||
xrt_sink_push_frame(stream->sink, stream->cur_frame);
|
||||
}
|
||||
u_sink_debug_push_frame(&stream->usd, stream->cur_frame);
|
||||
stream->frame_collected = 0;
|
||||
xrt_frame_reference(&stream->cur_frame, NULL);
|
||||
|
||||
Reference in new issue
Block a user