gen_serverでhandle_call機能は次のとおりです。handle_call関数に "record = State"があるとどうなりましたか?
Module:handle_call(Request, From, State) -> Result
しかし、私はこのようなものhandle_call機能満たす:私は何が起こったのか知りたい
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レコードは次のとおりです。
foo(#bar{buz = Value} = Record) -> ...
これは一般的です:
-record(yuv, {
host,
name,
media,
decoder,
consumer
}).