search for: gstcap

Displaying 9 results from an estimated 9 matches for "gstcap".

Did you mean: getcap
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
...e int refcount; /* refcount (d'oh) */ + g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL); - GstElement * pipeline; /* pipeline that is playing or NULL when done */ - SwfdecBuffer * in; /* next input buffer or NULL */ - SwfdecBufferQueue * out; /* all the stored output buffers */ - GstCaps * srccaps; /* caps to set on buffers */ - gboolean eof; /* we've pushed EOF */ - gboolean done; /* TRUE after decoding stopped (error or EOF) */ -}; + ret = swfdec_buffer_new (); + ret->data = GST_BUFFER_DATA (buffer); + ret->length = GST_BUFFER_SIZE (buffer); + ret->f...
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...gst.c index cd2d02e..b449533 100644 --- a/libswfdec/swfdec_codec_gst.c +++ b/libswfdec/swfdec_codec_gst.c @@ -272,7 +272,16 @@ static gboolean swfdec_gst_decoder_push (SwfdecGstDecoder *dec, GstBuffer *buffer) { GstFlowReturn ret; - gst_buffer_set_caps (buffer, GST_PAD_CAPS (dec->src)); + GstCaps *caps; + + /* set caps if none set yet */ + caps = gst_buffer_get_caps (buffer); + if (caps) { + gst_caps_unref (caps); + } else { + gst_buffer_set_caps (buffer, GST_PAD_CAPS (dec->src)); + } + ret = gst_pad_push (dec->src, buffer); if (GST_FLOW_IS_SUCCESS (ret)) return...
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
...ut format This gets rid of long lags when audioresample takes its time diff --git a/libswfdec/swfdec_codec_gst.c b/libswfdec/swfdec_codec_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_P...
2007 Apr 08
0
libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c
...nd used to signal when stuff below changes */ + volatile int refcount; /* refcount (d'oh) */ + + GstElement * pipeline; /* pipeline that is playing or NULL when done */ + SwfdecBuffer * in; /* next input buffer or NULL */ + SwfdecBufferQueue * out; /* all the stored output buffers */ + GstCaps * srccaps; /* caps to set on buffers */ + gboolean eof; /* we've pushed EOF */ + gboolean done; /* TRUE after decoding stopped (error or EOF) */ +}; + +static void +swfdec_gst_audio_unref (gpointer data, GObject *unused) +{ + SwfdecGstAudio *player = data; + + if (!g_atomic_int_d...
2007 Apr 05
0
configure.ac libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_gst.c
...) */ + + GstElement * pipeline; /* pipeline that is playing or NULL when done */ + SwfdecBuffer * in; /* next input buffer or NULL */ + SwfdecBuffer * out; /* available output or NULL */ + int width; /* width of last output buffer */ + int height; /* height of last output buffer */ + GstCaps * srccaps; /* caps to set on buffers */ +}; + +static void +swfdec_gst_video_unref (gpointer data, GObject *unused) +{ + SwfdecGstVideo *player = data; + + if (!g_atomic_int_dec_and_test (&player->refcount)) + return; + g_cond_free (player->cond); + g_mutex_free (player->mutex...
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
...{ SwfdecVideoDecoderFFMpeg *codec; AVCodecContext *ctx; diff --git a/libswfdec/swfdec_codec_gst.c b/libswfdec/swfdec_codec_gst.c index a16d700..22c5638 100644 --- a/libswfdec/swfdec_codec_gst.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...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
...blocks everything below */ GCond * cond; /* cond used to signal when stuff below changes */ volatile int refcount; /* refcount (d'oh) */ @@ -48,6 +50,8 @@ struct _SwfdecGstVideo { int width; /* width of last output buffer */ int height; /* height of last output buffer */ GstCaps * srccaps; /* caps to set on buffers */ + gboolean out_next; /* wether the pipeline expects input or output */ + gboolean error; /* we're in an error state */ }; static void @@ -68,9 +72,9 @@ swfdec_gst_video_unref (gpointer data, G } static void -swfdec_codec_gst_video_finish (g...
2008 Jan 10
0
8 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_bits.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_text_field_movie_html.c test/trace
...eo_decoder_gst_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffer, SwfdecVideoImage *image) { SwfdecGstVideo *player = (SwfdecGstVideo *) dec; -#define ALIGN(x, n) (((x) + (n) - 1) & (~((n) - 1))) +#define SWFDEC_ALIGN(x, n) (((x) + (n) - 1) & (~((n) - 1))) GstBuffer *buf; GstCaps *caps; GstStructure *structure; @@ -542,17 +542,18 @@ swfdec_video_decoder_gst_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffer, break; case SWFDEC_VIDEO_FORMAT_I420: image->plane[0] = buf->data; - image->rowstride[0] = ALIGN (image->width, 4); - im...
2020 May 22
0
Wine release 5.9
...side kernelbase/path.c 49200 Steam hangs after login 49203 Possible incorrect usage >= instead <= in shlview.c ---------------------------------------------------------------- Changes since 5.8: Akihiro Sagawa (3): po: Update Japanese translation. winegstreamer: Unref the GstCaps object in init_new_decoded_pad(). strmbase: Allow NULL pin_get_media_type() callback in source_Connect(). Alex Henrie (8): ntdll: Implement RtlIpv6StringToAddress(Ex)[AW]. iphlpapi: Implement ParseNetworkString for IPv6 addresses and services. ws2_32/tests: Put WSAStringTo...