mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
9500bd2128
Original commit message from CVS: Code cleanup, make it adhere to the Gnome/Gtk+ code formatting, which is quite clean and more readable. Renamed parseavi to avidecoder Implemented seeking/time display/pause/play/stop/clean exit to gstmediaplay Added an element flag to indicate that it cannot deal with noncontigous buffers. If such an element is found in the pipeline, seeking is disabled for the complete stream (avidecoder cannot deal with seeking until we convert it to a loop based element with pull_region to fetch the indeces etc...)
68 lines
1.6 KiB
C
68 lines
1.6 KiB
C
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#include <gnome.h>
|
|
#include <glade/glade.h>
|
|
#include <gst/gst.h>
|
|
|
|
#include "gstplay.h"
|
|
#include "callbacks.h"
|
|
|
|
GtkFileSelection *open_file_selection;
|
|
|
|
void
|
|
on_save1_activate (GtkMenuItem *menuitem,
|
|
gpointer user_data)
|
|
{
|
|
printf("file1 activate\n");
|
|
|
|
}
|
|
|
|
void
|
|
on_save_as1_activate (GtkMenuItem *menuitem,
|
|
gpointer user_data)
|
|
{
|
|
printf("file1 activate\n");
|
|
|
|
}
|
|
|
|
void
|
|
on_media2_activate (GtkMenuItem *menuitem,
|
|
gpointer user_data)
|
|
{
|
|
printf("file1 activate\n");
|
|
|
|
}
|
|
void
|
|
on_preferences1_activate (GtkMenuItem *menuitem,
|
|
gpointer user_data)
|
|
{
|
|
printf("file1 activate\n");
|
|
|
|
}
|
|
|
|
void
|
|
on_open2_activate (GtkMenuItem *menuitem,
|
|
gpointer user_data)
|
|
{
|
|
GladeXML *xml;
|
|
xml = glade_xml_new(DATADIR "gstmediaplay.glade", "fileselection1");
|
|
/* connect the signals in the interface */
|
|
glade_xml_signal_autoconnect(xml);
|
|
open_file_selection = GTK_FILE_SELECTION(glade_xml_get_widget(xml, "fileselection1"));
|
|
}
|
|
|
|
void on_about_activate(GtkWidget *widget, gpointer data)
|
|
{
|
|
GladeXML *xml;
|
|
xml = glade_xml_new(DATADIR "gstmediaplay.glade", "about");
|
|
/* connect the signals in the interface */
|
|
glade_xml_signal_autoconnect(xml);
|
|
}
|
|
|
|
void on_gstplay_destroy(GtkWidget *widget, gpointer data)
|
|
{
|
|
gst_main_quit();
|
|
}
|
|
|