Displaying 3 results from an estimated 3 matches for "sinkpad".
2007 Oct 26
0
6 commits - configure.ac libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c player/swfplay.c
...return element;
}
-static SwfdecBuffer *
-swfdec_audio_decoder_gst_pull (SwfdecAudioDecoder *dec)
+/*** PADS ***/
+
+static GstPad *
+swfdec_gst_connect_srcpad (GstElement *element, GstCaps *caps)
{
- SwfdecGstAudio *player = (SwfdecGstAudio *) dec;
- SwfdecBuffer *buffer;
+ GstPad *srcpad, *sinkpad;
- g_mutex_lock (player->mutex);
- if (player->eof) {
- while (!player->done)
- swfdec_cond_wait (player->cond, player->mutex);
- }
- buffer = swfdec_buffer_queue_pull_buffer (player->out);
- g_mutex_unlock (player->mutex);
- return buffer;
+ sinkpad = gst_elem...
2007 Oct 28
0
9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_audio_internal.h libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_sound.c
...dec_gst.c
index b449533..35f00e5 100644
--- a/libswfdec/swfdec_codec_gst.c
+++ b/libswfdec/swfdec_codec_gst.c
@@ -148,14 +148,16 @@ swfdec_gst_get_element (GstCaps *caps)
static GstPad *
swfdec_gst_connect_srcpad (GstElement *element, GstCaps *caps)
{
+ GstPadTemplate *tmpl;
GstPad *srcpad, *sinkpad;
sinkpad = gst_element_get_pad (element, "sink");
if (sinkpad == NULL)
return NULL;
- srcpad = gst_pad_new ("src", GST_PAD_SRC);
- if (!gst_pad_set_caps (srcpad, caps))
- goto error;
+ gst_caps_ref (caps);
+ tmpl = gst_pad_template_new ("src", GST_P...
2011 May 23
2
[Cortado] How to support seeking in on-the-fly generated Theora stream?
...---------+ +----
Thats why many code blocks are synchronized on the queue object, that only
one thread can access the queue at one time. Now, i want so synchronize
the sink- and sourcepad threads of the QueueSeek class on another object,
which is called "permissionToSeek". The sinkpad should wait until it gets
a permission to seek.
I tried to achieve this with wait() and notifyAll().
the sinkpad has a method which gets called if a seek request arrives. It
synchronizes on the permission object and waits for the srcpad to grant
it:
private void doSeek(Event event) {
// wai...