mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
I believe this fixes 0.3.2-cvs failures; it's 0.3.1-backwards-compatible (well, compile-wise) too
Original commit message from CVS: I believe this fixes 0.3.2-cvs failures; it's 0.3.1-backwards-compatible (well, compile-wise) too
This commit is contained in:
parent
499ae15a75
commit
625c0096f2
1 changed files with 6 additions and 4 deletions
|
@ -32,6 +32,8 @@
|
|||
*/
|
||||
#ifndef MPEG2_RELEASE
|
||||
typedef picture_t mpeg2_picture_t;
|
||||
typedef gint mpeg2_state_t;
|
||||
#define STATE_BUFFER -1
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (GST_CAT_SEEK);
|
||||
|
@ -418,7 +420,7 @@ update_streaminfo (GstMpeg2dec *mpeg2dec)
|
|||
static void
|
||||
gst_mpeg2dec_flush_decoder (GstMpeg2dec *mpeg2dec)
|
||||
{
|
||||
gint state;
|
||||
mpeg2_state_t state;
|
||||
|
||||
if (mpeg2dec->decoder) {
|
||||
const mpeg2_info_t *info = mpeg2_info (mpeg2dec->decoder);
|
||||
|
@ -431,7 +433,7 @@ gst_mpeg2dec_flush_decoder (GstMpeg2dec *mpeg2dec)
|
|||
}
|
||||
}
|
||||
}
|
||||
while (state != -1);
|
||||
while (state != STATE_BUFFER);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -443,7 +445,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf)
|
|||
guint8 *data, *end;
|
||||
gint64 pts;
|
||||
const mpeg2_info_t *info;
|
||||
gint state;
|
||||
mpeg2_state_t state;
|
||||
gboolean done = FALSE;
|
||||
|
||||
if (GST_IS_EVENT (buf)) {
|
||||
|
@ -656,7 +658,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf)
|
|||
break;
|
||||
}
|
||||
/* need more data */
|
||||
case -1:
|
||||
case STATE_BUFFER:
|
||||
done = TRUE;
|
||||
break;
|
||||
/* error */
|
||||
|
|
Loading…
Reference in a new issue