- Timestamp:
- Jul 12, 2011 9:08:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3563 r3622 879 879 /* Create pool for codec instance */ 880 880 pool = pj_pool_create(ffmpeg_factory.pf, "ffmpeg codec", 512, 512, NULL); 881 codec = PJ_POOL_ ZALLOC_T(pool, pjmedia_vid_codec);881 codec = PJ_POOL_ALLOC_T(pool, pjmedia_vid_codec); 882 882 if (!codec) { 883 883 status = PJ_ENOMEM; 884 884 goto on_error; 885 885 } 886 pjmedia_vid_codec_init(codec); 886 887 codec->op = &ffmpeg_op; 887 888 codec->factory = factory; … … 1404 1405 return status; 1405 1406 1406 /* Notify application via the bit_info field of pjmedia_frame */ 1407 output->bit_info = PJMEDIA_VID_CODEC_EVENT_FMT_CHANGED; 1407 /* Broadcast event */ 1408 if (pjmedia_event_publisher_has_sub(&codec->epub)) { 1409 pjmedia_event event; 1410 1411 pjmedia_event_init(&event, PJMEDIA_EVENT_FMT_CHANGED, 1412 &input->timestamp, &codec->epub); 1413 event.data.fmt_changed.dir = PJMEDIA_DIR_DECODING; 1414 pj_memcpy(&event.data.fmt_changed.new_fmt, &ff->param.dec_fmt, 1415 sizeof(ff->param.dec_fmt)); 1416 pjmedia_event_publish(&codec->epub, &event); 1417 } 1408 1418 } 1409 1419
Note: See TracChangeset
for help on using the changeset viewer.