gen_server 中的 handle_call 函数是:
Module:handle_call(Request, From, State) -> Result
但是我遇到了一个这样的handle_call函数:</p>
handle_call(info, _From, #yuv{decoder = undefined} = State) ->
{reply, [], State};
handle_call(info, _From, #yuv{decoder = Decoder} = State) ->
{reply, av_decoder:info(Decoder), State};
handle_call(_Request, _From, State) ->
{noreply, ok, State}.
我想知道发生了什么?它在我头顶
顺便说一句:yuv 记录是:
-record(yuv, {
host,
name,
media,
decoder,
consumer
}).