拿掉無用的try catch

This commit is contained in:
Barney 2022-08-09 14:17:08 +08:00
parent 38b39c6d1d
commit 969c91e436

View File

@ -162,19 +162,13 @@ class GridVideoFragment : Fragment(), GstCallback {
private fun playAll() {
for (index in data.indices) {
gstPlayers[index]?.apply {
play()
}
gstPlayers[index]?.play()
}
}
private fun stopAll() {
for (index in data.indices) {
try {
gstPlayers[index]?.stop()
} catch (e: IllegalStateException) {
e.printStackTrace()
}
gstPlayers[index]?.stop()
}
}