From cc2b59509b71dc802dd5fb047e7aa50158f8d6d2 Mon Sep 17 00:00:00 2001 From: beveloper Date: Tue, 3 Jun 2003 19:01:53 +0000 Subject: [PATCH] fixed format negotiation git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3411 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/media/DataExchange.h | 4 +--- src/kits/media/BufferConsumer.cpp | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) 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; }