Displaying 5 results from an estimated 5 matches for "swfdecgstaudio".
2007 Apr 08
0
libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c
...23,6 +23,7 @@
#include <string.h>
#include <gst/gst.h>
+#include "swfdec_codec_audio.h"
#include "swfdec_codec_video.h"
#include "swfdec_debug.h"
@@ -36,6 +37,262 @@
#define swfdec_cond_wait g_cond_wait
#endif
+/*** AUDIO ***/
+
+typedef struct _SwfdecGstAudio SwfdecGstAudio;
+struct _SwfdecGstAudio {
+ SwfdecAudioDecoder decoder;
+
+ GMutex * mutex; /* mutex that blocks everything below */
+ GCond * cond; /* cond used to signal when stuff below changes */
+ volatile int refcount; /* refcount (d'oh) */
+
+ GstElement * pipeline; /* pipel...
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
...cond, mutex); \
- g_print (" done at %s\n", G_STRLOC); \
-}G_STMT_END
-#else
-#define swfdec_cond_wait g_cond_wait
-#endif
+/*** BUFFER ***/
-/*** AUDIO ***/
+static void
+swfdec_gst_buffer_free (unsigned char *data, gpointer priv)
+{
+ gst_buffer_unref (priv);
+}
-typedef struct _SwfdecGstAudio SwfdecGstAudio;
-struct _SwfdecGstAudio {
- SwfdecAudioDecoder decoder;
+static SwfdecBuffer *
+swfdec_buffer_new_from_gst (GstBuffer *buffer)
+{
+ SwfdecBuffer *ret;
- GMutex * mutex; /* mutex that blocks everything below */
- GCond * cond; /* cond used to signal when stuff below chang...
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
...t;src, caps);
+ }
gst_buffer_set_caps (buffer, GST_PAD_CAPS (dec->src));
}
@@ -370,6 +380,30 @@ swfdec_audio_decoder_gst_pull (SwfdecAudioDecoder *dec)
return swfdec_buffer_new_from_gst (buf);
}
+static gboolean
+swfdec_audio_decoder_set_caps (GstPad *pad, GstCaps *caps)
+{
+ SwfdecGstAudio *player = g_object_get_data (G_OBJECT (pad), "swfdec-player");
+ GstStructure *structure = gst_caps_get_structure (caps, 0);
+ int depth, channels, rate;
+
+ if (SWFDEC_IS_AUDIO_FORMAT (player->decoder.format)) {
+ SWFDEC_ERROR ("resetting format not allowed");
+ pla...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...t.c
+++ b/libswfdec/swfdec_codec_gst.c
@@ -406,7 +406,7 @@ swfdec_audio_decoder_set_caps (GstPad *pad, GstCaps *caps)
}
SwfdecAudioDecoder *
-swfdec_audio_decoder_gst_new (SwfdecAudioCodec type, SwfdecAudioFormat format)
+swfdec_audio_decoder_gst_new (guint type, SwfdecAudioFormat format)
{
SwfdecGstAudio *player;
GstCaps *srccaps, *sinkcaps;
@@ -549,12 +549,14 @@ swfdec_video_decoder_gst_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffer,
image->rowstride[2] = image->rowstride[1];
g_assert (image->plane[2] + image->rowstride[2] * ALIGN (image->height, 2) / 2 == im...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...64c335c..6c1ae37 100644
--- a/libswfdec/swfdec_codec_gst.c
+++ b/libswfdec/swfdec_codec_gst.c
@@ -176,7 +176,7 @@ swfdec_audio_decoder_gst_link (GstElemen
}
}
-GstBusSyncReply
+static GstBusSyncReply
swfdec_audio_decoder_gst_handle_bus (GstBus *bus, GstMessage *message, gpointer data)
{
SwfdecGstAudio *player = data;