| 872 | } |
| 873 | |
| 874 | static void dec_thread_set_name(const DecoderPriv *dp) |
| 875 | { |
| 876 | char name[16] = "dec"; |
| 877 | |
| 878 | if (dp->index >= 0) |
| 879 | av_strlcatf(name, sizeof(name), "%d", dp->index); |
| 880 | else if (dp->parent_name) |
| 881 | av_strlcat(name, dp->parent_name, sizeof(name)); |
| 882 | |
| 883 | if (dp->dec_ctx) |
| 884 | av_strlcatf(name, sizeof(name), ":%s", dp->dec_ctx->codec->name); |
| 885 | |
| 886 | ff_thread_setname(name); |
| 887 | } |
| 888 | |
| 889 | static void dec_thread_uninit(DecThreadContext *dt) |
| 890 | { |
no test coverage detected