Revision dfd2a005 libavformat/mmsh.c

View differences:

libavformat/mmsh.c
122 122
        return AVERROR(EIO);
123 123
    }
124 124
    res = url_read_complete(mms->mms_hd, mms->in_buffer, len);
125
    dprintf(NULL, "Data packet len = %d\n", len);
125
    av_dlog(NULL, "Data packet len = %d\n", len);
126 126
    if (res != len) {
127 127
        av_log(NULL, AV_LOG_ERROR, "Read data packet failed!\n");
128 128
        return AVERROR(EIO);
......
156 156
                if (mms->asf_header) {
157 157
                    if (len != mms->asf_header_size) {
158 158
                        mms->asf_header_size = len;
159
                        dprintf(NULL, "Header len changed from %d to %d\n",
159
                        av_dlog(NULL, "Header len changed from %d to %d\n",
160 160
                                mms->asf_header_size, len);
161 161
                        av_freep(&mms->asf_header);
162 162
                    }
......
201 201
                    av_log(NULL, AV_LOG_ERROR, "Read other chunk type data failed!\n");
202 202
                    return AVERROR(EIO);
203 203
                } else {
204
                    dprintf(NULL, "Skip chunk type %d \n", chunk_type);
204
                    av_dlog(NULL, "Skip chunk type %d \n", chunk_type);
205 205
                    continue;
206 206
                }
207 207
            }
......
290 290
        av_log(NULL, AV_LOG_ERROR, "Build play request failed!\n");
291 291
        goto fail;
292 292
    }
293
    dprintf(NULL, "out_buffer is %s", headers);
293
    av_dlog(NULL, "out_buffer is %s", headers);
294 294
    ff_http_set_headers(mms->mms_hd, headers);
295 295

  
296 296
    err = url_connect(mms->mms_hd);
......
304 304
        goto fail;
305 305
    }
306 306

  
307
    dprintf(NULL, "Connection successfully open\n");
307
    av_dlog(NULL, "Connection successfully open\n");
308 308
    return 0;
309 309
fail:
310 310
    av_freep(&stream_selection);
311 311
    mmsh_close(h);
312
    dprintf(NULL, "Connection failed with error %d\n", err);
312
    av_dlog(NULL, "Connection failed with error %d\n", err);
313 313
    return err;
314 314
}
315 315

  

Also available in: Unified diff