czap: cannot parse service data

Bug #652844 reported by Simon Bugs
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linuxtv-dvb-apps (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I had this working in a previous version of czap (ubuntu 9.10)

Now I'm at Ubuntu 10.04.1 LTS /
dvb-apps: 1.1.1+rev1273-1ubuntu1

Now I get a problem:

czap -c ~/.czap/czap-final.txt "Nederland 1"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
  84 Nederland 1:388000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:88:89:8004
ERROR: cannot parse service data

At the v4l-dvb mailing list the following solution is proposed:

[quote]
The czap utility (dvb-apps/util/szap/czap.c) cannot scan the channel
configuration file when compiled gcc-4.4

Problem is tha the "sscanf" function uses the "%a[^:]" format
specifier. According to "man sscanf" you need to define _GNU_SOURCE if
you want this to work because it is a gnu-only extension.
Adding a first line "#define _GNU_SOURCE" to czap.c and recompiling
solves the problem.
[/quote]

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linuxtv-dvb-apps (Ubuntu):
status: New → Confirmed
Revision history for this message
Antti Kaihola (akaihola) wrote :

I get the same error on Mythbuntu 12.04 with dvb-apps 1.1.1+rev1355-1.1ubuntu1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.