mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
Make binary work with both libmpeg2-0.3.1 and -0.3.2
Original commit message from CVS: Make binary work with both libmpeg2-0.3.1 and -0.3.2
This commit is contained in:
parent
625c0096f2
commit
bf93a640f7
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
#ifndef MPEG2_RELEASE
|
||||
typedef picture_t mpeg2_picture_t;
|
||||
typedef gint mpeg2_state_t;
|
||||
#define STATE_BUFFER -1
|
||||
#define STATE_BUFFER 0
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (GST_CAT_SEEK);
|
||||
|
@ -433,7 +433,7 @@ gst_mpeg2dec_flush_decoder (GstMpeg2dec *mpeg2dec)
|
|||
}
|
||||
}
|
||||
}
|
||||
while (state != STATE_BUFFER);
|
||||
while (state != STATE_BUFFER && state != -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -659,6 +659,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf)
|
|||
}
|
||||
/* need more data */
|
||||
case STATE_BUFFER:
|
||||
case -1:
|
||||
done = TRUE;
|
||||
break;
|
||||
/* error */
|
||||
|
|
Loading…
Reference in a new issue