mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 21:42:25 +00:00
removing warnings as approved by wim
Original commit message from CVS: removing warnings as approved by wim
This commit is contained in:
parent
48e9846ca0
commit
af558bdc6f
4 changed files with 12 additions and 23 deletions
|
@ -188,11 +188,11 @@ gst_afparse_loop(GstElement *element)
|
||||||
|
|
||||||
afparse = GST_AFPARSE(element);
|
afparse = GST_AFPARSE(element);
|
||||||
|
|
||||||
afparse->vfile->closure = bs = gst_bytestream_new(afparse->sinkpad);
|
afparse->vfile->closure = bs = gst_bytestream_new (afparse->sinkpad);
|
||||||
|
|
||||||
/* just stop if we cannot open the file */
|
/* just stop if we cannot open the file */
|
||||||
if (!gst_afparse_open_file (afparse)){
|
if (!gst_afparse_open_file (afparse)){
|
||||||
gst_bytestream_destroy((GstByteStream*)afparse->vfile->closure);
|
gst_bytestream_destroy ((GstByteStream *) afparse->vfile->closure);
|
||||||
gst_pad_push (afparse->srcpad, GST_BUFFER(gst_event_new (GST_EVENT_EOS)));
|
gst_pad_push (afparse->srcpad, GST_BUFFER(gst_event_new (GST_EVENT_EOS)));
|
||||||
gst_element_set_eos (GST_ELEMENT (afparse));
|
gst_element_set_eos (GST_ELEMENT (afparse));
|
||||||
return;
|
return;
|
||||||
|
@ -206,7 +206,7 @@ gst_afparse_loop(GstElement *element)
|
||||||
if (afGetCompression != AF_COMPRESSION_NONE ||
|
if (afGetCompression != AF_COMPRESSION_NONE ||
|
||||||
afGetByteOrder(afparse->file, AF_DEFAULT_TRACK) != afGetVirtualByteOrder(afparse->file, AF_DEFAULT_TRACK) ||
|
afGetByteOrder(afparse->file, AF_DEFAULT_TRACK) != afGetVirtualByteOrder(afparse->file, AF_DEFAULT_TRACK) ||
|
||||||
s_format != v_format ||
|
s_format != v_format ||
|
||||||
s_width != v_width){
|
s_width != v_width) {
|
||||||
bypass_afread = FALSE;
|
bypass_afread = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +233,8 @@ gst_afparse_loop(GstElement *element)
|
||||||
/* we need to check for an event. */
|
/* we need to check for an event. */
|
||||||
gst_bytestream_get_status (bs, &waiting, &event);
|
gst_bytestream_get_status (bs, &waiting, &event);
|
||||||
if (event && GST_EVENT_TYPE(event) == GST_EVENT_EOS) {
|
if (event && GST_EVENT_TYPE(event) == GST_EVENT_EOS) {
|
||||||
gst_pad_push (afparse->srcpad, GST_BUFFER(gst_event_new (GST_EVENT_EOS)));
|
gst_pad_push (afparse->srcpad,
|
||||||
|
GST_BUFFER (gst_event_new (GST_EVENT_EOS)));
|
||||||
gst_element_set_eos (GST_ELEMENT (afparse));
|
gst_element_set_eos (GST_ELEMENT (afparse));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -279,13 +280,14 @@ gst_afparse_loop(GstElement *element)
|
||||||
gst_afparse_close_file (afparse);
|
gst_afparse_close_file (afparse);
|
||||||
gst_buffer_pool_unref(bufpool);
|
gst_buffer_pool_unref(bufpool);
|
||||||
|
|
||||||
gst_bytestream_destroy((GstByteStream*)afparse->vfile->closure);
|
gst_bytestream_destroy ((GstByteStream*) afparse->vfile->closure);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_afparse_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
|
gst_afparse_set_property (GObject *object, guint prop_id,
|
||||||
|
const GValue *value, GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
GstAFParse *afparse;
|
GstAFParse *afparse;
|
||||||
|
|
||||||
|
@ -299,11 +301,11 @@ gst_afparse_set_property (GObject *object, guint prop_id, const GValue *value, G
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_afparse_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
|
gst_afparse_get_property (GObject *object, guint prop_id,
|
||||||
|
GValue *value, GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
GstAFParse *afparse;
|
GstAFParse *afparse;
|
||||||
|
|
||||||
/* it's not null if we got it, but it might not be ours */
|
|
||||||
g_return_if_fail (GST_IS_AFPARSE (object));
|
g_return_if_fail (GST_IS_AFPARSE (object));
|
||||||
|
|
||||||
afparse = GST_AFPARSE (object);
|
afparse = GST_AFPARSE (object);
|
||||||
|
@ -332,15 +334,9 @@ gst_afparse_plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
|
|
||||||
/* load audio support library */
|
/* load audio support library */
|
||||||
if (!gst_library_load ("gstaudio"))
|
if (!gst_library_load ("gstaudio"))
|
||||||
{
|
|
||||||
gst_info ("gstafparse/sink: could not load support library: 'gstaudio'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
if (!gst_library_load ("gstbytestream"))
|
if (!gst_library_load ("gstbytestream"))
|
||||||
{
|
|
||||||
gst_info ("gstafparse/sink: could not load support library: 'gstbytestream'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -286,10 +286,7 @@ gst_afsrc_plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
|
|
||||||
/* load audio support library */
|
/* load audio support library */
|
||||||
if (!gst_library_load ("gstaudio"))
|
if (!gst_library_load ("gstaudio"))
|
||||||
{
|
|
||||||
gst_info ("gstafsrc/sink: could not load support library: 'gstaudio'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -487,10 +487,8 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
GstElementFactory *factory;
|
||||||
|
|
||||||
if (!gst_library_load ("gstbytestream")) {
|
if (!gst_library_load ("gstbytestream"))
|
||||||
gst_info("jack: could not load support library: 'gstbytestream'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
factory = gst_element_factory_new ("jackbin", GST_TYPE_JACK_BIN, &gst_jack_bin_details);
|
factory = gst_element_factory_new ("jackbin", GST_TYPE_JACK_BIN, &gst_jack_bin_details);
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
g_return_val_if_fail (factory != NULL, FALSE);
|
||||||
|
|
|
@ -1163,10 +1163,8 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
|
|
||||||
LADSPAPluginSearch(ladspa_describe_plugin);
|
LADSPAPluginSearch(ladspa_describe_plugin);
|
||||||
|
|
||||||
if (! gst_library_load ("gstbytestream")) {
|
if (! gst_library_load ("gstbytestream"))
|
||||||
gst_info ("gstladspa: could not load support library: 'gstbytestream'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
/* initialize dparam support library */
|
/* initialize dparam support library */
|
||||||
gst_control_init(NULL,NULL);
|
gst_control_init(NULL,NULL);
|
||||||
|
|
Loading…
Reference in a new issue