Commit c6a6149e authored by Sam Hocevar's avatar Sam Hocevar

* modules/demux/mkv.cpp: fixed a pointer cast bug.

parent 868ae7e3
...@@ -5264,18 +5264,23 @@ void demux_sys_t::JumpTo( virtual_segment_c & vsegment, chapter_item_c * p_chapt ...@@ -5264,18 +5264,23 @@ void demux_sys_t::JumpTo( virtual_segment_c & vsegment, chapter_item_c * p_chapt
bool matroska_segment_c::CompareSegmentUIDs( const matroska_segment_c * p_item_a, const matroska_segment_c * p_item_b ) bool matroska_segment_c::CompareSegmentUIDs( const matroska_segment_c * p_item_a, const matroska_segment_c * p_item_b )
{ {
EbmlBinary *p_tmp;
if ( p_item_a == NULL || p_item_b == NULL ) if ( p_item_a == NULL || p_item_b == NULL )
return false; return false;
EbmlBinary * p_itema = (EbmlBinary *)(p_item_a->p_segment_uid); p_tmp = (EbmlBinary *)p_item_a->p_segment_uid;
if ( p_item_b->p_prev_segment_uid != NULL && *p_itema == *p_item_b->p_prev_segment_uid ) if ( p_item_b->p_prev_segment_uid != NULL
&& *p_tmp == *p_item_b->p_prev_segment_uid )
return true; return true;
p_itema = (EbmlBinary *)(&p_item_a->p_next_segment_uid); p_tmp = (EbmlBinary *)p_item_a->p_next_segment_uid;
if ( p_item_b->p_segment_uid != NULL && *p_itema == *p_item_b->p_segment_uid ) if ( p_item_b->p_segment_uid != NULL
&& *p_tmp == *p_item_b->p_segment_uid )
return true; return true;
if ( p_item_b->p_prev_segment_uid != NULL && *p_itema == *p_item_b->p_prev_segment_uid ) if ( p_item_b->p_prev_segment_uid != NULL
&& *p_tmp == *p_item_b->p_prev_segment_uid )
return true; return true;
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment