mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
ext/alsa/gstalsa.c: simplify caps
Original commit message from CVS: * ext/alsa/gstalsa.c: (gst_alsa_caps), (gst_alsa_get_caps): simplify caps
This commit is contained in:
parent
4c347cf61a
commit
534c0cbca6
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-05-16 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* ext/alsa/gstalsa.c: (gst_alsa_caps), (gst_alsa_get_caps):
|
||||
simplify caps
|
||||
|
||||
2004-05-16 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment):
|
||||
|
|
|
@ -747,6 +747,7 @@ gst_alsa_caps (snd_pcm_format_t format, gint rate, gint channels)
|
|||
}
|
||||
}
|
||||
|
||||
gst_caps_do_simplify (ret_caps);
|
||||
return ret_caps;
|
||||
}
|
||||
|
||||
|
@ -817,8 +818,10 @@ gst_alsa_get_caps (GstPad * pad)
|
|||
GST_WARNING_OBJECT (this, "no supported caps found, returning empty caps");
|
||||
return gst_caps_new_empty ();
|
||||
} else {
|
||||
G_GNUC_UNUSED gchar *str = gst_caps_to_string (ret);
|
||||
G_GNUC_UNUSED gchar *str;
|
||||
|
||||
gst_caps_do_simplify (ret);
|
||||
str = gst_caps_to_string (ret);
|
||||
GST_LOG_OBJECT (this, "get_caps returns %s", str);
|
||||
g_free (str);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue