~ubuntu-branches/ubuntu/trusty/zvbi/trusty

« back to all changes in this revision

Viewing changes to src/vbi.c

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2013-10-15 06:29:56 UTC
  • mfrom: (1.1.11) (2.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131015062956-0b9vqh1f8y90f38k
Tags: 0.2.35-2
* QA upload
* Add 06_sizeof_FTBFS.diff. Closes: #726186

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  libzvbi -- VBI decoding library
3
3
 *
4
4
 *  Copyright (C) 2000-2008 Michael H. Schimek
5
 
 *  Copyright (C) 2000, 2001 I�aki Garc�a Etxebarria
 
5
 *  Copyright (C) 2000, 2001 Iñaki García Etxebarria
6
6
 *  Copyright (C) 2003, 2004 Tom Zoerner
7
7
 *
8
8
 *  Originally based on AleVT 1.5.1 by Edgar Toernig
23
23
 *  Boston, MA  02110-1301  USA.
24
24
 */
25
25
 
26
 
/* $Id: vbi.c,v 1.24 2008/03/05 13:33:04 mschimek Exp $ */
 
26
/* $Id: vbi.c,v 1.26 2013/07/10 11:37:37 mschimek Exp $ */
27
27
 
28
28
#include "site_def.h"
29
29
 
56
56
/**
57
57
 * @mainpage ZVBI - VBI Decoding Library
58
58
 *
59
 
 * @author I�aki Garc�a Etxebarria<br>
 
59
 * @author Iñaki García Etxebarria<br>
60
60
 * Michael H. Schimek<br>
61
61
 * Tom Zoerner<br>
62
62
 * based on AleVT by Edgar Toernig
106
106
 *   vbi_log_on_stderr(). Can be @c NULL to disable logging.
107
107
 * @param user_data User pointer passed through to the @a log_fn function.
108
108
 *
109
 
 * Various functions can print warnings, errors and information useful to
110
 
 * debug the library. With this function you can enable these messages
111
 
 * and determine a function to print them.
 
109
 * Various library functions can print warnings, errors and
 
110
 * information useful to debug the library. With this function you can
 
111
 * enable these messages and designate a function to print them.
 
112
 *
 
113
 * This function enables logging globally. You can also call the
 
114
 * set_log_fn() function of individual modules to reduce the scope or
 
115
 * redirect messages from that module to another log function.
112
116
 *
113
117
 * @note
114
 
 * The kind and contents of messages logged by particular functions
115
 
 * may change in the future.
 
118
 * The number of contents of messages may change in the future.
116
119
 *
117
120
 * @since 0.2.22
118
121
 */
160
163
                        vbi->aspect_source = 0;
161
164
                }
162
165
        }
 
166
        if (activate & VBI_EVENT_PROG_ID)
 
167
                CLEAR (vbi->vps_pid);
163
168
 
164
169
        vbi->event_mask = mask;
165
170
}
437
442
 
438
443
          if (vbi->event_mask & (VBI_EVENT_TTX_PAGE |
439
444
                                 VBI_EVENT_NETWORK |
440
 
                                 VBI_EVENT_NETWORK_ID))
 
445
                                 VBI_EVENT_NETWORK_ID |
 
446
                                 VBI_EVENT_LOCAL_TIME |
 
447
                                 VBI_EVENT_PROG_ID))
441
448
                  vbi_teletext_desync(vbi);
442
449
          if (vbi->event_mask & (VBI_EVENT_CAPTION |
443
450
                                 VBI_EVENT_NETWORK |
444
 
                                 VBI_EVENT_NETWORK_ID))
 
451
                                 VBI_EVENT_NETWORK_ID |
 
452
                                 VBI_EVENT_LOCAL_TIME |
 
453
                                 VBI_EVENT_PROG_ID))
445
454
                  vbi_caption_desync(vbi);
446
455
        } else {
447
456
                pthread_mutex_lock(&vbi->chswcd_mutex);
732
741
                if ((current_time() - vbi->cc.channel[pgno - 1].time) > 20)
733
742
                        return VBI_NO_PAGE;
734
743
 
735
 
                *language = vbi->cc.channel[pgno - 1].language;
 
744
                *language = (char *) vbi->cc.channel[pgno - 1].language;
736
745
 
737
746
                return (pgno <= 4) ? VBI_SUBTITLE_PAGE : VBI_NORMAL_PAGE;
738
747
        } else if (pgno < 0x100 || pgno > 0x8FF) {