Revision dfd2a005 libavformat/mmst.c

View differences:

libavformat/mmst.c
206 206
static void handle_packet_stream_changing_type(MMSTContext *mmst)
207 207
{
208 208
    MMSContext *mms = &mmst->mms;
209
    dprintf(NULL, "Stream changing!\n");
209
    av_dlog(NULL, "Stream changing!\n");
210 210

  
211 211
    // 40 is the packet header size, 7 is the prefix size.
212 212
    mmst->header_packet_id= AV_RL32(mms->in_buffer + 40 + 7);
213
    dprintf(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id);
213
    av_dlog(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id);
214 214
}
215 215

  
216 216
static int send_keepalive_packet(MMSTContext *mmst)
......
270 270
            }
271 271

  
272 272
            length_remaining= AV_RL32(mms->in_buffer+8) + 4;
273
            dprintf(NULL, "Length remaining is %d\n", length_remaining);
273
            av_dlog(NULL, "Length remaining is %d\n", length_remaining);
274 274
            // read the rest of the packet.
275 275
            if (length_remaining < 0
276 276
                || length_remaining > sizeof(mms->in_buffer) - 12) {
......
350 350
            } else if(packet_id_type == mmst->packet_id) {
351 351
                packet_type = SC_PKT_ASF_MEDIA;
352 352
            } else {
353
                dprintf(NULL, "packet id type %d is old.", packet_id_type);
353
                av_dlog(NULL, "packet id type %d is old.", packet_id_type);
354 354
                continue;
355 355
            }
356 356
        }
......
376 376
    if(send_fun) {
377 377
        int ret = send_fun(mmst);
378 378
        if (ret < 0) {
379
            dprintf(NULL, "Send Packet error before expecting recv packet %d\n", expect_type);
379
            av_dlog(NULL, "Send Packet error before expecting recv packet %d\n", expect_type);
380 380
            return ret;
381 381
        }
382 382
    }
......
554 554
    }
555 555
    err = ff_mms_asf_header_parser(mms);
556 556
    if (err) {
557
        dprintf(NULL, "asf header parsed failed!\n");
557
        av_dlog(NULL, "asf header parsed failed!\n");
558 558
        goto fail;
559 559
    }
560 560
    mms->header_parsed = 1;
......
571 571
    if (err) {
572 572
        goto fail;
573 573
    }
574
    dprintf(NULL, "Leaving open (success)\n");
574
    av_dlog(NULL, "Leaving open (success)\n");
575 575
    return 0;
576 576
fail:
577 577
    mms_close(h);
578
    dprintf(NULL, "Leaving open (failure: %d)\n", err);
578
    av_dlog(NULL, "Leaving open (failure: %d)\n", err);
579 579
    return err;
580 580
}
581 581

  
......
608 608
                    // copy the data to the packet buffer.
609 609
                    result = ff_mms_read_data(mms, buf, size);
610 610
                    if (result == 0) {
611
                        dprintf(NULL, "read asf media paket size is zero!\n");
611
                        av_dlog(NULL, "read asf media paket size is zero!\n");
612 612
                        break;
613 613
                    }
614 614
                }
615 615
            } else {
616
                dprintf(NULL, "read packet error!\n");
616
                av_dlog(NULL, "read packet error!\n");
617 617
                break;
618 618
            }
619 619
        }

Also available in: Unified diff