changeset 177:1d6674183e76

Fix problem: If do not specify DLNA, will not call pthread_join(stream_thread,)
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 07 Nov 2012 22:54:19 +0900
parents 2ae60285f383
children a0bc3700a496
files src/recpt1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/recpt1.c	Mon Nov 05 23:11:32 2012 +0900
+++ b/src/recpt1.c	Wed Nov 07 22:54:19 2012 +0900
@@ -1421,10 +1421,10 @@
 
     /* wait for threads */
     pthread_join(reader_thread, NULL);
-    pthread_join(stream_thread, NULL);
     pthread_join(signal_thread, NULL);
     pthread_join(ipc_thread, NULL);
     if ( use_dlna ) {
+        pthread_join(stream_thread, NULL);
         pthread_join(dlna_thread, NULL);
         if ( channel_list )
             close_list_file(channel_list);