mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
stream.c: Added 2 more debugging utils and added pos to stream string
* Added ast_stream_to_stra and ast_stream_topology_to_stra() macros which are shortcuts for ast_str_tmp(256, ast_stream_to_str(stream, &STR_TMP)) * Added the stream position to the string representation of the stream. * Fixed some formatting in ast_stream_to_str(). Change-Id: Idaf4cb0affa46d4dce58a73a111f35435331cc4b
This commit is contained in:
@@ -343,7 +343,8 @@ const char *ast_stream_to_str(const struct ast_stream *stream, struct ast_str **
|
||||
return ast_str_buffer(*buf);
|
||||
}
|
||||
|
||||
ast_str_append(buf, 0, "%s:%s:%s ",
|
||||
ast_str_append(buf, 0, "%d:%s:%s:%s ",
|
||||
stream->position,
|
||||
S_OR(stream->name, "noname"),
|
||||
ast_codec_media_type2str(stream->type),
|
||||
ast_stream_state_map[stream->state]);
|
||||
|
Reference in New Issue
Block a user