Commit f5273197 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by Marton Balint

avutil/threadmessage.h: Fix swapped comments

Fix swapped descriptions of av_thread_message_queue_set_err_send
and av_thread_message_queue_set_err_recv.
Signed-off-by: 's avatarJan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 94011f99
...@@ -69,10 +69,10 @@ int av_thread_message_queue_recv(AVThreadMessageQueue *mq, ...@@ -69,10 +69,10 @@ int av_thread_message_queue_recv(AVThreadMessageQueue *mq,
/** /**
* Set the sending error code. * Set the sending error code.
* *
* If the error code is set to non-zero, av_thread_message_queue_recv() will * If the error code is set to non-zero, av_thread_message_queue_send() will
* return it immediately when there are no longer available messages. * return it immediately. Conventional values, such as AVERROR_EOF or
* Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used * AVERROR(EAGAIN), can be used to cause the sending thread to stop or
* to cause the receiving thread to stop or suspend its operation. * suspend its operation.
*/ */
void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq,
int err); int err);
...@@ -80,10 +80,10 @@ void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, ...@@ -80,10 +80,10 @@ void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq,
/** /**
* Set the receiving error code. * Set the receiving error code.
* *
* If the error code is set to non-zero, av_thread_message_queue_send() will * If the error code is set to non-zero, av_thread_message_queue_recv() will
* return it immediately. Conventional values, such as AVERROR_EOF or * return it immediately when there are no longer available messages.
* AVERROR(EAGAIN), can be used to cause the sending thread to stop or * Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used
* suspend its operation. * to cause the receiving thread to stop or suspend its operation.
*/ */
void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq, void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq,
int err); int err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment