Revision 95206290

View differences:

libavformat/bktr.c
130 130

  
131 131
    *tuner_fd = open("/dev/tuner0", O_RDONLY);
132 132
    if (*tuner_fd < 0)
133
        perror("Warning: Tuner not opened, continuing");
133
        av_log(NULL, AV_LOG_ERROR, "Warning. Tuner not opened, continuing: %s\n", strerror(errno));
134 134

  
135 135
    *video_fd = open(video_device, O_RDONLY);
136 136
    if (*video_fd < 0) {
137
        perror(video_device);
137
        av_log(NULL, AV_LOG_ERROR, "%s: %s\n", video_device, strerror(errno));
138 138
        return -1;
139 139
    }
140 140

  
......
157 157
        geo.oformat |= METEOR_GEO_EVEN_ONLY;
158 158

  
159 159
    if (ioctl(*video_fd, METEORSETGEO, &geo) < 0) {
160
        perror("METEORSETGEO");
160
        av_log(NULL, AV_LOG_ERROR, "METEORSETGEO: %s\n", strerror(errno));
161 161
        return -1;
162 162
    }
163 163

  
164 164
    if (ioctl(*video_fd, BT848SFMT, &c) < 0) {
165
        perror("BT848SFMT");
165
        av_log(NULL, AV_LOG_ERROR, "BT848SFMT: %s\n", strerror(errno));
166 166
        return -1;
167 167
    }
168 168

  
169 169
    c = bktr_dev[idev];
170 170
    if (ioctl(*video_fd, METEORSINPUT, &c) < 0) {
171
        perror("METEORSINPUT");
171
        av_log(NULL, AV_LOG_ERROR, "METEORSINPUT: %s\n", strerror(errno));
172 172
        return -1;
173 173
    }
174 174

  
......
177 177
    video_buf = (uint8_t *)mmap((caddr_t)0, video_buf_size,
178 178
        PROT_READ, MAP_SHARED, *video_fd, (off_t)0);
179 179
    if (video_buf == MAP_FAILED) {
180
        perror("mmap");
180
        av_log(NULL, AV_LOG_ERROR, "mmap: %s\n", strerror(errno));
181 181
        return -1;
182 182
    }
183 183

  
184 184
    if (frequency != 0.0) {
185 185
        ioctl_frequency  = (unsigned long)(frequency*16);
186 186
        if (ioctl(*tuner_fd, TVTUNER_SETFREQ, &ioctl_frequency) < 0)
187
            perror("TVTUNER_SETFREQ");
187
            av_log(NULL, AV_LOG_ERROR, "TVTUNER_SETFREQ: %s\n", strerror(errno));
188 188
    }
189 189

  
190 190
    c = AUDIO_UNMUTE;
191 191
    if (ioctl(*tuner_fd, BT848_SAUDIO, &c) < 0)
192
        perror("TVTUNER_SAUDIO");
192
        av_log(NULL, AV_LOG_ERROR, "TVTUNER_SAUDIO: %s\n", strerror(errno));
193 193

  
194 194
    c = METEOR_CAP_CONTINOUS;
195 195
    ioctl(*video_fd, METEORCAPTUR, &c);

Also available in: Unified diff