Make sure that pthread_create is checked.
From: Erik Hovland <erik@hovland.org>
---
mythtv/libs/libmythtv/tv_play.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mythtv/libs/libmythtv/tv_play.cpp b/mythtv/libs/libmythtv/tv_play.cpp
index a0b54d2..588002b 100644
a
|
b
|
bool TV::StartRecorder(RemoteEncoder *rec, int maxWait) |
1786 | 1786 | bool TV::StartPlayer(bool isWatchingRecording, int maxWait) |
1787 | 1787 | { |
1788 | 1788 | SetupPlayer(isWatchingRecording); |
1789 | | pthread_create(&decode, NULL, SpawnDecode, nvp); |
| 1789 | if (pthread_create(&decode, NULL, SpawnDecode, nvp)) |
| 1790 | return false; |
1790 | 1791 | |
1791 | 1792 | maxWait = (maxWait <= 0) ? 20000 : maxWait; |
1792 | 1793 | #ifdef USING_VALGRIND |