/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to ipecamera/events.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-09 12:29:21 UTC
  • Revision ID: csa@suren.me-20150409122921-wr17f5saintvr6g8
Check if camera still started if INFINITE timeout is passed to ipecamera_get_next_event

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        if (timeout) {
114
114
            if (timeout == PCILIB_TIMEOUT_INFINITE) {
115
115
#ifdef IPECAMERA_ANNOUNCE_READY
116
 
                while ((((!ctx->preproc)&&(ctx->reported_id == ctx->event_id))||((ctx->preproc)&&(ctx->reported_id == ctx->preproc_id)))) {
 
116
                while ((ctx->started)&&(((!ctx->preproc)&&(ctx->reported_id == ctx->event_id))||((ctx->preproc)&&(ctx->reported_id == ctx->preproc_id)))) {
117
117
#else /* IPECAMERA_ANNOUNCE_READY */
118
 
                while ((ctx->reported_id == ctx->event_id)) {
 
118
                while ((ctx->started)&&(ctx->reported_id == ctx->event_id)) {
119
119
#endif /* IPECAMERA_ANNOUNCE_READY */
120
120
                usleep(IPECAMERA_NOFRAME_SLEEP);
121
121
                }