diff --git a/headers/private/media/DataExchange.h b/headers/private/media/DataExchange.h index fab5ccfd4c..da7b428f86 100644 --- a/headers/private/media/DataExchange.h +++ b/headers/private/media/DataExchange.h @@ -443,9 +443,7 @@ struct consumer_accept_format_reply : public reply_data struct consumer_connected_request : public request_data { - media_source producer; - media_destination where; - media_format with_format; + media_input input; }; struct consumer_connected_reply : public reply_data diff --git a/src/kits/media/BufferConsumer.cpp b/src/kits/media/BufferConsumer.cpp index 2a641808d5..4f11103f57 100644 --- a/src/kits/media/BufferConsumer.cpp +++ b/src/kits/media/BufferConsumer.cpp @@ -419,7 +419,8 @@ BBufferConsumer::HandleMessage(int32 message, { const consumer_connected_request *request = static_cast(data); consumer_connected_reply reply; - rv = Connected(request->producer, request->where, request->with_format, &reply.input); + reply.input = request->input; + rv = Connected(request->input.source, request->input.destination, request->input.format, &reply.input); request->SendReply(rv, &reply, sizeof(reply)); return B_OK; }