diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-02 08:39:39 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-02 08:39:39 +0000 |
| commit | 1b8b79f7e6fe7d4ab88837001baaa48fe95e0cfe (patch) | |
| tree | 585b67d33817ed1b4df00244b0ccda841a7a52e3 /src/plugins/Output | |
| parent | 98233aa76d03790fcdb813d98dd872df466f6afd (diff) | |
| download | qmmp-1b8b79f7e6fe7d4ab88837001baaa48fe95e0cfe.tar.gz qmmp-1b8b79f7e6fe7d4ab88837001baaa48fe95e0cfe.tar.bz2 qmmp-1b8b79f7e6fe7d4ab88837001baaa48fe95e0cfe.zip | |
fixed build warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3198 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output')
| -rw-r--r-- | src/plugins/Output/jack/bio2jack.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/Output/jack/bio2jack.c b/src/plugins/Output/jack/bio2jack.c index 884ae355c..71379f024 100644 --- a/src/plugins/Output/jack/bio2jack.c +++ b/src/plugins/Output/jack/bio2jack.c @@ -2258,7 +2258,9 @@ JACK_GetPositionFromDriver(jack_driver_t * drv, enum pos_enum position, long elapsedMS; double sec2msFactor = 1000; +#if TRACE_ENABLE char *type_str = "UNKNOWN type"; +#endif /* if we are reset we should return a position of 0 */ if(drv->state == RESET) @@ -2269,15 +2271,21 @@ JACK_GetPositionFromDriver(jack_driver_t * drv, enum pos_enum position, if(type == WRITTEN) { +#if TRACE_ENABLE type_str = "WRITTEN"; +#endif return_val = drv->client_bytes; } else if(type == WRITTEN_TO_JACK) { +#if TRACE_ENABLE type_str = "WRITTEN_TO_JACK"; +#endif return_val = drv->written_client_bytes; } else if(type == PLAYED) /* account for the elapsed time for the played_bytes */ { +#if TRACE_ENABLE type_str = "PLAYED"; +#endif return_val = drv->played_client_bytes; gettimeofday(&now, 0); @@ -2316,9 +2324,10 @@ JACK_GetPositionFromDriver(jack_driver_t * drv, enum pos_enum position, return_val = 0; } } - +#if TRACE_ENABLE TRACE("drv->deviceID(%d), type(%s), return_val = %ld\n", drv->deviceID, type_str, return_val); +#endif return return_val; } |
