mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
Fixed some leftover fixes
Original commit message from CVS: Fixed some leftover fixes
This commit is contained in:
parent
35e50facf7
commit
cdb004a722
4 changed files with 76 additions and 86 deletions
|
@ -266,7 +266,6 @@ gst_dvdec_loop (GstElement *element)
|
|||
|
||||
dvdec = GST_DVDEC (element);
|
||||
|
||||
do {
|
||||
// grab an input frame
|
||||
needed = BUFFER;
|
||||
if (dvdec->remaining > 0) {
|
||||
|
@ -280,7 +279,7 @@ gst_dvdec_loop (GstElement *element)
|
|||
buf = gst_pad_pull(dvdec->sinkpad);
|
||||
if (needed < GST_BUFFER_SIZE(buf)) {
|
||||
memcpy(&dvdec->inframe[BUFFER-needed],GST_BUFFER_DATA(buf),needed);
|
||||
/***** NOTE: this is done because 1394src doesn't allow buffers to outlive the handler *****/
|
||||
/**** NOTE: this is done because 1394src doesn't allow buffers to outlive the handler *****/
|
||||
dvdec->carryover = gst_buffer_copy(buf);
|
||||
dvdec->remaining = GST_BUFFER_SIZE(buf) - needed;
|
||||
needed = 0;
|
||||
|
@ -339,8 +338,6 @@ gst_dvdec_loop (GstElement *element)
|
|||
#endif
|
||||
|
||||
gst_pad_push(dvdec->videosrcpad,buf);
|
||||
|
||||
} while (!GST_ELEMENT_IS_COTHREAD_STOPPING (element));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -242,9 +242,6 @@ gst_flacdec_loop (GstElement *element)
|
|||
FLAC__stream_decoder_process_metadata (flacdec->decoder);
|
||||
}
|
||||
|
||||
do {
|
||||
FLAC__stream_decoder_process_one_frame (flacdec->decoder);
|
||||
}
|
||||
while (!GST_ELEMENT_IS_COTHREAD_STOPPING (element));
|
||||
}
|
||||
|
||||
|
|
|
@ -640,7 +640,6 @@ gst_ladspa_loop (GstElement *element)
|
|||
LADSPA_Descriptor *desc;
|
||||
|
||||
desc = ladspa->descriptor;
|
||||
do {
|
||||
printf("looping something\n");
|
||||
|
||||
// first get all the necessary data from the input ports
|
||||
|
@ -658,8 +657,6 @@ gst_ladspa_loop (GstElement *element)
|
|||
gst_pad_push (ladspa->srcpads[i], ladspa->buffers[i]);
|
||||
ladspa->buffers[i] = NULL;
|
||||
}
|
||||
|
||||
} while (!GST_ELEMENT_IS_COTHREAD_STOPPING (element));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -408,8 +408,7 @@ gst_mikmod_loop (GstElement *element)
|
|||
if ( Player_Active() )
|
||||
drv_gst.Update();
|
||||
|
||||
if (GST_ELEMENT_IS_COTHREAD_STOPPING (element))
|
||||
cothread_switch(cothread_current_main());
|
||||
gst_element_yield (element);
|
||||
}
|
||||
while ( 1 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue