~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/utility.c

  • Committer: Osmo Antero
  • Date: 2012-04-18 19:22:01 UTC
  • Revision ID: osmoma@gmail.com-20120418192201-ejjs6ikv7o4aznbi
New media-player interface that's based on the MediaPlayer2 standard. See src/dbus-mpris2.c.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
void str_copy(gchar *dest, gchar *src, guint len) {
128
128
    // Strncpy src to dest
129
 
    if (!(dest && src)) return;
 
129
    if (!dest) return;
130
130
 
131
131
    if (!src) {
132
132
        *dest = '\0';
771
771
    return folder_name;
772
772
}
773
773
 
774
 
 
775
774
GdkPixbuf *get_pixbuf_from_file(gchar *filename, gint width, gint height) {
776
775
    if (!filename) return NULL;
777
776