diff options
author | Christophe Thommeret <hftom@free.fr> | 2008-12-20 22:11:48 +0000 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2008-12-20 22:11:48 +0000 |
commit | 7fd0fd5f6109cd79e3c9a3ad255d24c4ea84ef37 (patch) | |
tree | c2a7fe9aaed25c78a3a9b385cc97e9f6a4fbe4ab | |
parent | 223dbfb4fa8cccb43a1efb5ebf9591947f224af0 (diff) | |
download | xine-lib-7fd0fd5f6109cd79e3c9a3ad255d24c4ea84ef37.tar.gz xine-lib-7fd0fd5f6109cd79e3c9a3ad255d24c4ea84ef37.tar.bz2 |
Video format change events.
-rw-r--r-- | src/libvdpau/vdpau_h264.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 008c3630e..77835038d 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -268,6 +268,21 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, } } + _x_stream_info_set( this->stream, XINE_STREAM_INFO_VIDEO_WIDTH, this->width ); + _x_stream_info_set( this->stream, XINE_STREAM_INFO_VIDEO_HEIGHT, this->height ); + _x_stream_info_set( this->stream, XINE_STREAM_INFO_VIDEO_RATIO, ((double)10000*this->ratio) ); + _x_stream_info_set( this->stream, XINE_STREAM_INFO_FRAME_DURATION, this->video_step ); + _x_meta_info_set_utf8( this->stream, XINE_META_INFO_VIDEOCODEC, "H264/AVC (vdpau)" ); + xine_event_t event; + xine_format_change_data_t data; + event.type = XINE_EVENT_FRAME_FORMAT_CHANGE; + event.stream = this->stream; + event.data = &data; + event.data_length = sizeof(data); + data.width = this->width; + data.height = this->height; + data.aspect = this->ratio; + xine_event_send( this->stream, &event ); switch(this->nal_parser->current_nal->sps->profile_idc) { case 100: |