fixed format negotiation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3411 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a8c2408c09
commit
cc2b59509b
@ -443,9 +443,7 @@ struct consumer_accept_format_reply : public reply_data
|
|||||||
|
|
||||||
struct consumer_connected_request : public request_data
|
struct consumer_connected_request : public request_data
|
||||||
{
|
{
|
||||||
media_source producer;
|
media_input input;
|
||||||
media_destination where;
|
|
||||||
media_format with_format;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct consumer_connected_reply : public reply_data
|
struct consumer_connected_reply : public reply_data
|
||||||
|
@ -419,7 +419,8 @@ BBufferConsumer::HandleMessage(int32 message,
|
|||||||
{
|
{
|
||||||
const consumer_connected_request *request = static_cast<const consumer_connected_request *>(data);
|
const consumer_connected_request *request = static_cast<const consumer_connected_request *>(data);
|
||||||
consumer_connected_reply reply;
|
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));
|
request->SendReply(rv, &reply, sizeof(reply));
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user