Subversion Repositories mdb

Rev

Rev 58 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 61
Line 452... Line 452...
452
					playStatus = PLAY_STATUS_STOP;
452
					playStatus = PLAY_STATUS_STOP;
453
				}
453
				}
454
			}
454
			}
455
		}
455
		}
456
 
456
 
-
 
457
		sqlite3_close(db);
457
		playerActive = FALSE;
458
		playerActive = FALSE;
458
		pthread_exit(NULL);
459
		pthread_exit(NULL);
459
		return NULL;
460
		return NULL;
460
	}
461
	}
461
	else if (flag && (rc = sqlite3_exec(db, query, playCallback, (void *)_playPars->what, &zErrMsg)) != SQLITE_OK)
462
	else if (flag && (rc = sqlite3_exec(db, query, playCallback, (void *)_playPars->what, &zErrMsg)) != SQLITE_OK)
Line 468... Line 469...
468
		playerActive = FALSE;
469
		playerActive = FALSE;
469
		pthread_exit(NULL);
470
		pthread_exit(NULL);
470
		return NULL;
471
		return NULL;
471
	}
472
	}
472
 
473
 
-
 
474
	sqlite3_close(db);
-
 
475
 
473
	if (configs.debug)
476
	if (configs.debug)
474
		syslog(LOG_DEBUG, "Playing from current queue starting at entry %d", start);
477
		syslog(LOG_DEBUG, "Playing from current queue starting at entry %d", start);
475
 
478
 
476
	strcpy (fname, configs.home);
479
	strcpy (fname, configs.home);
477
	strcat (fname, NOWPLAY);
480
	strcat (fname, NOWPLAY);