fixed format negotiation

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3411 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2003-06-03 19:01:53 +00:00
parent a8c2408c09
commit cc2b59509b
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -419,7 +419,8 @@ BBufferConsumer::HandleMessage(int32 message,
{
const consumer_connected_request *request = static_cast<const consumer_connected_request *>(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;
}