Skip to content

Commit

Permalink
Connect signal to element, not random struct
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Oct 13, 2012
1 parent a4d8482 commit 5fa1815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations.c
Expand Up @@ -152,7 +152,7 @@ static struct source_item* source_new_and_link(const char* uri, GstElement* mux)
ret->element = gst_element_factory_make("uridecodebin", NULL);

g_object_set(ret->element, "uri", uri, NULL);
g_signal_connect(ret, "pad-added", G_CALLBACK(on_new_pad_link), mux);
g_signal_connect(ret->element, "pad-added", G_CALLBACK(on_new_pad_link), mux);

return ret;
}
Expand Down

0 comments on commit 5fa1815

Please sign in to comment.