mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
fixed all in-use instances of asyncdisksrc
Original commit message from CVS: fixed all in-use instances of asyncdisksrc
This commit is contained in:
parent
38ff9ae802
commit
943e728898
3 changed files with 3 additions and 3 deletions
|
@ -258,7 +258,7 @@ gst_play_set_uri (GstPlay *play,
|
|||
priv->uri = g_strdup (uri);
|
||||
|
||||
//priv->src = gst_elementfactory_make ("disksrc", "disk_src");
|
||||
priv->src = gst_elementfactory_make ("asyncdisksrc", "disk_src");
|
||||
priv->src = gst_elementfactory_make ("disksrc", "disk_src");
|
||||
//priv->src = gst_elementfactory_make ("dvdsrc", "disk_src");
|
||||
g_return_val_if_fail (priv->src != NULL, -1);
|
||||
gtk_object_set (GTK_OBJECT (priv->src),"location",uri,NULL);
|
||||
|
|
|
@ -135,7 +135,7 @@ int main(int argc,char *argv[]) {
|
|||
pipeline = gst_pipeline_new("pipeline");
|
||||
g_return_val_if_fail(pipeline != NULL, -1);
|
||||
|
||||
//src = gst_elementfactory_make("asyncdisksrc","src");
|
||||
//src = gst_elementfactory_make("disksrc","src");
|
||||
src = gst_elementfactory_make("disksrc","src");
|
||||
g_return_val_if_fail(src != NULL, -1);
|
||||
gtk_object_set(GTK_OBJECT(src),"location",argv[1],NULL);
|
||||
|
|
|
@ -34,7 +34,7 @@ int main(int argc,char *argv[]) {
|
|||
/* then the decode thread, source, and decoder */
|
||||
decodethread = gst_thread_new("decodethread");
|
||||
|
||||
srcfactory = gst_elementfactory_find("asyncdisksrc");
|
||||
srcfactory = gst_elementfactory_find("disksrc");
|
||||
src = gst_elementfactory_create(srcfactory,"src");
|
||||
gtk_object_set(GTK_OBJECT(src),"location",argv[1],NULL);
|
||||
gst_bin_add(GST_BIN(decodethread),GST_ELEMENT(src));
|
||||
|
|
Loading…
Reference in a new issue