# HG changeset patch # User Naoya OYAMA # Date 1351517159 -32400 # Node ID 89e24a1c8a64223c5242f3da3659ad5cb1419bd4 # Parent 6c710e5a28b87b4b75cb75b812b169229ca3ae7f Fix problem: If boot argument channel had selected by DLNA. Stream will interrupted. diff -r 6c710e5a28b8 -r 89e24a1c8a64 src/recpt1.c --- a/src/recpt1.c Tue Oct 23 20:31:01 2012 +0900 +++ b/src/recpt1.c Mon Oct 29 22:25:59 2012 +0900 @@ -156,6 +156,7 @@ splitter *splitter = tdata->splitter; boolean use_splitter = splitter ? TRUE : FALSE; boolean use_dlna = tdata->streamer ? TRUE : FALSE; + boolean stop_rec = FALSE; ISDB_T_FREQ_CONV_TABLE *table = NULL; while(1) { @@ -189,6 +190,7 @@ /* stop stream */ ioctl(tdata->tfd, STOP_REC, 0); + stop_rec = TRUE; /* wait for remainder */ while(tdata->queue->num_used > 0) { @@ -234,7 +236,7 @@ pthread_mutex_unlock(&tdata->splitter_mutex); } - if (strcmp(tdata->ch, channel)) { + if (stop_rec) { if (tdata->table->type != current_type) { /* re-open device */ if(close_tuner(tdata) != 0)