- Timestamp:
- Dec 1, 2011 10:49:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3861 r3893 1610 1610 1611 1611 /* Broadcast event */ 1612 if (pjmedia_event_publisher_has_sub(&codec->epub)){1612 { 1613 1613 pjmedia_event event; 1614 1614 1615 1615 pjmedia_event_init(&event, PJMEDIA_EVENT_FMT_CHANGED, 1616 &input->timestamp, &codec->epub);1616 &input->timestamp, codec); 1617 1617 event.data.fmt_changed.dir = PJMEDIA_DIR_DECODING; 1618 1618 pj_memcpy(&event.data.fmt_changed.new_fmt, &ff->param.dec_fmt, 1619 1619 sizeof(ff->param.dec_fmt)); 1620 pjmedia_event_publish( &codec->epub, &event);1620 pjmedia_event_publish(NULL, codec, &event, 0); 1621 1621 } 1622 1622 } … … 1652 1652 1653 1653 /* Check if we got key frame */ 1654 if (avframe.key_frame && pjmedia_event_publisher_has_sub(&codec->epub))1654 if (avframe.key_frame) 1655 1655 { 1656 1656 pjmedia_event event; 1657 1657 1658 1658 pjmedia_event_init(&event, PJMEDIA_EVENT_KEY_FRAME_FOUND, 1659 &output->timestamp, &codec->epub);1660 pjmedia_event_publish( &codec->epub, &event);1659 &output->timestamp, codec); 1660 pjmedia_event_publish(NULL, codec, &event, 0); 1661 1661 } 1662 1662 } else {
Note: See TracChangeset
for help on using the changeset viewer.