Lines Matching defs:context
132 static int supply_new_packets(JackData *self, AVFormatContext *context)
142 av_log(context, AV_LOG_ERROR, "Could not create packet of size %d\n", pkt_size);
150 static int start_jack(AVFormatContext *context)
152 JackData *self = context->priv_data;
156 /* Register as a JACK client, using the context filename as client name. */
157 self->client = jack_client_open(context->filename, JackNullOption, &status);
159 av_log(context, AV_LOG_ERROR, "Unable to register as a JACK client\n");
177 av_log(context, AV_LOG_ERROR, "Unable to register port %s:%s\n",
178 context->filename, str);
200 if ((test = supply_new_packets(self, context))) {
233 static int audio_read_header(AVFormatContext *context)
235 JackData *self = context->priv_data;
239 if ((test = start_jack(context)))
242 stream = avformat_new_stream(context, NULL);
261 static int audio_read_packet(AVFormatContext *context, AVPacket *pkt)
263 JackData *self = context->priv_data;
274 av_log(context, AV_LOG_INFO,
278 av_log(context, AV_LOG_ERROR, "Unable to activate JACK client\n");
287 av_log(context, AV_LOG_ERROR,
290 av_log(context, AV_LOG_ERROR, "Error while waiting for audio packet: %s\n",
294 av_log(context, AV_LOG_ERROR, "Input error: JACK server is gone\n");
300 av_log(context, AV_LOG_WARNING, "Audio packet xrun\n");
305 av_log(context, AV_LOG_WARNING, "JACK xrun\n");
312 if ((test = supply_new_packets(self, context)))
318 static int audio_read_close(AVFormatContext *context)
320 JackData *self = context->priv_data;