Add thread names for easier debugging

This commit is contained in:
Cameron Gutman 2013-11-24 17:57:00 -05:00
parent 732ea8a3ac
commit 9be14c3d92
4 changed files with 10 additions and 0 deletions

View File

@ -150,6 +150,7 @@ public class NvAudioStream {
}
};
threads.add(t);
t.setName("Audio - Depacketizer");
t.start();
}
@ -175,6 +176,7 @@ public class NvAudioStream {
}
};
threads.add(t);
t.setName("Audio - Player");
t.start();
}
@ -206,6 +208,7 @@ public class NvAudioStream {
}
};
threads.add(t);
t.setName("Audio - Receive");
t.start();
}
@ -240,6 +243,7 @@ public class NvAudioStream {
}
};
threads.add(t);
t.setName("Audio - Ping");
t.start();
}
}

View File

@ -206,6 +206,7 @@ public class NvVideoStream {
}
};
threads.add(t);
t.setName("Video - Decoder");
t.start();
}
@ -233,6 +234,7 @@ public class NvVideoStream {
}
};
threads.add(t);
t.setName("Video - Depacketizer");
t.start();
}
@ -264,6 +266,7 @@ public class NvVideoStream {
}
};
threads.add(t);
t.setName("Video - Receive");
t.start();
}
@ -298,6 +301,7 @@ public class NvVideoStream {
}
};
threads.add(t);
t.setName("Video - Ping");
t.start();
}
}

View File

@ -140,6 +140,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
}
}
};
rendererThread.setName("Video - Renderer (CPU)");
rendererThread.start();
}

View File

@ -120,6 +120,7 @@ public class MediaCodecDecoderRenderer implements DecoderRenderer {
}
}
};
rendererThread.setName("Video - Renderer (MediaCodec)");
rendererThread.start();
}